Spaces API

Remove Manager with the Space by Username

POST v2/spaces/:guid/managers/remove

Request

Route

POST v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/managers/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
  • ldap
  • uaa
{
  "username": "[email protected]"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.MSBZcUZxvdtVkT4eKn4LdtW7wrw_S4qdad9uC5cTUnc
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/managers/remove" -d '{
  "username": "[email protected]"
}' -X POST \
  -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.MSBZcUZxvdtVkT4eKn4LdtW7wrw_S4qdad9uC5cTUnc" \
  -H "Host: example.org" \
  -H "Content-Type: application/json" \
  -H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e941b37a-863c-411b-bf5a-9c239cac755d",
    "url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d",
    "created_at": "2016-06-08T16:41:41Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-2113",
    "organization_guid": "d17da21a-d8e3-4f85-b611-9da8e140c625",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d17da21a-d8e3-4f85-b611-9da8e140c625",
    "developers_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/developers",
    "managers_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/managers",
    "auditors_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/auditors",
    "apps_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/apps",
    "routes_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/routes",
    "domains_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/domains",
    "service_instances_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/service_instances",
    "app_events_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/app_events",
    "events_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/events",
    "security_groups_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/security_groups",
    "staging_security_groups_url": "/v2/spaces/e941b37a-863c-411b-bf5a-9c239cac755d/staging_security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 95554fbc-17d0-4c86-b602-ff57f25d9564
Content-Length: 1278
X-Content-Type-Options: nosniff

Audit Records Created By The Request

Audit Record: audit.user.space_manager_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_manager_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