Download OpenAPI specification:
The CAPI team can most easily be reached on our Slack channel for questions and issues regarding the API. To report an issue with the docs or API, please feel free to file a GitHub issue on our API repo, cloud_controller_ng. We recommend reaching out to Slack first as we will be most responsive there.
This endpoint will delete all of the existing buildpack caches in the blobstore. The buildpack cache is used during staging by buildpacks as a way to cache certain resources, e.g. downloaded Ruby gems. An admin who wants to decrease the size of their blobstore could use this endpoint to delete unnecessary blobs.
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Apps are top-level objects that link together and contain configuration information for your packages, droplets, processes, tasks, and more.
Retrieve all apps the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| names | Array of strings Comma-delimited list of app names to filter by |
| space_guids | Array of strings Comma-delimited list of space GUIDs to filter by |
| organization_guids | Array of strings Comma-delimited list of organization GUIDs to filter by |
| stacks | Array of strings Comma-delimited list of stack names to filter by |
| lifecycle_type | string Enum: "buildpack" "cnb" "docker" Lifecycle type to filter by |
| include | Array of strings Items Enum: "space" "space.organization" Optionally include a list of unique related resources in the response |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app2",
- "state": "STOPPED",
- "created_at": "1970-01-01T00:00:02Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "ruby_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "environment_variables": {
}, - "current_droplet": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "deployed_revisions": {
},
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Creates a new app.
App object that needs to be created
| name required | string Name of the app |
object Environment variables to be used for the App when running | |
object (Lifecycle) Provides the lifecycle object for the application | |
required | object |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my_app",
- "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STOPPED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Retrieve a specific app.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "space" "space.organization" Optionally include a list of unique related resources in the response |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STOPPED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Update an app.
| guid required | string <uuid> The unique identifier for the resource |
App object that needs to be updated
| name | string Name of the app |
object Environment variables to be used for the App when running | |
object (Lifecycle) Lifecycle to be used when updating the app; note | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my_app",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
]
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Start an app.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Stop an app.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}This endpoint will synchronously stop and start an application. Unlike the start and stop actions, this endpoint will error if the app is not successfully stopped in the runtime. For restarting applications without downtime, see the deployments resource.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Retrieve all droplets belonging to an app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of droplet guids to filter by |
| states | Array of strings Items Enum: "AWAITING_UPLOAD" "PROCESSING_UPLOAD" "STAGED" "COPYING" "FAILED" "EXPIRED" Comma-delimited list of droplet states to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "image": null,
- "execution_metadata": "PRIVATE DATA HIDDEN",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "docker",
- "data": { }
}, - "execution_metadata": "123e4567-e89b-12d3-a456-426614174000",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "image": "cloudfoundry/diego-docker-app-custom:latest",
- "checksum": null,
- "buildpacks": null,
- "stack": null,
- "created_at": "2016-03-17T00:00:01Z",
- "updated_at": "2016-03-17T21:41:32Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Get the current droplet for an app.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "execution_metadata": "",
- "process_types": {
- "rake": "bundle exec rake",
- "web": "bundle exec rackup config.ru -p $PORT"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "image": null,
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}This endpoint retrieves the current droplet relationship for an app.
| guid required | string <uuid> The unique identifier for the resource |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}Set the current droplet for an app. The current droplet is the droplet that the app will use when running.
| guid required | string <uuid> The unique identifier for the resource |
Droplet relationship object that needs to be set
required | object (Relationship) |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}This endpoint will delete the buildpack cache for a specified app. The buildpack cache is used during staging by buildpacks as a way to cache certain resources, e.g. downloaded Ruby gems. A user may want to use this endpoint when an app doesn’t stage anymore due to out-of-disk caused by a large buildpack cache content.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve the environment variables that will be provided to an app at runtime. It will include environment variables for Environment Variable Groups and Service Bindings.
| guid required | string <uuid> The unique identifier for the resource |
{- "environment_variables": {
- "RAILS_ENV": "production"
}, - "system_env_json": {
- "VCAP_SERVICES": {
- "mysql": [
- {
- "name": "db-for-my-app",
- "binding_id": "0e85b634-e043-4b43-96da-f83dfe83ab33",
- "binding_name": "db-for-my-app",
- "instance_id": "07fca01c-f789-4d45-80b4-e19ba3ca862c",
- "instance_name": "my-mysql-service",
- "label": "mysql",
- "tags": [
- "relational",
- "sql"
], - "plan": "xlarge",
- "credentials": {
- "username": "user",
- "password": "top-secret"
}, - "volume_mounts": [ ],
- "provider": null
}
]
}
}, - "application_env_json": {
- "VCAP_APPLICATION": {
- "limits": {
- "fds": 16384
}, - "application_name": "my_app",
- "application_uris": [
- "my_app.example.org"
], - "name": "my_app",
- "space_name": "my_space",
- "space_id": "2f35885d-0c9d-4423-83ad-fd05066f8576",
- "uris": [
- "my_app.example.org"
], - "users": null
}
}
}Retrieve the environment variables that are associated with the given app. For the entire list of environment variables that will be available to the app at runtime, see the env endpoint.
| guid required | string <uuid> The unique identifier for the resource |
{- "var": {
- "RAILS_ENV": "production"
}, - "links": {
}
}Update the environment variables associated with the given app. The variables given in the request will be merged with the existing app environment variables. Any requested variables with a value of null will be removed from the app. Environment variable names may not start with VCAP_. PORT is not a valid environment variable. The updated environment variables will not take effect until the app is restarted.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update environment variables for an app.
object Environment variables to inject; keys and values must be strings |
{- "var": {
- "DEBUG": "false",
- "USER": null
}
}{- "var": {
- "RAILS_ENV": "production",
- "DEBUG": "false"
}, - "links": {
}
}This endpoint retrieves the list of features for the specified app.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Get an app feature.
| guid required | string <uuid> The unique identifier for the resource |
| name required | string Enum: "ssh" "revisions" "service-binding-k8s" "file-based-vcap-services" Name of the feature. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Update an app feature.
| guid required | string <uuid> The unique identifier for the resource |
| name required | string Enum: "ssh" "revisions" "service-binding-k8s" "file-based-vcap-services" Name of the feature. |
Request body for update an app feature.
| enabled | boolean |
{- "enabled": false
}{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Get the current user’s permissions for the given app. If a user can see an app, then they can see its basic data. Only admin, read-only admins, and space developers can read sensitive data.
| guid required | string <uuid> The unique identifier for the resource |
{- "read_basic_data": true,
- "read_sensitive_data": false
}Returns if an application’s runtime environment will accept ssh connections. If ssh is disabled, the reason field will describe whether it is disabled globally, at the space level, or at the app level.
| guid required | string <uuid> The unique identifier for the resource |
{- "enabled": false,
- "reason": "Disabled globally"
}Retrieve all app usage events.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| after_guid | string Filters out events before and including the event with the given guid |
| guids | Array of strings Comma-delimited list of usage event guids to filter by |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 2,
- "total_pages": 2,
- "first": {
- "href": "https://api.example.org<%= path %>?page=1&per_page=1"
}, - "last": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=1"
}, - "next": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=1"
}, - "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-05-28T16:41:23Z",
- "updated_at": "2020-05-28T16:41:26Z",
- "state": {
- "current": "STARTED",
- "previous": "STOPPED"
}, - "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1982"
}, - "process": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "type-1983"
}, - "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1664"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "buildpack": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "label-64"
}, - "task": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-2929"
}, - "memory_in_mb_per_instance": {
- "current": 512,
- "previous": 256
}, - "instance_count": {
- "current": 10,
- "previous": 5
}, - "links": {
- "self": {
}
}
}
]
}Retrieve a specific app usage event.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-05-28T16:41:23Z",
- "updated_at": "2020-05-28T16:41:26Z",
- "state": {
- "current": "STARTED",
- "previous": "STOPPED"
}, - "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1982"
}, - "process": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "type-1983"
}, - "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1664"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "buildpack": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "label-64"
}, - "task": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-2929"
}, - "memory_in_mb_per_instance": {
- "current": 512,
- "previous": 256
}, - "instance_count": {
- "current": 10,
- "previous": 5
}, - "links": {
- "self": {
}
}
}Destroys all existing events. Populates new usage events, one for each started app. All populated events will have a created_at value of current time. There is the potential race condition if apps are currently being started, stopped, or scaled. The seeded usage events will have the same guid as the app.
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Audit events help Cloud Foundry operators monitor actions taken against resources (such as apps) via user or system actions.
Retrieve all audit events the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| types | Array of strings Items Enum: "audit.app.apply_manifest" "audit.app.build.create" "audit.app.copy-bits" "audit.app.create" "audit.app.delete-request" "audit.app.deployment.cancel" "audit.app.deployment.create" "audit.app.deployment.continue" "audit.app.droplet.create" "audit.app.droplet.delete" "audit.app.droplet.download" "audit.app.droplet.mapped" "audit.app.droplet.upload" "audit.app.environment.show" "audit.app.environment_variables.show" "audit.app.map-route" "audit.app.package.create" "audit.app.package.delete" "audit.app.package.download" "audit.app.package.upload" "audit.app.process.crash" "audit.app.process.create" "audit.app.process.delete" "audit.app.process.ready" "audit.app.process.not-ready" "audit.app.process.rescheduling" "audit.app.process.scale" "audit.app.process.terminate_instance" "audit.app.process.update" "audit.app.restage" "audit.app.restart" "audit.app.revision.create" "audit.app.revision.environment_variables.show" "audit.app.ssh-authorized" "audit.app.ssh-unauthorized" "audit.app.start" "audit.app.stop" "audit.app.task.cancel" "audit.app.task.create" "audit.app.unmap-route" "audit.app.update" "audit.app.upload-bits" "audit.organization.create" "audit.organization.delete-request" "audit.organization.update" "audit.route.create" "audit.route.delete-request" "audit.route.share" "audit.route.transfer-owner" "audit.route.unshare" "audit.route.update" "audit.service.create" "audit.service.delete" "audit.service.update" "audit.service_binding.create" "audit.service_binding.delete" "audit.service_binding.show" "audit.service_binding.start_create" "audit.service_binding.start_delete" "audit.service_binding.update" "audit.service_broker.create" "audit.service_broker.delete" "audit.service_broker.update" "audit.service_dashboard_client.create" "audit.service_dashboard_client.delete" "audit.service_instance.bind_route" "audit.service_instance.create" "audit.service_instance.delete" "audit.service_instance.purge" "audit.service_instance.share" "audit.service_instance.show" "audit.service_instance.start_create" "audit.service_instance.start_delete" "audit.service_instance.start_update" "audit.service_instance.unbind_route" "audit.service_instance.unshare" "audit.service_instance.update" "audit.service_key.create" "audit.service_key.delete" "audit.service_key.show" "audit.service_key.start_create" "audit.service_key.start_delete" "audit.service_key.update" "audit.service_plan.create" "audit.service_plan.delete" "audit.service_plan.update" "audit.service_plan_visibility.create" "audit.service_plan_visibility.delete" "audit.service_plan_visibility.update" "audit.service_route_binding.create" "audit.service_route_binding.delete" "audit.service_route_binding.start_create" "audit.service_route_binding.start_delete" "audit.service_route_binding.update" "audit.space.create" "audit.space.delete-request" "audit.space.update" "audit.user.organization_auditor_add" "audit.user.organization_auditor_remove" "audit.user.organization_billing_manager_add" "audit.user.organization_billing_manager_remove" "audit.user.organization_manager_add" "audit.user.organization_manager_remove" "audit.user.organization_user_add" "audit.user.organization_user_remove" "audit.user.space_auditor_add" "audit.user.space_auditor_remove" "audit.user.space_developer_add" "audit.user.space_developer_remove" "audit.user.space_manager_add" "audit.user.space_manager_remove" "audit.user.space_supporter_add" "audit.user.space_supporter_remove" "audit.user_provided_service_instance.create" "audit.user_provided_service_instance.delete" "audit.user_provided_service_instance.show" "audit.user_provided_service_instance.update" "app.crash" "blob.remove_orphan" Comma-delimited list of event types to filter by |
| target_guids | Array of strings Comma-delimited list of target guids to filter by. Also supports filtering by exclusion. |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-06-08T16:41:23Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "type": "audit.app.update",
- "actor": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "user",
- "name": "admin"
}, - "target": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "app",
- "name": "my-app"
}, - "data": {
- "request": {
- "recursive": true
}
}, - "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
},
}
]
}Retrieve a specific audit event.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-06-08T16:41:23Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "type": "audit.app.update",
- "actor": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "user",
- "name": "admin"
}, - "target": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "app",
- "name": "my-app"
}, - "data": {
- "request": {
- "recursive": true
}
}, - "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
}
}Retrieve all builds.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| states | Array of strings Items Enum: "STAGING" "STAGED" "FAILED" Comma-delimited list of build states to filter by |
| app_guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| package_guids | Array of strings Comma-delimited list of package GUIDs to filter by |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "created_by": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "bill",
- "email": "bill@example.com"
}, - "state": "STAGING",
- "staging_memory_in_mb": 1024,
- "staging_disk_in_mb": 1024,
- "staging_log_rate_limit_bytes_per_second": 1024,
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "ruby_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "package": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "droplet": null,
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
}
}
]
}Create a build.
Build object that needs to be created
required | object (Relationship) |
object (Lifecycle) The lifecycle type defines how the application droplet is created and run. The following lifecycle types are supported: - buildpack: Traditional buildpacks for Cloud Foundry applications. - cnb: Cloud Native Buildpacks that are OCI-compliant. - docker: Run pre-built Docker images. | |
| staging_memory_in_mb | integer Memory in MB allocated for staging of the build |
| staging_disk_in_mb | integer Disk space in MB allocated for staging of the build |
| staging_log_rate_limit_bytes_per_second | integer Log rate limit in bytes per second allocated for staging of the build |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "package": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "STAGING",
- "staging_memory_in_mb": 0,
- "staging_disk_in_mb": 0,
- "staging_log_rate_limit_bytes_per_second": 0,
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": { },
- "package": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "droplet": {
- "href": "string",
- "method": "string"
}
}
}Retrieve a build.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "STAGING",
- "staging_memory_in_mb": 0,
- "staging_disk_in_mb": 0,
- "staging_log_rate_limit_bytes_per_second": 0,
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": { },
- "package": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "droplet": {
- "href": "string",
- "method": "string"
}
}
}Update a build.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a build.
| state | string Enum: "STAGING" "STAGED" "FAILED" State of the build |
| staging_memory_in_mb | integer or null Memory in MB allocated for staging of the build |
| staging_disk_in_mb | integer or null Disk space in MB allocated for staging of the build |
| staging_log_rate_limit_bytes_per_second | integer Log rate limit in bytes per second allocated for staging of the build |
| error | string or null A string describing errors during the build process |
object (Lifecycle) Provides the lifecycle object to use during staging | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "STAGING",
- "staging_memory_in_mb": 0,
- "staging_disk_in_mb": 0,
- "staging_log_rate_limit_bytes_per_second": 0,
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": { },
- "package": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "droplet": {
- "href": "string",
- "method": "string"
}
}
}Retrieve all builds for an app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| states | Array of strings Items Enum: "STAGING" "STAGED" "FAILED" Comma-delimited list of build states to filter by |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "created_by": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "bill",
- "email": "bill@example.com"
}, - "state": "STAGING",
- "staging_memory_in_mb": 1024,
- "staging_disk_in_mb": 1024,
- "staging_log_rate_limit_bytes_per_second": 1024,
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "ruby_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "package": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "droplet": null,
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
}
}
]
}Update a build.
| guid required | string <uuid> The unique identifier for the resource |
Build object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "STAGING",
- "staging_memory_in_mb": 0,
- "staging_disk_in_mb": 0,
- "staging_log_rate_limit_bytes_per_second": 0,
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "relationships": { },
- "package": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "droplet": {
- "href": "string",
- "method": "string"
}
}
}Buildpacks are used during a build to download external dependencies and transform a package into an executable droplet.
Retrieve all buildpacks.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| names | Array of strings Comma-delimited list of buildpack names to filter by |
| stacks | Array of strings Comma-delimited list of stacks to filter by |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-03-18T23:26:46Z",
- "updated_at": "2016-10-17T20:00:42Z",
- "name": "my-buildpack",
- "state": "AWAITING_UPLOAD",
- "filename": null,
- "stack": "my-stack",
- "position": 1,
- "lifecycle": "cnb",
- "enabled": true,
- "locked": false,
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "upload": {
- "method": "POST"
}
}
}
]
}Create a buildpack.
Buildpack object that needs to be added
| name required | string The name of the buildpack |
| stack | string The name of the stack that the buildpack will use |
| position | integer The order in which the buildpacks are checked during buildpack auto-detection |
| lifecycle | string The version of buildpack the buildpack will use. |
| enabled | boolean Whether or not the buildpack will be used for staging |
| locked | boolean Whether or not the buildpack is locked to prevent updating the bits |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "ruby_buildpack",
- "position": 42,
- "enabled": true,
- "locked": false,
- "stack": "windows64"
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "AWAITING_UPLOAD",
- "stack": "string",
- "lifecycle": "string",
- "position": 0,
- "enabled": true,
- "locked": true,
- "filename": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}
}Retrieve a buildpack.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "AWAITING_UPLOAD",
- "stack": "string",
- "lifecycle": "string",
- "position": 0,
- "enabled": true,
- "locked": true,
- "filename": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}
}Update a buildpack.
| guid required | string <uuid> The unique identifier for the resource |
Buildpack object that needs to be updated
| name | string The name of the buildpack |
| position | integer The order in which the buildpacks are checked during buildpack auto-detection |
| enabled | boolean Whether or not the buildpack will be used for staging |
| locked | boolean Whether or not the buildpack is locked to prevent updating the bits |
| stack | string The name of the stack that the buildpack will use |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "ruby_buildpack",
- "position": 42,
- "enabled": true,
- "locked": false,
- "stack": "windows64"
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "AWAITING_UPLOAD",
- "stack": "string",
- "lifecycle": "string",
- "position": 0,
- "enabled": true,
- "locked": true,
- "filename": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}
}Upload a zip file containing a Cloud Foundry compatible buildpack. The file must be sent as part of a multi-part form.
| guid required | string <uuid> The unique identifier for the resource |
The buildpack file to be uploaded
| bits | string <binary> |
Array of objects |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "AWAITING_UPLOAD",
- "stack": "string",
- "lifecycle": "string",
- "position": 0,
- "enabled": true,
- "locked": true,
- "filename": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}
}Retrieve all deployments.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| app_guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| states | Array of strings Comma-delimited list of states to filter by |
| status_reasons | Array of strings Items Enum: "DEPLOYING" "PAUSED" "CANCELING" "DEPLOYED" "CANCELED" "SUPERSEDED" Comma-delimited list of status reasons to filter by |
| status_values | Array of strings Items Enum: "ACTIVE" "FINALIZED" Comma-delimited list of status values to filter by |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "status": {
- "value": "FINALIZED",
- "reason": "DEPLOYED",
- "details": {
- "last_successful_healthcheck": "2018-04-25T22:42:10Z",
- "last_status_change": "2018-04-25T22:42:10Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 1
}, - "droplet": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "previous_droplet": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "new_processes": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "web-deployment-59c3d133-2b83-46f3-960e-7765a129aea4"
}
], - "revision": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "version": 1
}, - "created_at": "2018-04-25T22:42:10Z",
- "updated_at": "2018-04-25T22:42:10Z",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
}
}
]
}When you create a new deployment you can either provide a specific droplet or revision to deploy. If no revision or droplet is provided, the droplet associated with the app is deployed.
Deployment object that needs to be created
| relationships | object (Relationships) Relationships represent associations between resources. When relationships are mutable, they can be used to create, read, update, and delete these associations. An app’s relationship to its current droplet is mutable, but an app’s relationship to its space is not. Relationships do not affect the fundamental properties of a resource, but may affect their behavior and permissions logic. Relationships are tied to the lifecycles of the associated resources and will be removed if either of the associated resources are deleted. For example, if a user is removed from an organization, both the user and the organization persist, but the relationship between them does not. Not all resources implement every relationship operation demonstrated in the examples below. See the docs for each resource to see how it interacts with its relationships. Endpoints that return relationship data list this information under the relationships key. The relationship object The relationship object is a key-value pair that uniquely identifies a resource. In practice this is almost always the guid of a resource. |
| strategy | string Enum: "rolling" "canary" |
object | |
object (Relationship) | |
object (Relationship) | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "revision": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "strategy": "rolling",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "status": {
- "value": "ACTIVE",
- "reason": "DEPLOYING",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 0,
- "web_instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "canary": {
- "steps": [
- {
- "instance_weight": 0
}
]
}
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "previous_droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "new_processes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "type": "string"
}
], - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "version": 0
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "cancel": {
- "href": "string",
- "method": "string"
}, - "continue": {
- "href": "string",
- "method": "string"
}
}
}Retrieve a deployment.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "status": {
- "value": "ACTIVE",
- "reason": "DEPLOYING",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 0,
- "web_instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "canary": {
- "steps": [
- {
- "instance_weight": 0
}
]
}
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "previous_droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "new_processes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "type": "string"
}
], - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "version": 0
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "cancel": {
- "href": "string",
- "method": "string"
}, - "continue": {
- "href": "string",
- "method": "string"
}
}
}Update a deployment.
| guid required | string <uuid> The unique identifier for the resource |
Deployment object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "status": {
- "value": "ACTIVE",
- "reason": "DEPLOYING",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 0,
- "web_instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "canary": {
- "steps": [
- {
- "instance_weight": 0
}
]
}
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "previous_droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "new_processes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "type": "string"
}
], - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "version": 0
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "cancel": {
- "href": "string",
- "method": "string"
}, - "continue": {
- "href": "string",
- "method": "string"
}
}
}Cancel a deployment.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "status": {
- "value": "ACTIVE",
- "reason": "DEPLOYING",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 0,
- "web_instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "canary": {
- "steps": [
- {
- "instance_weight": 0
}
]
}
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "previous_droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "new_processes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "type": "string"
}
], - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "version": 0
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "cancel": {
- "href": "string",
- "method": "string"
}, - "continue": {
- "href": "string",
- "method": "string"
}
}
}Continue a deployment.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "status": {
- "value": "ACTIVE",
- "reason": "DEPLOYING",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "rolling",
- "options": {
- "max_in_flight": 0,
- "web_instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "canary": {
- "steps": [
- {
- "instance_weight": 0
}
]
}
}, - "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "previous_droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "new_processes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "type": "string"
}
], - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "version": 0
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "cancel": {
- "href": "string",
- "method": "string"
}, - "continue": {
- "href": "string",
- "method": "string"
}
}
}Retrieve all domains the user has access to.
Permitted roles: All Roles
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of guids to filter by |
| names | Array of strings Comma-delimited list of domain names to filter by (case-insensitive) |
| organization_guids | Array of strings Comma-delimited list of owning organization guids to filter by |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "3a5d3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2019-03-08T01:06:19Z",
- "updated_at": "2019-03-08T01:06:19Z",
- "name": "test-domain.com",
- "internal": false,
- "router_group": {
- "guid": "5806148f-cce6-4d86-7fbd-aa269e3f6f3f"
}, - "supported_protocols": [
- "tcp"
], - "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "organization": {
- "data": null
}, - "shared_organizations": {
- "data": [ ]
}
}, - "links": {
- "route_reservations": {
}, - "router_group": {
}
}
}, - {
- "guid": "9b2f3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2026-04-21T10:15:30Z",
- "updated_at": "2026-04-21T10:15:30Z",
- "name": "apps.identity",
- "internal": false,
- "router_group": null,
- "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "org",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "organization": {
- "data": null
}, - "shared_organizations": {
- "data": [ ]
}
}, - "links": {
- "route_reservations": {
}
}
}
]
}Create a domain.
Permitted roles: Admin, Org Manager (when an organization relationship is provided)
Domain object that needs to be created
| name required | string Name of the domain; must be unique (case-insensitive) |
| internal | boolean Default: false Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic |
object The desired router group. note: creates a | |
| enforce_route_policies | boolean Default: false When |
| route_policies_scope | string Enum: "any" "org" "space" Operator-defined boundary for allowed callers: |
object Relationships to the organization the domain will be scoped to and the organizations the domain will be shared with | |
object (Metadata) Labels and annotations applied to the domain |
{- "name": "example.com",
- "internal": false
}{- "guid": "3a5d3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2019-03-08T01:06:19Z",
- "updated_at": "2019-03-08T01:06:19Z",
- "name": "test-domain.com",
- "internal": false,
- "router_group": null,
- "supported_protocols": [
- "http"
], - "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "3a3f3d89-3f89-4f05-8188-751b298c79d5"
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "404f3d89-3f89-4a72-8188-751b298d88d5"
}, - {
- "guid": "416d3d89-3f89-4b67-a189-123b298d3592"
}
]
}
}, - "links": {
- "organization": {
}, - "route_reservations": {
}, - "shared_organizations": {
}
}
}Retrieve a domain.
Permitted roles: Admin, Admin Read-Only, Global Auditor, Org Auditor, Org Billing Manager (can only view domains without an organization relationship), Org Manager, Space Auditor, Space Developer, Space Manager, Space Supporter
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "3a5d3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2019-03-08T01:06:19Z",
- "updated_at": "2019-03-08T01:06:19Z",
- "name": "test-domain.com",
- "internal": false,
- "router_group": null,
- "supported_protocols": [
- "http"
], - "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "3a3f3d89-3f89-4f05-8188-751b298c79d5"
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "404f3d89-3f89-4a72-8188-751b298d88d5"
}, - {
- "guid": "416d3d89-3f89-4b67-a189-123b298d3592"
}
]
}
}, - "links": {
- "organization": {
}, - "route_reservations": {
}, - "shared_organizations": {
}
}
}Update a domain.
Permitted roles: Admin, Org Manager (if domain is scoped to organization managed by the org manager)
| guid required | string <uuid> The unique identifier for the resource |
Domain object that needs to be updated
object (Metadata) Labels and annotations applied to the domain |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "3a5d3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2019-03-08T01:06:19Z",
- "updated_at": "2019-03-08T01:06:19Z",
- "name": "test-domain.com",
- "internal": false,
- "router_group": null,
- "supported_protocols": [
- "http"
], - "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "3a3f3d89-3f89-4f05-8188-751b298c79d5"
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "404f3d89-3f89-4a72-8188-751b298d88d5"
}, - {
- "guid": "416d3d89-3f89-4b67-a189-123b298d3592"
}
]
}
}, - "links": {
- "organization": {
}, - "route_reservations": {
}, - "shared_organizations": {
}
}
}Delete a domain.
Permitted roles: Admin, Org Manager (if domain is scoped to organization managed by the org manager)
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Check if a specific route for a domain exists, regardless of the user's visibility for the route in case the route belongs to a space the user does not belong to.
Permitted roles: Admin, Admin Read-Only, Global Auditor, Org Auditor, Org Billing Manager (can only check if routes exist for a domain without an organization relationship), Org Manager, Space Auditor, Space Developer, Space Manager, Space Supporter
| guid required | string <uuid> The unique identifier for the resource |
| host | string Hostname to filter by; defaults to empty string if not provided and only applicable to |
| path | string Path to filter by; defaults to empty string if not provided and only applicable to |
| port | integer Port to filter by; only applicable to |
{- "matching_route": true
}Retrieve all domains available in an organization for the current user. This will return unscoped domains (those without an owning organization), domains that are scoped to the given organization (owned by the given organization), and domains that have been shared with the organization.
To retrieve the default domain for an organization, use the get default domain endpoint.
Permitted roles: All Roles
| guid required | string <uuid> The guid of the organization |
| guids | Array of strings Comma-delimited list of guids to filter by |
| names | Array of strings Comma-delimited list of domain names to filter by (case-insensitive) |
| organization_guids | Array of strings Comma-delimited list of owning organization guids to filter by |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "3a5d3d89-3f89-4f05-8188-8a2b298c79d5",
- "created_at": "2019-03-08T01:06:19Z",
- "updated_at": "2019-03-08T01:06:19Z",
- "name": "test-domain.com",
- "internal": false,
- "router_group": {
- "guid": "5806148f-cce6-4d86-7fbd-aa269e3f6f3f"
}, - "supported_protocols": [
- "tcp"
], - "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "organization": {
- "data": null
}, - "shared_organizations": {
- "data": [ ]
}
}, - "links": {
- "route_reservations": {
}, - "router_group": {
}
}
}
]
}Retrieve all droplets belonging to an app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of droplet guids to filter by |
| states | Array of strings Items Enum: "AWAITING_UPLOAD" "PROCESSING_UPLOAD" "STAGED" "COPYING" "FAILED" "EXPIRED" Comma-delimited list of droplet states to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "image": null,
- "execution_metadata": "PRIVATE DATA HIDDEN",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "docker",
- "data": { }
}, - "execution_metadata": "123e4567-e89b-12d3-a456-426614174000",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "image": "cloudfoundry/diego-docker-app-custom:latest",
- "checksum": null,
- "buildpacks": null,
- "stack": null,
- "created_at": "2016-03-17T00:00:01Z",
- "updated_at": "2016-03-17T21:41:32Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Retrieve all droplets.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of droplet GUIDs to filter by |
| states | Array of strings Items Enum: "AWAITING_UPLOAD" "PROCESSING_UPLOAD" "STAGED" "COPYING" "FAILED" "EXPIRED" Comma-delimited list of droplet states to filter by |
| app_guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| current | boolean If true, only include the current droplet for each app |
| space_guids | Array of strings Comma-delimited list of space GUIDs to filter by |
| organization_guids | Array of strings Comma-delimited list of organization GUIDs to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "image": null,
- "execution_metadata": "PRIVATE DATA HIDDEN",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "docker",
- "data": { }
}, - "execution_metadata": "123e4567-e89b-12d3-a456-426614174000",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "image": "cloudfoundry/diego-docker-app-custom:latest",
- "checksum": null,
- "buildpacks": null,
- "stack": null,
- "created_at": "2016-03-17T00:00:01Z",
- "updated_at": "2016-03-17T21:41:32Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}This endpoint is only for creating a droplet without a package. To create a droplet based on a package, see Create a build.
Droplet object that needs to be created
required | object |
| process_types | object Process names and start commands for the droplet |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "process_types": {
- "rake": "bundle exec rake",
- "web": "bundle exec rackup config.ru -p $PORT"
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "AWAITING_UPLOAD",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "execution_metadata": "",
- "process_types": {
- "rake": "bundle exec rake",
- "web": "bundle exec rackup config.ru -p $PORT"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "image": null,
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "upload": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Retrieve a droplet.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "execution_metadata": "",
- "process_types": {
- "rake": "bundle exec rake",
- "web": "bundle exec rackup config.ru -p $PORT"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "image": null,
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Update a droplet.
| guid required | string <uuid> The unique identifier for the resource |
Droplet object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. | |
| image | string Image reference where the built complete image was stored |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "string",
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "execution_metadata": "string",
- "process_types": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "package": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}Delete a droplet.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "operation": "string",
- "state": "PROCESSING",
- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
], - "warnings": [
- {
- "detail": "string"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "manifest": {
- "href": "string",
- "method": "string"
}, - "service_brokers": {
- "href": "string",
- "method": "string"
}, - "service_credential_binding": {
- "href": "string",
- "method": "string"
}, - "service_instances": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}
}
}Download a gzip compressed tarball file containing a Cloud Foundry compatible droplet.
When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits. If the client is automatically following redirects, then the OAuth token that was used to communicate with Cloud Controller will be relayed on the new redirect request. Some blobstores may reject the request in that case. Clients may need to follow the redirect without including the OAuth token.
Only droplets that are in the STAGED state and have lifecycle type buildpack can be downloaded.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Upload a gzip compressed tarball file containing a Cloud Foundry compatible droplet. The file must be sent as part of a multi-part form.
| guid required | string <uuid> The unique identifier for the resource |
The droplet file to be uploaded
| bits | string <binary> |
Array of objects |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "state": "string",
- "error": "string",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "execution_metadata": "string",
- "process_types": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "package": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}Retrieve a list of droplets belonging to a package.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of droplet guids to filter by |
| states | Array of strings Comma-delimited list of droplet states to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "image": null,
- "execution_metadata": "PRIVATE DATA HIDDEN",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "docker",
- "data": { }
}, - "execution_metadata": "123e4567-e89b-12d3-a456-426614174000",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "image": "cloudfoundry/diego-docker-app-custom:latest",
- "checksum": null,
- "buildpacks": null,
- "stack": null,
- "created_at": "2016-03-17T00:00:01Z",
- "updated_at": "2016-03-17T21:41:32Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Retrieve an environment variable group.
| name required | string Enum: "running" "staging" Name of the environment variable group. |
{- "updated_at": "2016-05-04T17:00:41Z",
- "name": "running",
- "var": {
- "foo": "bar"
},
}Update the environment variable group. The variables given in the request will be merged with the existing environment variable group. Any requested variables with a value of null will be removed from the group. Environment variable names may not start with VCAP_. PORT is not a valid environment variable.
Variables updated in the running environment variable group will not take effect until apps are restarted.
| name required | string Enum: "running" "staging" Name of the environment variable group. |
The environment variables to update
object Environment variables to inject; keys and values must be strings |
{- "var": {
- "property1": "string",
- "property2": "string"
}
}{- "var": {
- "RAILS_ENV": "production",
- "DEBUG": "false"
},
}Retrieve all feature_flags.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "name": "my_feature_flag",
- "enabled": true,
- "updated_at": "2016-10-17T20:00:42Z",
- "custom_error_message": "error message the user sees",
}, - {
- "name": "my_second_feature_flag",
- "enabled": false,
- "updated_at": null,
- "custom_error_message": null,
}
]
}Get a feature flag.
| name required | string Enum: "app_bits_upload" "app_scaling" "diego_docker" "diego_cnb" "env_var_visibility" "hide_marketplace_from_unauthenticated_users" "private_domain_creation" "resource_matching" "route_creation" "route_sharing" "service_instance_creation" "service_instance_sharing" "set_roles_by_username" "space_developer_env_var_visibility" "space_scoped_private_broker_creation" "task_creation" "unset_roles_by_username" "user_org_creation" The name of the feature flag |
{- "name": "my_feature_flag",
- "enabled": true,
- "updated_at": "2016-10-17T20:00:42Z",
- "custom_error_message": "error message the user sees",
}Update a feature flag.
| name required | string Enum: "app_bits_upload" "app_scaling" "diego_docker" "diego_cnb" "env_var_visibility" "hide_marketplace_from_unauthenticated_users" "private_domain_creation" "resource_matching" "route_creation" "route_sharing" "service_instance_creation" "service_instance_sharing" "set_roles_by_username" "space_developer_env_var_visibility" "space_scoped_private_broker_creation" "task_creation" "unset_roles_by_username" "user_org_creation" The name of the feature flag |
Feature flag object that needs to be updated
| enabled | boolean Whether the feature flag is enabled |
| custom_error_message | string The error string returned by the API when a client performs an action disabled by the feature flag |
{- "enabled": true,
- "custom_error_message": "error message the user sees"
}{- "name": "my_feature_flag",
- "enabled": true,
- "updated_at": "2016-10-17T20:00:42Z",
- "custom_error_message": "error message the user sees",
}{- "build": "",
- "cli_version": {
- "minimum": "",
- "recommended": ""
}, - "custom": { },
- "description": "",
- "name": "",
- "version": 0,
- "osbapi_version": "",
- "rate_limits": {
- "enabled": false,
- "general_limit": 2000,
- "reset_interval_in_minutes": 30
},
}This endpoint retrieves a high-level summary of usage across the entire Cloud Foundry installation.
{- "usage_summary": {
- "started_instances": 294,
- "memory_in_mb": 123945,
- "routes": 300,
- "service_instances": 50,
- "reserved_ports": 10,
- "domains": 5,
- "per_app_tasks": 0,
- "service_keys": 20
},
}Isolation Segments provide dedicated pools of resources to which apps can be deployed to isolate workloads.
Retrieves all isolation segments to which the user has access. For admin, this is all the isolation segments in the system. For anyone else, this is the isolation segments in the allowed list for any organization to which the user belongs.
Permitted roles: All Roles
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" "name" "-name" Value to sort by; defaults to ascending. Prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of isolation segment guids to filter by |
| names | Array of strings Comma-delimited list of isolation segment names to filter by (case-insensitive) |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
{- "pagination": {
- "total_results": 11,
- "total_pages": 3,
- "previous": null
}, - "resources": [
- {
- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c",
- "name": "an_isolation_segment",
- "created_at": "2016-10-19T20:25:04Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}, - {
- "guid": "68d54d31-9b3a-463b-ba94-e8e4c32edbac",
- "name": "an_isolation_segment1",
- "created_at": "2016-10-19T20:29:19Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}, - {
- "guid": "ecdc67c3-a71e-43ff-bddf-048930b8cd03",
- "name": "an_isolation_segment2",
- "created_at": "2016-10-19T20:29:22Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}, - {
- "guid": "424c89e4-4353-46b7-9bf4-f90bd9bacac0",
- "name": "an_isolation_segment3",
- "created_at": "2016-10-19T20:29:27Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}, - {
- "guid": "0a79fcec-a648-4eb8-a6c3-2b5be39047c7",
- "name": "an_isolation_segment4",
- "created_at": "2016-10-19T20:29:33Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}
]
}Create an isolation segment.
Permitted roles: Admin
Isolation segment to create
| name required | string Name of the isolation segment; must be unique (case-insensitive) |
object (Metadata) Labels and annotations applied to the isolation segment |
{- "name": "my_segment"
}{- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c",
- "name": "an_isolation_segment",
- "created_at": "2016-10-19T20:25:04Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}Retrieve an isolation segment to which the user has access. For admin, this is any isolation segment in the system. For anyone else, this is an isolation segment in the allowed list for any organization to which the user belongs.
Permitted roles: All Roles
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c",
- "name": "an_isolation_segment",
- "created_at": "2016-10-19T20:25:04Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}Update an isolation segment.
Permitted roles: Admin
| guid required | string <uuid> The unique identifier for the resource |
Isolation segment to update
| name | string Name of the isolation segment; isolation segment names must be unique across the entire system, and case is ignored when checking for uniqueness |
object (Metadata) Labels and annotations applied to the isolation segment |
{- "name": "my_isolation_segment"
}{- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c",
- "name": "my_isolation_segment",
- "created_at": "2016-10-19T20:25:04Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "links": {
- "self": {
}, - "organizations": {
}
}, - "metadata": {
- "annotations": { },
- "labels": { }
}
}An isolation segment cannot be deleted if it is entitled to any organization.
Permitted roles: Admin
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint entitles the specified organizations for the isolation segment. In the case where the specified isolation segment is the system-wide shared segment, and if an organization is not already entitled for any other isolation segment, then the shared isolation segment automatically gets assigned as the default for that organization.
Permitted roles: Admin
| guid required | string <uuid> The unique identifier for the resource |
Organization relationships; each organization will be entitled to manage this isolation segment
Array of objects (Relationship) | |
object |
{- "data": [
- {
- "guid": "68d54d31-9b3a-463b-ba94-e8e4c32edbac"
}, - {
- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c"
}
]
}{- "data": [
- {
- "guid": "68d54d31-9b3a-463b-ba94-e8e4c32edbac"
}, - {
- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c"
}
], - "links": {
}
}This endpoint lists the organizations entitled for the isolation segment. For an Admin, this will list all entitled organizations in the system. For any other user, this will list only the entitled organizations to which the user belongs.
Permitted roles: All Roles
| guid required | string <uuid> The unique identifier for the resource |
{- "data": [
- {
- "guid": "68d54d31-9b3a-463b-ba94-e8e4c32edbac"
}, - {
- "guid": "b19f6525-cbd3-4155-b156-dc0c2a431b4c"
}
], - "links": {
}
}This endpoint revokes the entitlement for the specified organization to the isolation segment. If the isolation segment is assigned to a space within an organization, the entitlement cannot be revoked. If the isolation segment is the organization's default, the entitlement cannot be revoked.
Permitted roles: Admin
| guid required | string <uuid> The unique identifier for the resource |
| org_guid required | string <uuid> The guid of the organization to revoke entitlement from |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint lists the spaces to which the isolation segment is assigned. For an Admin, this will list all associated spaces in the system. For an org manager, this will list only those associated spaces belonging to orgs for which the user is a manager. For any other user, this will list only those associated spaces to which the user has access.
Permitted roles: All Roles
| guid required | string <uuid> The unique identifier for the resource |
{- "data": [
- {
- "guid": "885735b5-aea4-4cf5-8e44-961af0e41920"
}, - {
- "guid": "d4c91047-7b29-4fda-b7f9-04033e5c9c9f"
}
], - "links": {
}
}Retrieve the organizations entitled to the isolation segment. Return only the organizations the user has access to.
Permitted roles: Admin, Admin Read-Only, Global Auditor, Org Auditor, Org Billing Manager, Org Manager
| guid required | string <uuid> The unique identifier for the resource |
| names | Array of strings Comma-delimited list of organization names to filter by (case-insensitive) |
| guids | Array of strings Comma-delimited list of organization guids to filter by |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" "name" "-name" Value to sort by; defaults to ascending. Prepend with |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "885735b5-aea4-4cf5-8e44-961af0e41920",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "org1",
- "suspended": false,
- "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "relationships": {
- "quota": {
- "data": {
- "guid": "b7887f5c-34bb-40c5-9778-577572e4fb2d"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "d4c91047-7b29-4fda-b7f9-04033e5c9c9f",
- "created_at": "2017-02-02T00:14:30Z",
- "updated_at": "2017-02-02T00:14:30Z",
- "name": "org2",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "b7887f5c-34bb-40c5-9778-577572e4fb2d"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Retrieve a specific job.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-10-19T20:25:04Z",
- "updated_at": "2016-11-08T16:41:26Z",
- "operation": "app.delete",
- "state": "FAILED",
- "links": {
}, - "errors": [
- {
- "code": 10008,
- "title": "CF-UnprocessableEntity",
- "detail": "something went wrong"
}
], - "warnings": [
- {
- "detail": "warning! warning!"
}
]
}A manifest is a method for applying bulk configurations to apps and their underlying processes.
Generate a manifest for an app and its underlying processes.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}An org is a development account that an individual or multiple collaborators can own and use.
Retrieve all organizations the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| names | Array of strings Comma-delimited list of organization names to filter by |
| guids | Array of strings Comma-delimited list of organization guids to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "org1",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-02T00:14:30Z",
- "updated_at": "2017-02-02T00:14:30Z",
- "name": "org2",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Create an organization.
Organization object that needs to be created
| name required | string Organization name |
| suspended | boolean Whether an organization is suspended or not |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my-organization"
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-organization",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}This endpoint retrieves the specified organization object.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-organization",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Update an organization.
| guid required | string <uuid> The unique identifier for the resource |
Organization object that needs to be updated
| name | string Organization name |
| suspended | boolean Whether an organization is suspended or not |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my-organization"
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-organization",
- "suspended": false,
- "relationships": {
- "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "domains": {
}, - "default_domain": {
}, - "quota": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}When an organization is deleted, user roles associated with the organization will also be deleted.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve the default domain for a given organization.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}This endpoint retrieves the specified organization object's memory and app instance usage summary.
| guid required | string <uuid> The unique identifier for the resource |
{- "usage_summary": {
- "started_instances": 3,
- "memory_in_mb": 50,
- "routes": 4,
- "service_instances": 2,
- "reserved_ports": 1,
- "domains": 4,
- "per_app_tasks": 2,
- "service_keys": 1
}, - "links": {
- "organization": {
}
}
}Retrieve all users with a role in the specified organization.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| guids | Array of strings Comma-delimited list of user guids to filter by |
| usernames | Array of strings Comma-delimited list of usernames to filter by |
| origins | Array of strings Comma-delimited list of user origins to filter by |
| partial_usernames | Array of strings Comma-delimited list of partial usernames to filter by |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}Retrieve the default isolation segment for a given organization.
| guid required | string <uuid> The unique identifier for the resource |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}Set the default isolation segment for a given organization. Only isolation segments that are entitled to the organization are eligible to be the default isolation segment.
Apps will not run in the new default isolation segment until they are restarted.
| guid required | string <uuid> The unique identifier for the resource |
Request body for assign default isolation segment.
Relationship (object) or null | |
object |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}Organization quotas are named sets of memory, log rate, service, and instance usage quotas.
This endpoint lists all organization quota resources.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| guids | Array of strings Comma-delimited list of organization quota guids to filter by |
| names | Array of strings Comma-delimited list of organization quota names to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": 5
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "domains": {
- "total_domains": 7
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
},
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-05-04T17:00:41Z",
- "updated_at": "2017-05-04T17:00:41Z",
- "name": "sancho-panza",
- "apps": {
- "total_memory_in_mb": 2048,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 5,
- "per_app_tasks": 2
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "domains": {
- "total_domains": 7
}, - "relationships": {
- "organizations": {
- "data": [ ]
}
},
}
]
}This endpoint creates a new organization quota, but does not assign it to a specific organization unless an organization GUID is provided in the relationships.organizations parameter.
To create an organization quota you must be an admin.
Organization quota object that needs to be created
| name required | string Name of the quota |
object Quotas that affect applications and application sub-resources | |
object Quotas that affect services | |
object Quotas that affect routes | |
object Quotas that affect domains | |
object | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "production"
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": 5
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "domains": {
- "total_domains": 7
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
},
}This endpoint gets an individual organization quota resource.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": 5
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "domains": {
- "total_domains": 7
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
},
}This endpoint will only update the parameters specified in the request body. Any unspecified parameters will retain their existing values.
| guid required | string <uuid> The unique identifier for the resource |
Organization quota object that needs to be updated
| name | string Name of the quota |
object Quotas that affect applications and application sub-resources | |
object Quotas that affect services | |
object Quotas that affect routes | |
object Quotas that affect domains | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "string",
- "apps": {
- "per_process_memory_in_mb": 0,
- "total_memory_in_mb": 0,
- "total_instances": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "per_app_tasks": 0
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 0,
- "total_service_keys": 0
}, - "routes": {
- "total_routes": 0,
- "total_reserved_ports": 0
}, - "domains": {
- "total_domains": 0
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": 5
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "domains": {
- "total_domains": 7
}, - "relationships": {
- "organizations": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
},
}Organization quotas cannot be deleted when applied to any organizations.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint applies an organization quota to one or more organizations.
Only admin users can apply an organization quota to an organization.
| quota_guid required | string <uuid> GUID of the quota. |
Request body for apply an organization quota to an organization.
Array of objects (Relationship) | |
object |
{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
], - "links": {
}
}A package is an application’s ‘source code’; either raw bits for your application or a pointer to these bits.
Retrieve all packages.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of package guids to filter by |
| states | Array of strings Items Enum: "AWAITING_UPLOAD" "PROCESSING_UPLOAD" "READY" "FAILED" "COPYING" "EXPIRED" Comma-delimited list of package states to filter by |
| types | Array of strings Items Enum: "bits" "docker" Comma-delimited list of package types to filter by |
| app_guids | Array of strings Comma-delimited list of app guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "bits",
- "data": {
- "checksum": {
- "type": "sha256",
- "value": null
}, - "error": null
}, - "state": "AWAITING_UPLOAD",
- "created_at": "2015-11-03T00:53:54Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "upload": {
- "method": "POST"
}, - "download": {
- "method": "GET"
},
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "docker",
- "data": {
- "image": "registry/image:latest",
- "username": "username",
- "password": "***"
}, - "state": "READY",
- "created_at": "2015-11-03T00:53:54Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Create a package.
Package object that needs to be created or copied. When copying (source_guid query parameter is provided), only relationships.app is required. When creating a new package, type and relationships.app are required.
| type | string Enum: "bits" "docker" Type of the package; valid values are bits or docker. Required when creating a new package (when source_guid is not provided). Not required when copying a package (when source_guid is provided). |
object Data for package type | |
required | object |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "type": "bits",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "docker",
- "data": {
- "image": "registry/image:latest",
- "username": "username",
- "password": "***"
}, - "state": "READY",
- "created_at": "2015-11-03T00:53:54Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Retrieve a package.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "bits",
- "data": {
- "error": "string",
- "checksum": {
- "type": "string",
- "value": "string"
}, - "image": "string",
- "username": "string",
- "password": "string"
}, - "state": "AWAITING_UPLOAD",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}
}
}Update a package.
| guid required | string <uuid> The unique identifier for the resource |
Package object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. | |
| username | string The username for the image’s registry. Only possible for Docker package. |
| password | string The password for the image’s registry. Only possible for Docker package. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "bits",
- "data": {
- "error": "string",
- "checksum": {
- "type": "string",
- "value": "string"
}, - "image": "string",
- "username": "string",
- "password": "string"
}, - "state": "AWAITING_UPLOAD",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}
}
}Retrieve a list of droplets belonging to a package.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of droplet guids to filter by |
| states | Array of strings Comma-delimited list of droplet states to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "buildpack",
- "data": { }
}, - "image": null,
- "execution_metadata": "PRIVATE DATA HIDDEN",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "checksum": {
- "type": "sha256",
- "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}, - "buildpacks": [
- {
- "name": "ruby_buildpack",
- "detect_output": "ruby 1.6.14",
- "version": "1.1.1.",
- "buildpack_name": "ruby"
}
], - "stack": "cflinuxfs4",
- "created_at": "2016-03-28T23:39:34Z",
- "updated_at": "2016-03-28T23:39:47Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}, - "download": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "STAGED",
- "error": null,
- "lifecycle": {
- "type": "docker",
- "data": { }
}, - "execution_metadata": "123e4567-e89b-12d3-a456-426614174000",
- "process_types": {
- "redacted_message": "123e4567-e89b-12d3-a456-426614174000"
}, - "image": "cloudfoundry/diego-docker-app-custom:latest",
- "checksum": null,
- "buildpacks": null,
- "stack": null,
- "created_at": "2016-03-17T00:00:01Z",
- "updated_at": "2016-03-17T21:41:32Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "assign_current_droplet": {
- "method": "PATCH"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Retrieve packages for an app that the user has access to.
| guid required | string <uuid> The unique identifier for the resource |
| guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| states | Array of strings Items Enum: "AWAITING_UPLOAD" "PROCESSING_UPLOAD" "READY" "FAILED" "COPYING" "EXPIRED" Comma-delimited list of package states to filter by |
| types | Array of strings Items Enum: "bits" "docker" Comma-delimited list of package types to filter by |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "bits",
- "data": {
- "error": null,
- "checksum": {
- "type": "sha256",
- "value": null
}
}, - "state": "READY",
- "created_at": "2016-03-17T21:41:09Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "upload": {
- "method": "POST"
}, - "download": {
- "method": "GET"
},
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}This upload endpoint takes a multi-part form requests for packages of type bits. The request requires either a .zip file uploaded under the bits field or a list of resource match objects under the resources field. These field may be used together.
| guid required | string <uuid> The unique identifier for the resource |
Request body for upload package bits.
| bits | string <binary> |
Array of objects |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "bits",
- "data": {
- "error": "string",
- "checksum": {
- "type": "string",
- "value": "string"
}, - "image": "string",
- "username": "string",
- "password": "string"
}, - "state": "AWAITING_UPLOAD",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}
}
}This endpoint downloads the bits of an existing package.
When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits. If the client is automatically following redirects, then the OAuth token that was used to communicate with Cloud Controller will be replayed on the new redirect request. Some blobstores may reject the request in that case. Clients may need to follow the redirect without including the OAuth token.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve all processes.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of process guids to filter by |
| types | Array of strings Comma-delimited list of process types to filter by |
| app_guids | Array of strings Comma-delimited list of app guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
{- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}
]
}Get a process.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "type": "web",
- "command": "rackup",
- "user": "vcap",
- "instances": 5,
- "memory_in_mb": 256,
- "disk_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": null
}
}, - "readiness_health_check": {
- "type": "process",
- "data": {
- "invocation_timeout": null
}
}, - "process_instances": [
- {
- "index": 0,
- "state": "RUNNING",
- "since": 123456789
}, - {
- "index": 1,
- "state": "STARTING",
- "since": 123
}, - {
- "index": 2,
- "state": "DOWN",
- "since": 456
}
], - "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "revision": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "created_at": "2016-03-23T18:48:22Z",
- "updated_at": "2016-03-23T18:48:42Z",
- "version": "e9df685c-0464-4aa7-b5f0-8ed843077c13",
- "links": {
- "scale": {
- "method": "POST"
}, - "stats": {
}, - "process_instances": {
}
}
}Update a process.
| guid required | string <uuid> The unique identifier for the resource |
Process object that needs to be updated
| command | string or null The command used to start the process; use null to revert to the buildpack-detected or procfile-provided start command |
object (HealthCheck) The health check to perform on the process | |
object (HealthCheck) The readiness health check to perform on the process | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "command": "rackup",
- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}Retrieve the instances for a process. Unlike the stats endpoint, this returns a simplified view with only the index, state, and uptime of each instance.
| guid required | string <uuid> The unique identifier for the resource |
{- "resources": [
- {
- "index": 0,
- "state": "RUNNING",
- "since": 123456789
}, - {
- "index": 1,
- "state": "STARTING",
- "since": 123
}, - {
- "index": 2,
- "state": "DOWN",
- "since": 456
}
], - "links": {
}
}Get stats for a process.
| guid required | string <uuid> The unique identifier for the resource |
{- "resources": [
- {
- "type": "web",
- "index": 0,
- "instance_guid": "123e4567-e89b-12d3-a456-426614174000",
- "state": "RUNNING",
- "routable": true,
- "usage": {
- "time": "2016-03-23T23:17:30.476314154Z",
- "cpu": 0.00038711029163348665,
- "cpu_entitlement": 0.01117396940977856,
- "mem": 19177472,
- "disk": 69705728,
- "log_rate": 0
}, - "host": "10.244.16.10",
- "instance_internal_ip": "10.255.93.167",
- "instance_ports": [
- {
- "external": 64546,
- "internal": 8080,
- "external_tls_proxy_port": 61002,
- "internal_tls_proxy_port": 61003
}
], - "uptime": 9042,
- "mem_quota": 268435456,
- "disk_quota": 1073741824,
- "fds_quota": 16384,
- "isolation_segment": "example_iso_segment",
- "log_rate_limit": null,
- "details": null
}, - {
- "type": "web",
- "index": 1,
- "state": "STARTING",
- "routable": false,
- "usage": {
- "cpu": 0,
- "cpu_entitlement": 0,
- "disk": 0,
- "log_rate": 0,
- "mem": 0,
- "time": "2016-03-23T21:34:04+00:00"
}, - "disk_quota": null,
- "fds_quota": 16384,
- "host": "",
- "instance_internal_ip": "",
- "instance_ports": null,
- "isolation_segment": null,
- "log_rate_limit": null,
- "mem_quota": null,
- "uptime": 0,
- "details": null
}
]
}Scale a process.
| guid required | string <uuid> The unique identifier for the resource |
Request body for scale a process.
| instances | integer or null The number of instances to run |
| memory_in_mb | integer or null The memory in MB allocated per instance |
| disk_in_mb | integer or null The disk in MB allocated per instance |
| log_rate_limit_in_bytes_per_second | integer or null The log rate limit in bytes per second per instance |
{- "instances": 5,
- "memory_in_mb": 256,
- "disk_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}Terminate an instance of a specific process. Health management will eventually restart the instance.
This allows a user to stop a single misbehaving instance of a process.
| guid required | string <uuid> The unique identifier for the resource |
| index required | integer Zero-based index of the process instance. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieves all processes belonging to an app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
{- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}
]
}Get a specific process for an app.
| guid required | string <uuid> The unique identifier for the resource |
| type required | string Process type, such as web or worker. |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}Update a specific process for an app.
| guid required | string <uuid> The unique identifier for the resource |
| type required | string Process type, such as web or worker. |
Process object that needs to be updated
| command | string or null The command used to start the process; use null to revert to the buildpack-detected or procfile-provided start command |
object (HealthCheck) The health check to perform on the process | |
object (HealthCheck) The readiness health check to perform on the process | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "command": "rackup",
- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}Get stats for a specific process for an app.
| guid required | string <uuid> The unique identifier for the resource |
| type required | string Process type, such as web or worker. |
{- "resources": [
- {
- "type": "string",
- "index": 0,
- "state": "RUNNING",
- "host": "string",
- "uptime": 0,
- "mem_quota": 0,
- "disk_quota": 0,
- "log_rate_limit": 0,
- "usage": {
- "time": "2019-08-24T14:15:22Z",
- "cpu": 0,
- "mem": 0,
- "disk": 0,
- "log_rate": 0,
- "cpu_entitlement": 0
}, - "instance_guid": "string",
- "routable": true,
- "instance_internal_ip": "string",
- "instance_ports": [
- {
- "external": 0,
- "internal": 0,
- "external_tls_proxy_port": 0,
- "internal_tls_proxy_port": 0
}
], - "fds_quota": 0,
- "isolation_segment": "string",
- "details": "string"
}
]
}Scale a specific process for an app.
| guid required | string <uuid> The unique identifier for the resource |
| type required | string Process type, such as web or worker. |
Request body for scale a process for an app.
| instances | integer or null The number of instances to run |
| memory_in_mb | integer or null The memory in MB allocated per instance |
| disk_in_mb | integer or null The disk in MB allocated per instance |
| log_rate_limit_in_bytes_per_second | integer or null The log rate limit in bytes per second per instance |
{- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "8b898373-21c7-4028-b85f-cc5068e68df9",
- "type": "string",
- "command": "string",
- "user": "string",
- "instances": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "readiness_health_check": {
- "type": "port",
- "data": {
- "timeout": 0,
- "invocation_timeout": 0,
- "interval": 0,
- "endpoint": "string"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "revision": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "scale": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "stats": {
- "href": "string",
- "method": "string"
}, - "process_instances": {
- "href": "string",
- "method": "string"
}
}
}Terminate a specific process instance for an app.
| guid required | string <uuid> The unique identifier for the resource |
| type required | string Process type, such as web or worker. |
| index required | integer Zero-based index of the process instance. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Resource Matches are used to determine if a resource has been previously uploaded to the Cloud Controller.
This endpoint returns a list of cached resources from the input list.
This endpoint matches given resource SHA-1/file size pairs against the Cloud Controller cache and reports the subset that describes already cached files. This is usually used to avoid uploading duplicate files when pushing an app which has only been partially changed. The path and mode fields are not used when matching.
When uploading package bits, the response from this endpoint should be used as the resources form field. As such, it is useful to include the path and mode fields for each resource even though they are not used when determining a resource match.
Cloud Foundry operators may set minimum/maximum file sizes to match against. If the file size provided is outside this range, it will not be matched against.
If the resource_matching feature flag is disabled, resource matching will always return an empty array.
Request body for create a resource match.
required | Array of objects List of resources to check for in the resource cache |
{- "resources": [
- {
- "checksum": {
- "value": "002d760bea1be268e27077412e11a320d0f164d3"
}, - "size_in_bytes": 36,
- "path": "C:\\path\\to\\file",
- "mode": "645"
}, - {
- "checksum": {
- "value": "a9993e364706816aba3e25717850c26c9cd0d89d"
}, - "size_in_bytes": 1,
- "path": "path/to/file",
- "mode": "644"
}
]
}{- "resources": [
- {
- "checksum": {
- "value": "a9993e364706816aba3e25717850c26c9cd0d89d"
}, - "size_in_bytes": 1,
- "path": "path/to/file",
- "mode": "644"
}
]
}Retrieve a revision.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": 0,
- "description": "string",
- "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}
}Update a revision.
| guid required | string <uuid> The unique identifier for the resource |
Revision object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": 0,
- "description": "string",
- "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}
}Retrieve the environment variables that are associated with the revision.
| guid required | string <uuid> The unique identifier for the resource |
{- "var": {
- "RAILS_ENV": "production"
}, - "links": {
}
}Retrieve revisions for an app the user has access to.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| versions | Array of strings Comma-delimited list of revision versions to filter by |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "version": 1,
- "droplet": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "processes": {
- "web": {
- "command": "bundle exec rackup"
}
}, - "sidecars": [
- {
- "name": "auth-sidecar",
- "command": "bundle exec sidecar",
- "process_types": [
- "web"
], - "memory_in_mb": 300
}
], - "description": "Initial revision.",
- "deployable": true,
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "environment_variables": {
}
}
}
]
}Retrieve deployed revisions for an app the user has access to. Deployed revisions are revisions that are linked to started processes in the app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
{- "pagination": {
- "total_results": 1,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "version": 1,
- "droplet": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "processes": {
- "web": {
- "command": "bundle exec rackup"
}
}, - "sidecars": [
- {
- "name": "auth-sidecar",
- "command": "bundle exec sidecar",
- "process_types": [
- "web"
], - "memory_in_mb": 300
}
], - "description": "Initial revision.",
- "deployable": true,
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "environment_variables": {
}
}
}
]
}This endpoint lists roles that the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of role guids to filter by |
| types | Array of strings Items Enum: "organization_user" "organization_auditor" "organization_manager" "organization_billing_manager" "space_auditor" "space_developer" "space_manager" "space_supporter" Comma-delimited list of role types to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| user_guids | Array of strings Comma-delimited list of user guids to filter by |
| include | Array of strings Items Enum: "user" "space" "organization" Optionally include additional related resources in the response; valid values are |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "organization_user",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "user": {
- "data": {
- "guid": "string"
}
}, - "user_group": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "user": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": null
}
], - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": null,
- "password": null,
- "token": null
}, - "property2": {
- "username": null,
- "password": null,
- "token": null
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}
], - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint creates a new role for a user in an organization or space.
To create an organization role you must be an admin or organization manager in the organization associated with the role.
To create a space role you must be an admin, an organization manager in the parent organization of the space associated with the role, or a space manager in the space associated with the role.
For a user to be assigned a space role, the user must already have an organization role in the parent organization.
If the associated user is valid but does not exist in Cloud Controller’s database, a user resource will be created automatically.
If CAPI property cc.allow_user_creation_by_org_manager is enabled, the organization role is being created by username + origin and the user does not exist in UAA yet, the user will be created. The origin must be different from uaa in this case.
Role to create
| type | string Enum: "organization_user" "organization_auditor" "organization_manager" "organization_billing_manager" "space_auditor" "space_developer" "space_manager" "space_supporter" Role to create |
object |
{- "type": "organization_auditor",
- "relationships": {
- "user": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2019-10-10T17:19:12Z",
- "updated_at": "2019-10-10T17:19:12Z",
- "type": "organization_auditor",
- "relationships": {
- "user": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "user_group": {
- "data": null
}, - "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "space": {
- "data": null
}
}, - "links": {
- "organization": {
}
}
}This endpoint gets an individual role resource.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "user" "space" "organization" Optionally include additional related resources in the response; valid values are |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2019-10-10T17:19:12Z",
- "updated_at": "2019-10-10T17:19:12Z",
- "type": "organization_auditor",
- "relationships": {
- "user": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "user_group": {
- "data": null
}, - "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "space": {
- "data": null
}
}, - "links": {
- "organization": {
}
}
}{- "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "apps": {
- "href": "string",
- "method": "string"
}, - "builds": {
- "href": "string",
- "method": "string"
}, - "deployments": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "feature_flags": {
- "href": "string",
- "method": "string"
}, - "info": {
- "href": "string",
- "method": "string"
}, - "isolation_segments": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "roles": {
- "href": "string",
- "method": "string"
}, - "routes": {
- "href": "string",
- "method": "string"
}, - "security_groups": {
- "href": "string",
- "method": "string"
}, - "service_brokers": {
- "href": "string",
- "method": "string"
}, - "service_instances": {
- "href": "string",
- "method": "string"
}, - "service_offerings": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "spaces": {
- "href": "string",
- "method": "string"
}, - "stacks": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "users": {
- "href": "string",
- "method": "string"
}
}
}Retrieve all routes the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| protocols | Array of strings Items Enum: "http" "tcp" Comma-delimited list of protocols to filter by |
| hosts | Array of strings Comma-delimited list of hosts to filter by |
| paths | Array of strings Comma-delimited list of paths to filter by |
| ports | Array of integers Comma-delimited list of ports to filter by |
| domain_guids | Array of strings Comma-delimited list of domain GUIDs to filter by |
| space_guids | Array of strings Comma-delimited list of space GUIDs to filter by |
| app_guids | Array of strings Comma-delimited list of app GUIDs to filter by |
| organization_guids | Array of strings Comma-delimited list of organization GUIDs to filter by |
| service_instance_guids | Array of strings Comma-delimited list of service instance GUIDs to filter by |
| include | Array of strings Items Enum: "domain" "space.organization" "space" Optionally include a list of unique related resources in the response |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": null
}
], - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": null,
- "password": null,
- "token": null
}, - "property2": {
- "username": null,
- "password": null,
- "token": null
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}
]
}Create a route.
Route to create
| host | string The host component for the route; not compatible with routes specifying the |
| path | string The path component for the route; should begin with a |
| port | integer The port the route will listen on; only compatible with routes leveraging a domain that supports the |
required | object |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. | |
object |
{- "host": "a-hostname",
- "path": "/some_path",
- "port": 6666,
- "relationships": {
- "domain": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "options": {
- "loadbalancing": "round-robin"
}, - "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}Retrieve all destinations associated with a route.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
{- "destinations": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": null,
- "port": 8080,
- "protocol": "http2",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "api"
}
}, - "weight": null,
- "port": 9000,
- "protocol": "http1",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}
], - "links": {
- "self": {
},
}
}Add one or more destinations to a route, preserving any existing destinations.
Weighted destinations (deprecated) cannot be added with this endpoint.
| guid required | string <uuid> The unique identifier for the resource |
A list of route destinations
Array of objects (RouteDestination) List of destinations to add to route; destinations without |
{- "destinations": [
- {
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "weight": 61
}, - {
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "api"
}
}, - "weight": 39,
- "port": 9000,
- "protocol": "http1"
}
]
}{- "destinations": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": null,
- "port": 8080,
- "protocol": "http2",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "api"
}
}, - "weight": null,
- "port": 9000,
- "protocol": "http1",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}
], - "links": {
- "self": {
},
}
}Replaces all destinations for a route, removing any destinations not included in the provided list.
Weighted destinations are deprecated. Development of the experimental Istio Service Mesh routing layer was discontinued in 2020 and is no longer supported by the platform. Specifying a weight for a destination will take no effect.
If weighted destinations are provided, however, all destinations provided here must have a weight specified, and all weights for this route must sum to 100. If not, all provided destinations must not have a weight. Mixing weighted and unweighted destinations for a route is not allowed.
| guid required | string <uuid> The unique identifier for the resource |
A list of route destinations
Array of objects (RouteDestination) List of destinations to add to route; destinations without |
{- "destinations": [
- {
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "weight": 61
}, - {
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "api"
}
}, - "weight": 39,
- "port": 9000,
- "protocol": "http1"
}
]
}{- "destinations": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": 61,
- "port": 8080,
- "protocol": "http2"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "api"
}
}, - "weight": 39,
- "port": 9000,
- "protocol": "http1"
}
], - "links": {
- "self": {
},
}
}This endpoint updates the protocol of a route destination (app, port and weight cannot be updated)
| guid required | string <uuid> The unique identifier for the resource |
| destination_guid required | string <uuid> The GUID of the route destination |
Protocol of the destination
| protocol required | string Enum: "http1" "http2" Protocol of the destination |
{- "protocol": "http2"
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": 61,
- "port": 8080,
- "protocol": "http2",
- "links": {
- "destinations": {
},
}
}Remove a destination from a route.
| guid required | string <uuid> The unique identifier for the resource |
| destination_guid required | string <uuid> The GUID of the route destination to remove |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve all routes that have destinations that point to the given app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| domain_guids | Array of strings Comma-delimited list of domain guids to filter by |
| hosts | Array of strings Comma-delimited list of hostnames to filter by |
| paths | Array of strings Comma-delimited list of paths to filter by |
| ports | Array of integers Comma-delimited list of ports to filter by |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "first": {
- "href": "https://api.example.org<%= path %>?page=1&per_page=2"
}, - "last": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=2"
}, - "next": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=2"
}, - "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "protocol": "http",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z",
- "host": "a-hostname",
- "path": "/some_path",
- "url": "a-hostname.a-domain.com/some_path",
- "destinations": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": null,
- "port": 8080,
- "protocol": "http1",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "app": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "process": {
- "type": "web"
}
}, - "weight": null,
- "port": 8080,
- "protocol": "http1",
- "created_at": "2019-05-10T17:17:48Z",
- "updated_at": "2019-05-10T17:17:48Z"
}
], - "options": {
- "loadbalancing": "round-robin"
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "domain": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "destinations": {
}
}
}
]
}Retrieve a route.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "domain" "space" "space.organization" Optionally include a list of unique related resources in the response |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}Update a route.
| guid required | string <uuid> The unique identifier for the resource |
Route object that needs to be updated
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}Transfers a the ownership of a route to a another space. Users must have write access for both spaces to perform this action. The original owning space will still retain access to the route as a shared space. To completely remove a space from a route, users will have to use unshare route.
| guid required | string <uuid> The unique identifier for the resource |
The space to transfer ownership to
Relationship (object) or null | |
object |
{- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve all route policies the user has access to.
Filtering examples
GET /v3/route_policies?route_guids=89b32bd6-688f-4424-b94f-2e2c86495a5fGET /v3/route_policies?space_guids=3fa85f64-5717-4562-b3fc-2c963f66afa6GET /v3/route_policies?sources=cf:anyGET /v3/route_policies?source_guids=d76446a1-f429-4444-8797-be2f78b75b08GET /v3/route_policies?include=source (batch-loads the app, space, or org referenced in each policy's source)GET /v3/route_policies?include=route,sourceThis feature is experimental and is subject to change.
Permitted roles: Admin, Admin Read-Only, Global Auditor, Org Manager, Org Auditor, Org Billing Manager (will receive an empty list), Space Auditor, Space Developer, Space Manager, Space Supporter
| guids | Array of strings Comma-delimited list of route policy guids to filter by |
| route_guids | Array of strings Comma-delimited list of route guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by (filters by the route's space) |
| sources | Array of strings Comma-delimited list of exact source strings to filter by (e.g., |
| source_guids | Array of strings Comma-delimited list of GUIDs to filter by; matches the GUID portion of the source (e.g. the app, space, or org GUID) |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| include | Array of strings Items Enum: "route" "source" Optionally include related resources in the response; valid values are |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "a4ad8bc1-67a6-4ffa-95b7-f8cf04ad7d4f",
- "created_at": "2026-04-21T10:15:30Z",
- "updated_at": "2026-04-21T10:15:30Z",
- "source": "cf:app:d76446a1-f429-4444-8797-be2f78b75b08",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}, - "app": {
- "data": {
- "guid": "d76446a1-f429-4444-8797-be2f78b75b08"
}
}, - "space": {
- "data": null
}, - "organization": {
- "data": null
}
}, - "links": {
}
}, - {
- "guid": "f2b5d8c3-92a1-4e3f-b847-9c8f1d2e3a4b",
- "created_at": "2026-04-21T11:20:45Z",
- "updated_at": "2026-04-21T11:20:45Z",
- "source": "cf:space:3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}, - "app": {
- "data": null
}, - "space": {
- "data": {
- "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}, - "organization": {
- "data": null
}
}, - "links": {
}
}
]
}Create a route policy granting the given source access to a route on an identity-aware domain.
Validation rules
enforce_route_policies set to truesource must be unique per route (duplicate sources are rejected)cf:any policy, no other sources can be addedcf:any, the route must not have any existing policies?include=sourceapp, space, and organization relationships are derived from source and cannot be set directlyCommon use cases
source of cf:app:<frontend-app-guid> on the backend routesource of cf:space:<space-guid> on the shared service routesource of cf:anyThis feature is experimental and is subject to change.
Permitted roles: Admin, Space Developer (can create policies for routes in spaces they can write to)
Route policy to create
| source required | string The policy selector. Must be |
required | object A relationship to the route this policy applies to |
object (Metadata) Labels and annotations applied to the route policy |
{- "source": "cf:app:d76446a1-f429-4444-8797-be2f78b75b08",
- "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}
}, - "metadata": {
- "labels": {
- "team": "frontend"
}, - "annotations": {
- "description": "Allow frontend app to call backend API"
}
}
}{- "guid": "a4ad8bc1-67a6-4ffa-95b7-f8cf04ad7d4f",
- "created_at": "2026-04-21T10:15:30Z",
- "updated_at": "2026-04-21T10:15:30Z",
- "source": "cf:app:d76446a1-f429-4444-8797-be2f78b75b08",
- "metadata": {
- "labels": {
- "team": "frontend"
}, - "annotations": {
- "description": "Allow frontend app to call backend API"
}
}, - "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}, - "app": {
- "data": {
- "guid": "d76446a1-f429-4444-8797-be2f78b75b08"
}
}, - "space": {
- "data": null
}, - "organization": {
- "data": null
}
}, - "links": {
}
}Retrieve a single route policy.
This feature is experimental and is subject to change.
Permitted roles: Admin, Admin Read-Only, Global Auditor, Org Manager, Org Auditor, Org Billing Manager (will not be able to see any route policies), Space Auditor, Space Developer, Space Manager, Space Supporter
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "route" "source" Optionally include a list of unique related resources in the response; valid values are |
{- "guid": "a4ad8bc1-67a6-4ffa-95b7-f8cf04ad7d4f",
- "created_at": "2026-04-21T10:15:30Z",
- "updated_at": "2026-04-21T10:15:30Z",
- "source": "cf:app:d76446a1-f429-4444-8797-be2f78b75b08",
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}, - "app": {
- "data": {
- "guid": "d76446a1-f429-4444-8797-be2f78b75b08"
}
}, - "space": {
- "data": null
}, - "organization": {
- "data": null
}
}, - "links": {
}
}Update the metadata of a route policy.
Note: This endpoint only supports updating metadata (labels and annotations). The
sourceand route relationship are immutable after creation. To change the source, delete the policy and create a new one.
This feature is experimental and is subject to change.
Permitted roles: Admin, Space Developer (can update policies for routes in spaces they can write to)
| guid required | string <uuid> The unique identifier for the resource |
Route policy metadata to update
object (Metadata) Labels and annotations applied to the route policy |
{- "metadata": {
- "labels": {
- "team": "backend"
}, - "annotations": {
- "note": "Updated contact info"
}
}
}{- "guid": "a4ad8bc1-67a6-4ffa-95b7-f8cf04ad7d4f",
- "created_at": "2026-04-21T10:15:30Z",
- "updated_at": "2026-04-21T10:15:30Z",
- "source": "cf:app:d76446a1-f429-4444-8797-be2f78b75b08",
- "metadata": {
- "labels": {
- "team": "backend"
}, - "annotations": {
- "note": "Updated contact info"
}
}, - "relationships": {
- "route": {
- "data": {
- "guid": "89b32bd6-688f-4424-b94f-2e2c86495a5f"
}
}, - "app": {
- "data": {
- "guid": "d76446a1-f429-4444-8797-be2f78b75b08"
}
}, - "space": {
- "data": null
}, - "organization": {
- "data": null
}
}, - "links": {
}
}Deleting a route policy removes the access control for that specific source. If this was the only policy on the route, the route will become inaccessible (no callers will be allowed) until new policies are added or a cf:any policy is created.
This feature is experimental and is subject to change.
Permitted roles: Admin, Space Developer (can delete policies for routes in spaces they can write to)
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}List security groups.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| guids | Array of strings Comma-separated list of resource GUIDs to filter by |
| names | Array of strings Comma-separated list of names to filter by (case insensitive) |
| globally_enabled_running | boolean If true, only include the security groups that are enabled for running |
| globally_enabled_staging | boolean If true, only include the security groups that are enabled for staging |
| running_space_guids | Array of strings Comma-delimited list of space guids to filter by |
| staging_space_guids | Array of strings Comma-delimited list of space guids to filter by |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "globally_enabled": {
- "running": true,
- "staging": true
}, - "rules": [
- {
- "protocol": "string",
- "destination": "string",
- "ports": "string",
- "type": 0,
- "code": 0,
- "description": "string"
}
], - "running_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "staging_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "running_spaces": {
- "href": "string",
- "method": "string"
}, - "staging_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}Create a security group.
Request body for create a security group.
| name required | string Name of the security group |
object | |
Array of objects Rules for the security group | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my-group0",
- "rules": [
- {
- "protocol": "tcp",
- "destination": "10.10.10.0/24",
- "ports": "443,80,8080"
}, - {
- "protocol": "icmp",
- "destination": "10.10.10.0/24",
- "type": 8,
- "code": 0,
- "description": "Allow ping requests to private services"
}
]
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-02-20T17:42:08Z",
- "updated_at": "2020-02-20T17:42:08Z",
- "name": "my-group0",
- "globally_enabled": {
- "running": true,
- "staging": false
}, - "rules": [
- {
- "protocol": "tcp",
- "destination": "10.10.10.0/24",
- "ports": "443,80,8080"
}, - {
- "protocol": "icmp",
- "destination": "10.10.10.0/24",
- "type": 8,
- "code": 0,
- "description": "Allow ping requests to private services"
}, - {
- "protocol": "icmpv6",
- "destination": "::/0",
- "type": -1,
- "code": -1,
- "description": "Allow all ICMPv6 traffic"
}, - {
- "protocol": "tcp",
- "destination": "1.1.1.1,2.2.2.2/24,10.0.0.0-10.0.0.255",
- "ports": "80,443,8080",
- "description": "Only valid if cc.security_groups.enable_comma_delimited_destinations is true"
}
], - "relationships": {
- "staging_spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}, - "running_spaces": {
- "data": [ ]
}
}, - "links": {
}
}Get a security group.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-02-20T17:42:08Z",
- "updated_at": "2020-02-20T17:42:08Z",
- "name": "my-group0",
- "globally_enabled": {
- "running": true,
- "staging": false
}, - "rules": [
- {
- "protocol": "tcp",
- "destination": "10.10.10.0/24",
- "ports": "443,80,8080"
}, - {
- "protocol": "icmp",
- "destination": "10.10.10.0/24",
- "type": 8,
- "code": 0,
- "description": "Allow ping requests to private services"
}, - {
- "protocol": "icmpv6",
- "destination": "::/0",
- "type": -1,
- "code": -1,
- "description": "Allow all ICMPv6 traffic"
}, - {
- "protocol": "tcp",
- "destination": "1.1.1.1,2.2.2.2/24,10.0.0.0-10.0.0.255",
- "ports": "80,443,8080",
- "description": "Only valid if cc.security_groups.enable_comma_delimited_destinations is true"
}
], - "relationships": {
- "staging_spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}, - "running_spaces": {
- "data": [ ]
}
}, - "links": {
}
}Update a security group.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a security group.
| name | string Name of the security group |
object | |
Array of objects Rules for the security group | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "string",
- "globally_enabled": {
- "running": true,
- "staging": true
}, - "rules": [
- {
- "protocol": "string",
- "destination": "string",
- "ports": "string",
- "type": 0,
- "code": 0,
- "description": "string"
}
], - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-02-20T17:42:08Z",
- "updated_at": "2020-02-20T17:42:08Z",
- "name": "my-group0",
- "globally_enabled": {
- "running": true,
- "staging": false
}, - "rules": [
- {
- "protocol": "tcp",
- "destination": "10.10.10.0/24",
- "ports": "443,80,8080"
}, - {
- "protocol": "icmp",
- "destination": "10.10.10.0/24",
- "type": 8,
- "code": 0,
- "description": "Allow ping requests to private services"
}, - {
- "protocol": "icmpv6",
- "destination": "::/0",
- "type": -1,
- "code": -1,
- "description": "Allow all ICMPv6 traffic"
}, - {
- "protocol": "tcp",
- "destination": "1.1.1.1,2.2.2.2/24,10.0.0.0-10.0.0.255",
- "ports": "80,443,8080",
- "description": "Only valid if cc.security_groups.enable_comma_delimited_destinations is true"
}
], - "relationships": {
- "staging_spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}, - "running_spaces": {
- "data": [ ]
}
}, - "links": {
}
}This endpoint binds one or more spaces to a security group with the running lifecycle. Running app containers within these spaces will inherit the rules specified by this security group. Apps within these spaces must be restarted for these changes to take effect. Unless a security group is globally-enabled, an admin must add it to a space for it to be visible for the org and space managers. Once it's visible, org and space managers can add it to additional spaces.
| guid required | string <uuid> The unique identifier for the resource |
Request body for bind a running security group to spaces.
Array of objects (Relationship) | |
object |
{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}This endpoint removes a space from a security group with the running lifecycle. Apps within this space must be restarted for these changes to take effect.
| guid required | string <uuid> The unique identifier for the resource |
| space_guid required | string <uuid> The unique identifier for the space |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint binds one or more spaces to a security group with the staging lifecycle. Staging app containers within these spaces will inherit the rules specified by this security group. Apps within these spaces must be restaged for these changes to take effect. Unless a security group is globally-enabled, an admin must add it to a space for it to be visible for the org and space managers. Once it's visible, org and space managers can add it to additional spaces.
| guid required | string <uuid> The unique identifier for the resource |
Request body for bind a staging security group to spaces.
Array of objects (Relationship) | |
object |
{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}This endpoint removes a space from a security group with the staging lifecycle. Apps within this space must be restaged for these changes to take effect.
| guid required | string <uuid> The unique identifier for the resource |
| space_guid required | string <uuid> The unique identifier for the space |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the service brokers the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| names | Array of strings Comma-delimited list of service broker names to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_broker",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": { },
- "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_offerings": {
}
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "another_service_broker",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_offerings": {
},
}
}
]
}This endpoint creates a new service broker and a job to synchronize the service offerings and service plans with those in the broker’s catalog. The Location header refers to the created job which syncs the broker with the catalog. See Service broker jobs for more information and limitations.
Service broker to create
| name required | string Name of the service broker |
| url required | string <uri> URL of the service broker |
object Authentication details for the service broker | |
object Relationships for the service broker | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my_service_broker",
- "authentication": {
- "type": "basic",
- "credentials": {
- "username": "us3rn4me",
- "password": "p4ssw0rd"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the service broker by GUID.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_broker",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": {
- "type": "dev"
}, - "annotations": { }
}, - "links": {
- "self": {
}, - "service_offerings": {
},
}
}This endpoint updates a service broker. Depending on the parameters specified, the endpoint may respond with a background job, and it may synchronize the service offerings and service plans with those in the broker’s catalog.
When a service broker has a synchronization job in progress, only updates with metadata are permitted until the synchronization job is complete.
| guid required | string <uuid> The unique identifier for the resource |
Service broker object that needs to be updated
| name | string Name of the service broker |
| url | string URL of the service broker |
object Credentials used to authenticate against the service broker | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my_service_broker",
- "authentication": {
- "type": "basic",
- "credentials": {
- "username": "us3rn4me",
- "password": "p4ssw0rd"
}
}, - "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_broker",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": {
- "type": "dev"
}, - "annotations": { }
}, - "links": {
- "self": {
}, - "service_offerings": {
},
}
}This endpoint creates a job to delete an existing service broker. The Location header refers to the created job. See Service broker jobs for more information and limitations.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Service credential bindings are used to bind a service instance to an app.
This endpoint retrieves the service credential bindings the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| names | Array of strings Comma-delimited list of service credential binding names to filter by |
| service_instance_guids | Array of strings Comma-delimited list of service instance guids to filter by |
| app_guids | Array of strings Comma-delimited list of app guids to filter by |
| type | string Enum: "app" "key" Type of credential binding to filter by. Valid values are 'app' or 'key' |
| service_instance_names | Array of strings Comma-delimited list of service instance names to filter by |
| app_names | Array of strings Comma-delimited list of app names to filter by |
| service_plan_guids | Array of strings Comma-delimited list of service plan guids to filter by |
| service_plan_names | Array of strings Comma-delimited list of service plan names to filter by |
| service_offering_guids | Array of strings Comma-delimited list of service offering guids to filter by |
| service_offering_names | Array of strings Comma-delimited list of service offering names to filter by |
| guids | Array of strings Comma-delimited list of service credential binding guids to filter by |
| include | Array of strings Items Enum: "app" "service_instance" Optionally include a list of unique related resources in the response. Valid values are: |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "app",
- "name": "string",
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_instance": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "details": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "service_instance": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": null
}
], - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": null,
- "password": null,
- "token": null
}, - "property2": {
- "username": null,
- "password": null,
- "token": null
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}
], - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint creates a new service credential binding. Service credential bindings can be of type app or key; key is only valid for managed service instances.
If failures occur when creating a service credential binding for a managed service instances, the API might execute orphan mitigation steps accordingly to cases outlined in the OSBAPI specification
A request to create a service credential binding
| type required | string Enum: "app" "key" Type of the service credential binding. Valid values are key and app |
| name | string Name of the service credential binding. name is optional when the type is app |
required | object Relationships for the service credential binding |
| parameters | object A JSON object that is passed to the service broker |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "type": "app",
- "name": "some-binding-name",
- "relationships": {
- "service_instance": {
- "data": {
- "guid": "7304bc3c-7010-11ea-8840-48bf6bec2d78"
}
}, - "app": {
- "data": {
- "guid": "e0e4417c-74ee-11ea-a604-48bf6bec2d78"
}
}
}, - "parameters": {
- "key1": "value1",
- "key2": "value2"
}, - "metadata": {
- "labels": {
- "foo": "bar"
}, - "annotations": {
- "baz": "qux"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "name": "some-name",
- "type": "app",
- "last_operation": {
- "type": "create",
- "state": "succeeded",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z"
}, - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "parameters": {
}, - "service_instance": {
},
}
}This endpoint retrieves the service credential binding by GUID.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "app" "service_instance" Optionally include a list of unique related resources in the response |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "app",
- "name": "string",
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_instance": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "details": {
- "href": "string",
- "method": "string"
}, - "app": {
- "href": "string",
- "method": "string"
}, - "service_instance": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint updates a service credential binding with labels and annotations.
| guid required | string <uuid> The unique identifier for the resource |
A request to update a service credential binding
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "foo": "bar"
}, - "annotations": {
- "baz": "qux"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "name": "some-name",
- "type": "app",
- "last_operation": {
- "type": "create",
- "state": "succeeded",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z"
}, - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "parameters": {
}, - "service_instance": {
},
}
}This endpoint deletes a service credential binding. When deleting credential bindings originated from user provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Queries the Service Broker for the parameters associated with this service credential binding. The broker catalog must have enabled the bindings_retrievable feature for the Service Offering. Check the Service Offering object for the value of this feature flag. This endpoint is not available for User-Provided Service Instances.
| guid required | string <uuid> The unique identifier for the resource |
{- "foo": "bar",
- "foz": "baz"
}This endpoint retrieves the service instances the user has access to, including access granted by service instance sharing.
| names | Array of strings Comma-delimited list of service instance names to filter by |
| guids | Array of strings Comma-delimited list of service instance guids to filter by |
| type | string Enum: "managed" "user-provided" Filter by type; valid values are 'managed' and 'user-provided' |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| service_plan_guids | Array of strings Comma-delimited list of service plan guids to filter by |
| service_plan_names | Array of strings Comma-delimited list of service plan names to filter by |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| fields | object Fields to include in the response |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-03-10T15:49:29Z",
- "updated_at": "2020-03-10T15:49:29Z",
- "name": "my-managed-instance",
- "tags": [ ],
- "type": "managed",
- "maintenance_info": {
- "version": "1.0.0"
}, - "upgrade_available": false,
- "broker_provided_metadata": {
- "labels": {
- "service_engine_version": "16.6"
}, - "attributes": {
- "max_connections": "100"
}
}, - "last_operation": {
- "type": "create",
- "state": "succeeded",
- "description": "Operation succeeded",
- "updated_at": "2020-03-10T15:49:32Z",
- "created_at": "2020-03-10T15:49:29Z"
}, - "relationships": {
- "service_plan": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_plan": {
}, - "parameters": {
}, - "shared_spaces": {
}, - "service_credential_bindings": {
}, - "service_route_bindings": {
}
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-03-10T15:56:08Z",
- "updated_at": "2020-03-10T15:56:08Z",
- "name": "my-user-provided-instance",
- "tags": [
- "sql"
], - "type": "user-provided",
- "last_operation": {
- "type": "update",
- "state": "succeeded",
- "description": "Operation succeeded",
- "updated_at": "2020-03-10T15:59:32Z",
- "created_at": "2020-03-10T15:59:29Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "credentials": {
}, - "service_credential_bindings": {
}, - "service_route_bindings": {
}
}
}
]
}This endpoint creates a new service instance. Service instances can be of type managed or user-provided, and the required parameters are different for each type. User provided service instances do not require interactions with service brokers.
If failures occur when creating managed service instances, the API might execute orphan mitigation steps accordingly to cases outlined in the OSBAPI specification
A request to create a service instance
| type required | string Enum: "managed" "user-provided" The type of service instance |
| name required | string Name of the service instance |
| parameters | object A JSON object that is passed to the service broker |
| credentials | object A JSON object that is made available to apps bound to this service instance (user-provided services only) |
| tags | Array of strings Tags are used by apps to identify service instances; they are shown in the app VCAP_SERVICES env |
| syslog_drain_url | string URL to which logs for bound applications will be streamed (user-provided services only) |
| route_service_url | string URL to which requests for bound routes will be forwarded; must use the https protocol (user-provided services only) |
required | object Relationships for the service instance |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "type": "managed",
- "name": "my_service_instance",
- "parameters": {
- "foo": "bar",
- "baz": "qux"
}, - "tags": [
- "foo",
- "bar",
- "baz"
], - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "7304bc3c-7010-11ea-8840-48bf6bec2d78"
}
}, - "service_plan": {
- "data": {
- "guid": "e0e4417c-74ee-11ea-a604-48bf6bec2d78"
}
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "user-provided",
- "name": "string",
- "tags": [
- "string"
], - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "credentials": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}This endpoint retrieves the service instance by GUID.
| guid required | string <uuid> The unique identifier for the resource |
| fields | object Fields to include in the response |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}Some updates can be performed entirely within the Cloud Controller in which case the response is synchronous. Some updates require communication with the service broker, in which case the response will be asynchronous. The response will be asynchronous if any of these parameters are specified:
parametersservice_planmaintenance_infoname - when the service offering has allow_context_updates feature enabledOtherwise the response will be synchronous.
| guid required | string <uuid> The unique identifier for the resource |
A request to update a service instance
| name | string Name of the service instance |
| parameters | object A JSON object that is passed to the service broker (managed services only) |
| credentials | object A JSON object that is made available to apps bound to this service instance (user-provided services only) |
| tags | Array of strings Tags are used by apps to identify service instances; they are shown in the app VCAP_SERVICES env |
| syslog_drain_url | string URL to which logs for bound applications will be streamed (user-provided services only) |
| route_service_url | string URL to which requests for bound routes will be forwarded; must use the https protocol (user-provided services only) |
object Relationships for the service instance | |
object If provided, must have the | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my_service_instance",
- "parameters": {
- "foo": "bar",
- "baz": "qux"
}, - "tags": [
- "foo",
- "bar",
- "baz"
], - "relationships": {
- "service_plan": {
- "data": {
- "guid": "f2b6ba9c-a4d2-11ea-8ae6-48bf6bec2d78"
}
}
}, - "metadata": {
- "annotations": {
- "note": "detailed information"
}, - "labels": {
- "key": "value"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}This endpoint deletes a service instance and any associated service credential bindings or service route bindings. The service instance is removed from all spaces where it is available. User provided service instances do not require interactions with service brokers, therefore the API will respond synchronously to the delete request. For managed service instances, the API will respond asynchronously. If a service credential binding or service route binding cannot be deleted synchronously, then the operation will fail, and the deletion of the binding will continue in the background. The operation can be retried until it is successful.
| guid required | string <uuid> The unique identifier for the resource |
| purge | boolean If |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieves the credentials for a user-provided service instance. This endpoint is not available for managed service instances.
| guid required | string <uuid> The unique identifier for the resource |
{- "username": "my-username",
- "password": "super-secret",
- "other": "credential"
}Queries the Service Broker for the parameters associated with this service instance. The broker catalog must have enabled the instances_retrievable feature for the Service Offering. Check the Service Offering object for the value of this feature flag.
| guid required | string <uuid> The unique identifier for the resource |
{- "key_1": "value_1",
- "key_2": "value_2"
}Get the current user’s permissions for the given service instance. If a user can get a service instance then they can ‘read’ it. Users who can update a service instance can ‘manage’ it.
This endpoint’s primary purpose is to enable third-party service dashboards to determine the permissions of a given Cloud Foundry user that has authenticated with the dashboard via single sign-on (SSO). For more information, see the Cloud Foundry documentation on Dashboard Single Sign-On.
| guid required | string <uuid> The unique identifier for the resource |
{- "read": true,
- "manage": false
}This endpoint retrieves the service offerings the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| names | Array of strings Comma-delimited list of service offering names to filter by |
| available | boolean Filter by the |
| service_broker_guids | Array of strings Comma-delimited list of service broker GUIDs to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| service_broker_names | Array of strings Comma-delimited list of service broker names to filter by |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| fields | object Fields to include in the response |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_offering",
- "description": "Provides my service",
- "available": true,
- "tags": [
- "relational",
- "caching"
], - "requires": [ ],
- "created_at": "2019-11-28T13:44:02Z",
- "updated_at": "2019-11-28T13:44:02Z",
- "shareable": true,
- "broker_catalog": {
- "id": "db730a8c-11e5-11ea-838a-0f4fff3b1cfb",
- "metadata": {
- "shareable": true
}, - "features": {
- "plan_updateable": true,
- "bindable": true,
- "instances_retrievable": true,
- "bindings_retrievable": true,
- "allow_context_updates": false
}
}, - "relationships": {
- "service_broker": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_plans": {
}, - "service_broker": {
}
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "other_service_offering",
- "description": "Provides another service",
- "available": true,
- "tags": [
- "caching"
], - "requires": [ ],
- "created_at": "2019-11-29T16:44:02Z",
- "updated_at": "2019-11-29T16:44:02Z",
- "shareable": true,
- "broker_catalog": {
- "id": "3cb11822-12bb-11ea-beb1-a350dc7453b9",
- "metadata": {
- "shareable": true
}, - "features": {
- "plan_updateable": true,
- "bindable": true,
- "instances_retrievable": true,
- "bindings_retrievable": true,
- "allow_context_updates": false
}
}, - "relationships": {
- "service_broker": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_plans": {
}, - "service_broker": {
}
}
}
]
}This endpoint retrieves the service offering by GUID.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_offering",
- "description": "Provides my service",
- "available": true,
- "tags": [
- "relational",
- "caching"
], - "requires": [ ],
- "created_at": "2019-11-28T13:44:02Z",
- "updated_at": "2019-11-28T13:44:02Z",
- "shareable": true,
- "broker_catalog": {
- "id": "db730a8c-11e5-11ea-838a-0f4fff3b1cfb",
- "metadata": {
- "shareable": true
}, - "features": {
- "plan_updateable": true,
- "bindable": true,
- "instances_retrievable": true,
- "bindings_retrievable": true,
- "allow_context_updates": false
}
}, - "relationships": {
- "service_broker": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_plans": {
}, - "service_broker": {
}
}
}This endpoint updates a service offering with labels and annotations.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a service offering.
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_service_offering",
- "description": "Provides my service",
- "available": true,
- "tags": [
- "relational",
- "caching"
], - "requires": [ ],
- "created_at": "2019-11-28T13:44:02Z",
- "updated_at": "2019-11-28T13:44:02Z",
- "shareable": true,
- "broker_catalog": {
- "id": "db730a8c-11e5-11ea-838a-0f4fff3b1cfb",
- "metadata": {
- "shareable": true
}, - "features": {
- "plan_updateable": true,
- "bindable": true,
- "instances_retrievable": true,
- "bindings_retrievable": true,
- "allow_context_updates": false
}
}, - "relationships": {
- "service_broker": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "self": {
}, - "service_plans": {
}, - "service_broker": {
}
}
}This endpoint deletes a service offering. This is typically used to remove orphan service offerings from the Cloud Foundry database when they have been removed from the service broker catalog, or when the service broker has been removed.
Note that this operation only affects the Cloud Foundry database, and no attempt is made to contact the service broker.
| guid required | string <uuid> The unique identifier for the resource |
| purge | boolean If |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the service plans the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| names | Array of strings Comma-delimited list of service plan names to filter by |
| available | boolean Filter by the |
| service_offering_guids | Array of strings Comma-delimited list of service offering guids to filter by |
| service_instance_guids | Array of strings Comma-delimited list of service instance guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| broker_catalog_ids | Array of strings Comma-delimited list of broker catalog IDs to filter by |
| service_broker_guids | Array of strings Comma-delimited list of service broker GUIDs to filter by |
| service_broker_names | Array of strings Comma-delimited list of service broker names to filter by |
| service_offering_names | Array of strings Comma-delimited list of service offering names to filter by |
| include | Array of strings Items Enum: "space.organization" "service_offering" Optionally include a list of unique related resources in the response |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| fields | object Fields to include in the response |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_offering_guid": "string",
- "service_offering_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_offering": {
- "href": "string",
- "method": "string"
}, - "visibility": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": null
}
], - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": null,
- "password": null,
- "token": null
}, - "property2": {
- "username": null,
- "password": null,
- "token": null
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}
], - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint retrieves the service plan by GUID.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "space.organization" "service_offering" Optionally include a list of unique related resources in the response |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_big_service_plan",
- "description": "Big",
- "visibility_type": "public",
- "available": true,
- "free": false,
- "costs": [
- {
- "currency": "USD",
- "amount": 199.99,
- "unit": "Monthly"
}
], - "created_at": "2019-11-28T13:44:02Z",
- "updated_at": "2019-11-28T13:44:02Z",
- "maintenance_info": {
- "version": "1.0.0+dev4",
- "description": "Database version 7.8.0"
}, - "broker_catalog": {
- "id": "db730a8c-11e5-11ea-838a-0f4fff3b1cfb",
- "metadata": {
- "custom-key": "custom-information"
}, - "maximum_polling_duration": null,
- "features": {
- "plan_updateable": true,
- "bindable": true
}
}, - "schemas": {
- "service_instance": {
- "create": {
- "parameters": {
- "type": "object",
- "properties": {
- "billing-account": {
- "description": "Billing account number used to charge use of shared fake server.",
- "type": "string"
}
}
}
}, - "update": {
- "parameters": { }
}
}, - "service_binding": {
- "create": {
- "parameters": { }
}
}
}, - "relationships": {
- "service_offering": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}, - "links": {
- "service_offering": {
}, - "visibility": {
}
}
}This endpoint updates a service plan with labels and annotations.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a service plan.
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_offering_guid": "string",
- "service_offering_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_offering": {
- "href": "string",
- "method": "string"
}, - "visibility": {
- "href": "string",
- "method": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint deletes a service plan. This is used to remove service plans from the Cloud Foundry database when they are no longer provided by the service broker.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint updates a service plan visibility. It behaves similar to the POST service plan visibility endpoint but this endpoint will replace the existing list of organizations when the service plan is organization visible.
| guid required | string <uuid> The unique identifier for the resource |
Service plan visibility object that needs to be updated
| type required | string Enum: "public" "admin" "organization" Denotes the visibility of the plan |
Array of objects Desired list of organizations GUIDs where the plan will be accessible; required if type is organization |
{- "type": "public",
- "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}{- "type": "public",
- "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "name": "string"
}
]
}This endpoint applies a service plan visibility. It behaves similar to the PATCH service plan visibility endpoint but this endpoint will append to the existing list of organizations when the service plan is organization visible.
| guid required | string <uuid> The unique identifier for the resource |
Service plan visibility object that needs to be created
| type required | string Enum: "public" "admin" "organization" Denotes the visibility of the plan |
Array of objects Desired list of organizations GUIDs where the plan will be accessible; required if type is organization |
{- "type": "organization",
- "organizations": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{- "type": "organization"
}This endpoint removes an organization from a service plan visibility list of organizations. It is only defined for service plans which are org-restricted. It will fail with a HTTP status code of 422 for any other visibility type (e.g. Public).
| guid required | string <uuid> The unique identifier for the resource |
| organization_guid required | string <uuid> GUID of the organization. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the service route bindings the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| route_guids | Array of strings Comma-delimited list of route guids to filter by |
| service_instance_guids | Array of strings Comma-delimited list of service instance guids to filter by |
| service_instance_names | Array of strings Comma-delimited list of service instance names to filter by |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of service route binding guids to filter by |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| include | Array of strings Items Enum: "route" "service_instance" Optionally include a list of unique related resources in the response. Valid values are: |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "route": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_instance": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "route": {
- "href": "string",
- "method": "string"
}, - "service_instance": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": null
}
], - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": null,
- "method": null
}, - "related": {
- "href": null,
- "method": null
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": null,
- "password": null,
- "token": null
}, - "property2": {
- "username": null,
- "password": null,
- "token": null
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}
], - "included": {
- "spaces": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}, - "apply_manifest": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "organizations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "suspended": true,
- "relationships": {
- "quota": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "quota": {
- "href": "string",
- "method": "string"
}, - "default_domain": {
- "href": "string",
- "method": "string"
}
}
}
], - "domains": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "http"
], - "enforce_route_policies": true,
- "route_policies_scope": "any",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
], - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "organization": {
- "href": "string",
- "method": "string"
}, - "route_reservations": {
- "href": "string",
- "method": "string"
}, - "shared_organizations": {
- "href": "string",
- "method": "string"
}, - "router_group": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_offerings": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "service_broker_guid": "string",
- "service_broker_name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_broker": {
- "href": "string",
- "method": "string"
}
}
}
], - "service_instances": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "managed",
- "name": "string",
- "tags": [
- "string"
], - "maintenance_info": {
- "version": "string",
- "description": "string"
}, - "upgrade_available": true,
- "last_operation": {
- "type": "create",
- "state": "initial",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}, - "service_plan": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "related": {
- "href": "string",
- "method": "string"
}
}
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "service_plan": {
- "href": "string",
- "method": "string"
}, - "parameters": {
- "href": "string",
- "method": "string"
}, - "service_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "shared_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "apps": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "state": "STOPPED",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}, - "current_droplet": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "start": {
- "href": "string",
- "method": "string"
}, - "stop": {
- "href": "string",
- "method": "string"
}, - "revisions": {
- "href": "string",
- "method": "string"
}, - "deployed_revisions": {
- "href": "string",
- "method": "string"
}, - "features": {
- "href": "string",
- "method": "string"
}
}
}
], - "routes": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "space": {
- "href": "string",
- "method": "string"
}, - "domain": {
- "href": "string",
- "method": "string"
}, - "destinations": {
- "href": "string",
- "method": "string"
}
}
}
], - "users": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}
}This endpoint creates a new route service binding. The service instance and the route must be in the same space.
To bind a route to a user-provided service instance, the service instance must have the route_service_url property set.
To bind a route to a managed service instance, the service offering must be bindable, and the service offering must have route_forwarding set in the requires property.
Request body for create a service route binding.
required | object Relationships for the service route binding |
| parameters | object A JSON object that is passed to the service broker |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "route": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "parameters": {
- "key1": "value1",
- "key2": "value2"
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "last_operation": {
- "type": "create",
- "state": "succeeded",
- "description": "Operation succeeded",
- "updated_at": "2020-03-10T15:49:32Z",
- "created_at": "2020-03-10T15:49:29Z"
}, - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "route": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "service_instance": {
}, - "parameters": {
}
}
}This endpoint retrieves the service route binding by GUID.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Enum: "route" "service_instance" Optionally include a list of unique related resources in the response |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "last_operation": {
- "type": "create",
- "state": "succeeded",
- "description": "Operation succeeded",
- "updated_at": "2020-03-10T15:49:32Z",
- "created_at": "2020-03-10T15:49:29Z"
}, - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "route": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "service_instance": {
}, - "parameters": {
}
}
}This endpoint updates a service route binding with labels and annotations.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a service route binding.
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2015-11-13T17:02:56Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "last_operation": {
- "type": "create",
- "state": "succeeded",
- "description": "Operation succeeded",
- "updated_at": "2020-03-10T15:49:32Z",
- "created_at": "2020-03-10T15:49:29Z"
}, - "metadata": {
- "annotations": {
- "foo": "bar"
}, - "labels": {
- "baz": "qux"
}
}, - "relationships": {
- "service_instance": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "route": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "service_instance": {
}, - "parameters": {
}
}
}This endpoint deletes a service route binding. When deleting route bindings originating from user provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request. Consequently, deleting route bindings from managed service instances responds with a job which can be used to track the progress of the delete operation.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Queries the Service Broker for the parameters associated with this service route binding. The broker catalog must have enabled the bindings_retrievable feature for the Service Offering. Check the Service Offering object for the value of this feature flag. This endpoint is not available for User-Provided Service Instances.
| guid required | string <uuid> The unique identifier for the resource |
{- "foo": "bar",
- "foz": "baz"
}Retrieve all service usage events the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| after_guid | string Filters out events before and including the event with the given guid. |
| guids | Array of strings Comma-delimited list of usage event guids to filter by. |
| service_instance_types | Array of strings Items Enum: "managed_service_instance" "user_provided_service_instance" Comma-delimited list of service instance types to filter by; valid values are |
| service_offering_guids | Array of strings Comma-delimited list of service offering guids to filter by |
{- "pagination": {
- "total_results": 2,
- "total_pages": 2,
- "first": {
- "href": "https://api.example.org<%= path %>?page=1&per_page=1"
}, - "last": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=1"
}, - "next": {
- "href": "https://api.example.org<%= path %>?page=2&per_page=1"
}, - "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-05-28T12:34:56Z",
- "updated_at": "2020-05-28T12:34:56Z",
- "state": "CREATED",
- "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1664"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "service_instance": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1982",
- "type": "managed_service_instance"
}, - "service_plan": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1983"
}, - "service_offering": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "label-64"
}, - "service_broker": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-2929"
}, - "links": {
}
}
]
}Retrieve a service usage event.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2020-05-28T12:34:56Z",
- "updated_at": "2020-05-28T12:34:56Z",
- "state": "CREATED",
- "space": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1664"
}, - "organization": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "service_instance": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1982",
- "type": "managed_service_instance"
}, - "service_plan": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-1983"
}, - "service_offering": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "label-64"
}, - "service_broker": {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "name-2929"
}, - "links": {
}
}Destroys all existing events. Populates new usage events, one for each existing service instance. All populated events will have a created_at value of current time. There is the potential race condition if service instances are currently being created or deleted. The seeded usage events will have the same guid as the service instance.
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Get a sidecar.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z"
}Update a sidecar.
| guid required | string <uuid> The unique identifier for the resource |
Sidecar object that needs to be updated
| name | string Human-readable name for the sidecar |
| command | string The command used to start the sidecar |
| process_types | Array of strings A list of process types the sidecar applies to |
| memory_in_mb | integer Reserved memory for sidecar |
{- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z"
}Retrieves all sidecars associated with a app.
| guid required | string <uuid> The unique identifier for the resource |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "echo-sidecar",
- "command": "start-echo-server",
- "process_types": [
- "web"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:59Z",
- "updated_at": "2017-02-01T01:33:59Z"
}
]
}Create a sidecar associated with an app.
| guid required | string <uuid> The unique identifier for the resource |
Sidecar to create
| name | string Name of the sidecar |
| command | string Command to run for the sidecar |
| process_types | Array of strings Process types that the sidecar applies to |
| memory_in_mb | integer Memory limit for the sidecar in MB |
{- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z"
}Retrieves all sidecars associated with a process.
| guid required | string <uuid> The unique identifier for the resource |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "auth-sidecar",
- "command": "bundle exec rackup",
- "process_types": [
- "web",
- "worker"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "echo-sidecar",
- "command": "start-echo-server",
- "process_types": [
- "web"
], - "memory_in_mb": 300,
- "origin": "user",
- "relationships": {
- "app": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "created_at": "2017-02-01T01:33:59Z",
- "updated_at": "2017-02-01T01:33:59Z"
}
]
}Retrieve all spaces the user has access to.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| names | Array of strings Comma-delimited list of space names to filter by |
| guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| include | Array of strings Items Value: "organization" Optionally include a list of unique related resources in the response |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "space1",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "quota": {
- "data": null
}
}, - "links": {
- "features": {
}, - "organization": {
}, - "apply_manifest": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-02T00:14:30Z",
- "updated_at": "2017-02-02T00:14:30Z",
- "name": "space2",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "quota": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "features": {
}, - "organization": {
}, - "apply_manifest": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Create a space.
Space object that needs to be created
| name required | string Name of the space |
required | object |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "my-space",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-space",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "quota": {
- "data": null
}
}, - "links": {
- "features": {
}, - "organization": {
}, - "apply_manifest": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}This endpoint retrieves the specified space object.
| guid required | string <uuid> The unique identifier for the resource |
| include | Array of strings Items Value: "organization" Optionally include additional related resources in the response |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-space",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "quota": {
- "data": null
}
}, - "links": {
- "features": {
}, - "organization": {
}, - "apply_manifest": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}Update a space
| guid required | string <uuid> The unique identifier for the resource |
Space object that needs to be updated
| name | string New space name |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "new-space-name"
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-02-01T01:33:58Z",
- "updated_at": "2017-02-01T01:33:58Z",
- "name": "my-space",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "quota": {
- "data": null
}
}, - "links": {
- "features": {
}, - "organization": {
}, - "apply_manifest": {
- "method": "POST"
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}When a space is deleted, the user roles associated with the space will be deleted.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Apply changes specified in a manifest to the named apps and their underlying processes. The apps must reside in the space. These changes are additive and will not modify any unspecified properties or remove any existing environment variables, app features, routes, or services.
Apply manifest will only trigger an immediate update for the “instances” property or routing changes. All other properties require an app restart to take effect.
| guid required | string <uuid> The unique identifier for the resource |
Request body for apply a manifest to a space.
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the list of features for the specified space. Currently, the only feature on spaces is the SSH feature.
| guid required | string <uuid> The unique identifier for the resource |
{- "resources": [
- {
- "name": "ssh",
- "description": "Enable SSHing into apps in the space.",
- "enabled": true
}, - {
- "name": "diego_docker",
- "description": "Allow Docker image support for the space.",
- "enabled": false
}
]
}Get a space feature
| guid required | string <uuid> The unique identifier for the resource |
| name required | string Value: "ssh" Name of the feature. |
{- "name": "ssh",
- "description": "Enable SSHing into apps in the space.",
- "enabled": true
}Update a space feature.
| guid required | string <uuid> The unique identifier for the resource |
| name required | string Value: "ssh" Name of the feature. |
Request body for update a space feature.
| enabled | boolean |
{- "enabled": true
}{- "name": "ssh",
- "description": "Enable SSHing into apps in the space.",
- "enabled": true
}This endpoint returns a JSON representation of the difference between the provided manifest and the current state of a space.
Currently, this endpoint can only diff version 1 manifests.
| guid required | string <uuid> The unique identifier for the resource |
Request body for create a manifest diff for a space (experimental).
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Get assigned isolation segment
| guid required | string <uuid> The unique identifier for the resource |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}This endpoint assigns an isolation segment to the space. The isolation segment must be entitled to the space’s parent organization.
Apps will not run in the newly assigned isolation segment until they are restarted.
| guid required | string <uuid> The unique identifier for the resource |
Request body for manage isolation segment.
Relationship (object) or null | |
object |
{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}{- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - "links": {
- "related": {
}
}
}Deletes all routes in a space that are not mapped to any applications and not bound to any service instances.
| guid required | string <uuid> The unique identifier for the resource |
| unmapped required | boolean Value: true Filter to only delete unmapped routes |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint retrieves the specified space's memory and app instance usage summary.
| guid required | string <uuid> The unique identifier for the resource |
{- "usage_summary": {
- "started_instances": 3,
- "memory_in_mb": 3072,
- "routes": 3,
- "service_instances": 2,
- "reserved_ports": 1,
- "domains": 1,
- "per_app_tasks": 0,
- "service_keys": 1
}, - "links": {
- "self": {
},
}
}This endpoint returns security groups that are enabled for running globally or at the space level for the given space.
| guid required | string <uuid> The unique identifier for the resource |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "globally_enabled": {
- "running": true,
- "staging": true
}, - "rules": [
- {
- "protocol": "string",
- "destination": "string",
- "ports": "string",
- "type": 0,
- "code": 0,
- "description": "string"
}
], - "running_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "staging_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "running_spaces": {
- "href": "string",
- "method": "string"
}, - "staging_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}This endpoint returns security groups that are enabled for staging globally or at the space level for the given space.
| guid required | string <uuid> The unique identifier for the resource |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "globally_enabled": {
- "running": true,
- "staging": true
}, - "rules": [
- {
- "protocol": "string",
- "destination": "string",
- "ports": "string",
- "type": 0,
- "code": 0,
- "description": "string"
}
], - "running_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "staging_spaces": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "running_spaces": {
- "href": "string",
- "method": "string"
}, - "staging_spaces": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}Retrieve all users with a role in the specified space.
| guid required | string <uuid> The unique identifier for the resource |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}This endpoint lists all space quota resources that the user has permission to view.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| guids | Array of strings Comma-delimited list of space quota guids to filter by |
| names | Array of strings Comma-delimited list of space quota names to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
{- "pagination": {
- "total_results": 2,
- "total_pages": 1,
- "next": null,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": null
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 20
}, - "relationships": {
- "spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}, - "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "organization": {
}
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2017-05-04T17:00:41Z",
- "updated_at": "2017-05-04T17:00:41Z",
- "name": "sancho-panza",
- "apps": {
- "total_memory_in_mb": 2048,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 5,
- "per_app_tasks": 2
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 4
}, - "relationships": {
- "spaces": {
- "data": [ ]
}, - "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "organization": {
}
}
}
]
}This endpoint creates a new space quota scoped to a specific organization.
Space quota to create
| name required | string Name of the space quota |
object App limits for the space quota | |
object Service limits for the space quota | |
object Route limits for the space quota | |
object Relationships for the space quota | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "production",
- "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": null
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 20
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
}, - "links": {
- "organization": {
}
}
}Get a space quota
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": null
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 20
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
}, - "links": {
- "organization": {
}
}
}This endpoint will only update the parameters specified in the request body. Any unspecified parameters will retain their existing values.
| guid required | string <uuid> The unique identifier for the resource |
Space quota to update
| name | string Name of the space quota |
object App limits for the space quota | |
object Service limits for the space quota | |
object Route limits for the space quota | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "string",
- "apps": {
- "total_memory_in_mb": 0,
- "per_process_memory_in_mb": 0,
- "log_rate_limit_in_bytes_per_second": 0,
- "total_instances": 0,
- "per_app_tasks": 0
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 0,
- "total_service_keys": 0
}, - "routes": {
- "total_routes": 0,
- "total_reserved_ports": 0
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2016-05-04T17:00:41Z",
- "updated_at": "2016-05-04T17:00:41Z",
- "name": "don-quixote",
- "apps": {
- "total_memory_in_mb": 5120,
- "per_process_memory_in_mb": 1024,
- "log_rate_limit_in_bytes_per_second": 1024,
- "total_instances": 10,
- "per_app_tasks": null
}, - "services": {
- "paid_services_allowed": true,
- "total_service_instances": 10,
- "total_service_keys": 20
}, - "routes": {
- "total_routes": 8,
- "total_reserved_ports": 20
}, - "relationships": {
- "organization": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "spaces": {
- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
}, - "links": {
- "organization": {
}
}
}Space quotas cannot be deleted when applied to any spaces.
| guid required | string <uuid> The unique identifier for the resource |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}This endpoint applies a space quota to one or more spaces.
Only an admin or an org manager in the quota’s parent organization can apply a space quota to a space.
| quota_guid required | string <uuid> GUID of the quota. |
Request body for apply a space quota to a space.
Array of objects (Relationship) | |
object |
{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{- "data": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
], - "links": {
}
}This endpoint removes a space quota from a space.
Only an admin or an org manager in the quota’s parent organization can remove a space quota from a space.
| guid required | string <uuid> The unique identifier for the resource |
| space_guid required | string <uuid> GUID of the space. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}Retrieve all stacks.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| names | Array of strings Comma-delimited list of stack names to filter by |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2018-11-09T22:43:28Z",
- "updated_at": "2018-11-09T22:43:28Z",
- "name": "my-stack-1",
- "build_rootfs_image": "my-stack-1-build",
- "run_rootfs_image": "my-stack-1-run",
- "description": "This is my first stack!",
- "state": "ACTIVE",
- "state_reason": null,
- "default": true,
- "metadata": {
- "labels": { },
- "annotations": { }
},
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "created_at": "2018-11-09T22:43:29Z",
- "updated_at": "2018-11-09T22:43:29Z",
- "name": "my-stack-2",
- "description": "This is my second stack!",
- "build_rootfs_image": "my-stack-2-build",
- "run_rootfs_image": "my-stack-2-run",
- "state": "DEPRECATED",
- "state_reason": "Stack deprecated and will be removed in future release",
- "default": false,
- "metadata": {
- "labels": { },
- "annotations": { }
},
}
]
}Create a stack.
Stack object that needs to be created
| name required | string <= 250 characters Name of the stack; must be unique and no longer than 250 characters |
| description | string or null <= 250 characters Description of the stack; must no longer than 250 characters |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "name": "string",
- "description": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "build_rootfs_image": "string",
- "run_rootfs_image": "string",
- "default": true,
- "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}Get a stack.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "build_rootfs_image": "string",
- "run_rootfs_image": "string",
- "default": true,
- "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}Update a stack.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a stack.
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. | |
| state | string Enum: "ACTIVE" "DEPRECATED" "RESTRICTED" "DISABLED" |
| state_reason | string or null Optional explanation of the stack state change. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}, - "state": "ACTIVE",
- "state_reason": "Optional plain text describing the stack state change"
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "build_rootfs_image": "string",
- "run_rootfs_image": "string",
- "default": true,
- "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}Retrieve all apps using a given stack.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
{- "pagination": {
- "total_results": 3,
- "total_pages": 2,
- "previous": null
}, - "resources": [
- {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app",
- "state": "STARTED",
- "created_at": "2016-03-17T21:41:30Z",
- "updated_at": "2016-03-18T11:32:30Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "java_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "current_droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "processes": {
}, - "packages": {
}, - "environment_variables": {
}, - "current_droplet": {
}, - "droplets": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "revisions": {
}, - "deployed_revisions": {
}, - "features": {
}
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}, - {
- "guid": "123e4567-e89b-12d3-a456-426614174000",
- "name": "my_app2",
- "state": "STOPPED",
- "created_at": "1970-01-01T00:00:02Z",
- "updated_at": "2016-06-08T16:41:26Z",
- "lifecycle": {
- "type": "buildpack",
- "data": {
- "buildpacks": [
- "ruby_buildpack"
], - "stack": "cflinuxfs4"
}
}, - "relationships": {
- "space": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}, - "droplet": {
- "data": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}, - "links": {
- "environment_variables": {
}, - "current_droplet": {
}, - "start": {
- "method": "POST"
}, - "stop": {
- "method": "POST"
}, - "deployed_revisions": {
},
}, - "metadata": {
- "labels": { },
- "annotations": { }
}
}
]
}Retrieve all tasks the user has access to. The command field is excluded in the response.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of task guids to filter by |
| names | Array of strings Comma-delimited list of task names to filter by |
| states | Array of strings Items Enum: "PENDING" "RUNNING" "SUCCEEDED" "CANCELING" "FAILED" Comma-delimited list of task states to filter by |
| app_guids | Array of strings Comma-delimited list of app guids to filter by |
| space_guids | Array of strings Comma-delimited list of space guids to filter by |
| organization_guids | Array of strings Comma-delimited list of organization guids to filter by |
| sequence_ids | Array of integers Comma-delimited list of sequence ids to filter by |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}Retrieve a task. The command field may be excluded in the response based on the user’s role.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Update a task.
| guid required | string <uuid> The unique identifier for the resource |
Request body for update a task.
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "metadata": {
- "labels": {
- "key": "value"
}, - "annotations": {
- "note": "detailed information"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Cancels a running task. Canceled tasks will initially be in state CANCELING and will move to state FAILED once the cancel request has been processed. Cancel requests are idempotent and will be processed according to the state of the task when the request is executed. Canceling a task that is in SUCCEEDED or FAILED state will return an error.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Cancels a running task using PUT method. Canceled tasks will initially be in state CANCELING and will move to state FAILED once the cancel request has been processed. Cancel requests are idempotent and will be processed according to the state of the task when the request is executed. Canceling a task that is in SUCCEEDED or FAILED state will return an error.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}DEPRECATED - Use /v3/tasks/{guid}/actions/cancel instead.
| guid required | string <uuid> The unique identifier for the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Retrieve tasks for an app.
| guid required | string <uuid> The unique identifier for the resource |
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of task guids to filter by |
| names | Array of strings Comma-delimited list of task names to filter by |
| states | Array of strings Items Enum: "PENDING" "RUNNING" "SUCCEEDED" "CANCELING" "FAILED" Comma-delimited list of task states to filter by |
| sequence_ids | Array of integers Comma-delimited list of sequence ids to filter by |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}Create a task.
| guid required | string <uuid> The unique identifier for the resource |
Task object that needs to be created
| command | string The command to run for the task. NOTE: optional if a |
| name | string Human-readable name for the task |
| memory_in_mb | integer Amount of memory to allocate for the task in MB |
| disk_in_mb | integer Amount of disk to allocate for the task in MB |
| log_rate_limit_in_bytes_per_second | integer Amount of log rate limit to allocate for the task in bytes per second |
| droplet_guid | string <uuid> The GUID of a droplet to use to run the task |
object An object with a process field to template the task from | |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "template": {
- "process": {
- "guid": "123e4567-e89b-12d3-a456-426614174000"
}
}
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "command": "string",
- "state": "PENDING",
- "sequence_id": 0,
- "memory_in_mb": 0,
- "disk_in_mb": 0,
- "droplet_guid": "string",
- "result": {
- "failure_reason": "string"
}, - "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Retrieve all users that the current user can see.
| page | integer Example: page=1 Page to display; valid values are integers >= 1 |
| per_page | integer Example: per_page=50 Number of results per page, valid values are 1 through 5000 |
| order_by | string Example: order_by=created_at Value to sort by. Defaults to ascending; prepend with |
| created_ats | string Example: created_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| updated_ats | string Example: updated_ats=2021-01-01T00:00:00Z Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators. |
| label_selector | string Example: label_selector=environment=production A query string containing a list of label selector requirements |
| guids | Array of strings Comma-delimited list of user guids to filter by (can include UAA user IDs or client IDs) |
| usernames | Array of strings Comma-delimited list of usernames to filter by |
| origins | Array of strings Comma-delimited list of user origins to filter by |
| partial_usernames | Array of strings Comma-delimited list of partial usernames to filter by |
{- "pagination": {
- "total_results": 0,
- "total_pages": 0,
- "first": {
- "href": "string",
- "method": "string"
}, - "last": {
- "href": "string",
- "method": "string"
}, - "next": {
- "href": "string",
- "method": "string"
}, - "previous": {
- "href": "string",
- "method": "string"
}
}, - "resources": [
- {
- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
]
}Creating a user requires one value, a GUID. This creates a user in the Cloud Controller database.
Generally, the GUID should match the GUID of an already-created user in the UAA database, though this is not required. Creating a user by guid is only permitted by admins.
If CAPI property cc.allow_user_creation_by_org_manager is enabled, a UAA user will be automatically created if it does not exist yet. The UAA user will be only created when username and origin have been provided instead of a guid. Additionally origin must be different from uaa. Admins and OrgManagers can make use of the UAA user creation.
User to create
| guid | string Unique identifier for the user |
| username | string Username of the user to be created. This can only be provided together with origin |
| origin | string Origin of the user to be created. This can only be provided together with username and cannot be uaa |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. |
{- "guid": "123e4567-e89b-12d3-a456-426614174000"
}{- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Retrieve a user.
| guid required | string The unique identifier for the user, matching either a UAA user id or client id. A client id may not be a uuid. |
{- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}Update a user's metadata.
| guid required | string The unique identifier for the user, matching either a UAA user id or client id. A client id may not be a uuid. |
User to update
| username | string The username of the user |
| presentation_name | string The presentation name of the user |
| origin | string The origin of the user |
object (Metadata) Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource. | |
object | |
object |
{- "metadata": {
- "labels": {
- "environment": "production"
}, - "annotations": {
- "note": "detailed information"
}
}, - "rate_limits": {
- "custom_request_limit": 2000
}
}{- "guid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}All roles associated with a user will be deleted if the user is deleted.
| guid required | string The unique identifier for the user, matching either a UAA user id or client id. A client id may not be a uuid. |
{- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
]
}