You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: managing-cf/app-event.html.md.erb
+7-13Lines changed: 7 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,14 @@ This topic explains how to query the Cloud Controller API (CAPI) to retrieve cur
10
10
11
11
## <aid='target'></a> Target and Log In
12
12
13
-
To perform the procedures in this topic, you must target the endpoint of your Cloud Controller and log in. If you do not have the cf CLI installed, see the [Installing the cf CLI](../../cf-cli/install-go-cli.html) topic.
13
+
To perform the procedures in this topic, you must authenticate to your Cloud Controller. There are two ways of doing this:
14
14
15
-
There are two ways to target your Cloud Controller endpoint. You can run the following `curl` command to target the endpoint and log in:
You can also use `cf curl` to retrieve information. To use `cf curl`, do the following:
15
+
* Run `curl` commands that include the Cloud Controller endpoint and pass in your authorization token each time with the `-H` flag.
22
16
23
-
1. Target the endpoint of your Cloud Controller:
17
+
* Run `cf curl` commands without including the endpoint or token. To do this, you must first use the Cloud Controller Command-Line Interface (cf CLI) to target the endpoint of your Cloud Controller and log in, as follows:
18
+
1. Target the endpoint of your Cloud Controller:
24
19
<preclass='terminal'>$ cf api api.YOUR-SYSTEM-DOMAIN</pre>
25
-
26
-
1. Log in as admin or as an Org Manager or Org Auditor for the org you want to obtain information about.
20
+
1. Log in as admin or as an Org Manager or Org Auditor for the org you want to obtain information about.
27
21
<preclass='terminal'>
28
22
$ cf login -u admin
29
23
API endpoint: api.YOUR-SYSTEM-DOMAIN
@@ -38,8 +32,8 @@ You can also use `cf curl` to retrieve information. To use `cf curl`, do the fol
38
32
User: user<span>@</span>example.com
39
33
Org: YOUR-ORG
40
34
Space: development
41
-
</pre>
42
-
35
+
</pre>
36
+
If you do not have the cf CLI installed, see the [Installing the cf CLI](../../cf-cli/install-go-cli.html) topic
0 commit comments