Remove Auditor with the Space by Username
POST v2/spaces/:guid/auditors/remove
Request
Route
POST v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/auditors/remove
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
origin
|
The UAA origin
|
|
|
|
{
"username": "[email protected]"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/auditors/remove" -d '{
"username": "[email protected]"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.R9XNvP6TwNhZriOGtrt9Sk-_uQK7IDTStozwhihUF_A" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "e2d05c43-f95f-4ec7-82ec-0904d82abe5e",
"url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e",
"created_at": "2016-06-08T16:41:41Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"name": "name-2083",
"organization_guid": "d356e46f-3fd5-47d4-ab4e-1f1c3f597bcb",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/d356e46f-3fd5-47d4-ab4e-1f1c3f597bcb",
"developers_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/developers",
"managers_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/managers",
"auditors_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/auditors",
"apps_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/apps",
"routes_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/routes",
"domains_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/domains",
"service_instances_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/service_instances",
"app_events_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/app_events",
"events_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/events",
"security_groups_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/security_groups",
"staging_security_groups_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/staging_security_groups"
}
}
Headers
Audit Records Created By The Request
Audit Record: audit.user.space_auditor_remove
Attribute Name |
Value |
id
|
3
|
guid
|
3ae5862c-fb43-49ed-935b-8feb7d0e19e8
|
created_at
|
2016-06-08 16:41:40 UTC
|
updated_at
|
|
timestamp
|
2016-06-08 16:41:40 UTC
|
type
|
audit.user.space_auditor_remove
|
actor
|
uaa-id-360
|
actor_type
|
user
|
actee
|
2a01cf80-9fbf-448f-a7a0-1e415e28771e
|
actee_type
|
space
|
metadata
|
{
"request": null
}
|
organization_guid
|
28960823-1b68-4a2b-8f36-77cc573bccca
|
space_guid
|
2a01cf80-9fbf-448f-a7a0-1e415e28771e
|
actor_name
|
[email protected]
|
actee_name
|
development
|