Users API

List all Audited Spaces for the User

GET /v2/users/:guid/audited_spaces

Request

Route

GET /v2/users/uaa-id-282/audited_spaces

Parameters

Name Description Valid Values Example Values
guid The guid of the User
q Parameters used to filter the result set.
Format queries as <filter><op><value>
Valid ops: : >= <= < > IN
Valid filters: name, organization_guid, developer_guid, app_guid
  • q=filter:value
  • q=filter>value
  • q=filter IN a,b,c
page Page of results to fetch
results-per-page Number of results per page
order-direction Order of the results: asc (default) or desc
inline-relations-depth 0 - don't inline any relations and return URLs. Otherwise, inline to depth N.
orphan-relations 0 - de-duplicate object entries in response
exclude-relations comma-delimited list of relations to drop from response
include-relations comma-delimited list of the only relations to include in response

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.IwDTXk1OMgVfo9et1C6SsLw3BJBcJ4verLYnGmIgyN8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-282/audited_spaces" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.IwDTXk1OMgVfo9et1C6SsLw3BJBcJ4verLYnGmIgyN8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "b93f27a3-3fee-49a3-987a-20407c2b029b",
        "url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b",
        "created_at": "2016-06-08T16:41:36Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "name-1868",
        "organization_guid": "cf8bee37-4644-4792-b6c1-de14b93390a4",
        "space_quota_definition_guid": null,
        "allow_ssh": true,
        "organization_url": "/v2/organizations/cf8bee37-4644-4792-b6c1-de14b93390a4",
        "developers_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/developers",
        "managers_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/managers",
        "auditors_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/auditors",
        "apps_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/apps",
        "routes_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/routes",
        "domains_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/domains",
        "service_instances_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/service_instances",
        "app_events_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/app_events",
        "events_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/events",
        "security_groups_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/security_groups",
        "staging_security_groups_url": "/v2/spaces/b93f27a3-3fee-49a3-987a-20407c2b029b/staging_security_groups"
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fccd18e2-29db-491f-91af-64bf0ac61b67
Content-Length: 1485
X-Content-Type-Options: nosniff