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.
Apps represent the core entities in the Cloud Foundry environment. They are the deployable units that run your code. Each app can have multiple processes, routes, and services associated with it. Apps can be scaled horizontally by increasing the number of instances. They can also be updated and restarted as needed. The lifecycle of an app includes stages such as staging, starting, running, and stopping. Apps can be managed through various endpoints that allow for creation, updating, deletion, and retrieval of app details.
Retrieve all apps the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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 |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
]
}
Create a new app.
App object that needs to be created
name required | string The name of the app |
relationships required | 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. |
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. | |
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",
- "relationships": { },
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Retrieve details of a specific app by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Update attributes of a specific app by its GUID.
guid required | string <uuid> The GUID of the resource |
App object that needs to be updated
name required | string The name of the app |
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. | |
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",
- "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Start a specific app by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Stop a specific app by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Stop and then start a specific app by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "state": "string",
- "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"
}
}
}
Retrieve the current droplet for an app by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}
Set the current droplet for an app by its GUID.
guid required | string <uuid> The GUID of the resource |
Droplet relationship object that needs to be set
required | object (relationship) |
{- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
AppFeatures provide additional capabilities and configurations for apps. These features can include things like auto-scaling, health checks, and custom domains. AppFeatures enhance the functionality of apps by allowing developers to enable or disable specific features based on their requirements. They can be managed through endpoints that allow for enabling, disabling, and retrieving the status of app features.
Retrieve a list of features for a specific app.
app_guid required | string <uuid> |
{- "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": [
- {
- "name": "string",
- "description": "string",
- "enabled": true
}
]
}
Update the status of a specific feature for a given app.
guid required | string <uuid> |
feature_name required | string The name of the app feature |
App feature object that needs to be updated
enabled | boolean Whether the app feature should be enabled |
{- "enabled": true
}
{- "name": "string",
- "description": "string",
- "enabled": true
}
AppUsageEvents track the usage and activity of apps within the Cloud Foundry environment. These events provide insights into app lifecycle changes, such as creation, deletion, scaling, and crashes. AppUsageEvents are useful for monitoring and auditing purposes, helping administrators understand how apps are being used and identify any issues. They can be retrieved through endpoints that provide detailed information about each event.
Retrieve all app usage events the user has access to.
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
order_by | string Order results by a specific field. Prepend with - to sort descending. |
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
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. |
{- "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": [
- {
- "state": {
- "current": null,
- "previous": null
}, - "app": {
- "guid": null,
- "name": null
}, - "process": {
- "guid": null,
- "type": null
}, - "space": {
- "guid": null,
- "name": null
}, - "organization": {
- "guid": null
}, - "buildpack": {
- "guid": null,
- "name": null
}, - "task": {
- "guid": null,
- "name": null
}, - "memory_in_mb_per_instance": {
- "current": null,
- "previous": null
}, - "instance_count": {
- "current": null,
- "previous": null
}, - "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}
}
]
}
Retrieve a specific app usage event by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "state": {
- "current": null,
- "previous": null
}, - "app": {
- "guid": null,
- "name": null
}, - "process": {
- "guid": null,
- "type": null
}, - "space": {
- "guid": null,
- "name": null
}, - "organization": {
- "guid": null
}, - "buildpack": {
- "guid": null,
- "name": null
}, - "task": {
- "guid": null,
- "name": null
}, - "memory_in_mb_per_instance": {
- "current": null,
- "previous": null
}, - "instance_count": {
- "current": null,
- "previous": null
}, - "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}
}
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.
AuditEvents capture significant actions and changes within the Cloud Foundry environment. These events include actions performed by users, such as creating, updating, or deleting resources. AuditEvents provide a comprehensive audit trail that helps administrators track changes and ensure compliance with organizational policies. They can be retrieved through endpoints that provide detailed information about each event, including the user who performed the action and the affected resources.
Retrieve a list of all audit events the user has access to.
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
order_by | string Order results by a specific field. Prepend with - to sort descending. |
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
entity_type | string The type of the entity involved in the audit event. This can be used to filter audit events by the entity involved. For example, filtering by |
type | string The type of the audit event |
target_guids | Array of strings Comma-delimited list of target 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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "type": "string",
- "actor": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "target": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "data": { },
- "space": {
- "guid": "string"
}, - "organization": {
- "guid": "string"
}
}
]
}
Create a new audit event.
Audit event object that needs to be created
type | string The type of the event |
object | |
object | |
data | object Additional information about the event |
object | |
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": "string",
- "actor": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "target": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "data": { },
- "space": {
- "guid": "string"
}, - "organization": {
- "guid": "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "type": "string",
- "actor": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "target": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "data": { },
- "space": {
- "guid": "string"
}, - "organization": {
- "guid": "string"
}
}
Retrieve details of a specific audit event by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "type": "string",
- "actor": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "target": {
- "guid": "string",
- "type": "string",
- "name": "string"
}, - "data": { },
- "space": {
- "guid": "string"
}, - "organization": {
- "guid": "string"
}
}
Builds represent the process of transforming source code into a runnable artifact. In Cloud Foundry, builds are created using buildpacks, which provide the necessary dependencies and configurations for the app. Builds can be triggered manually or automatically as part of the app deployment process. They can be managed through endpoints that allow for creation, updating, deletion, and retrieval of build details.
Retrieve a list of all builds the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "state": "string",
- "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": { },
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}
}
]
}
Create a new 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": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "lifecycle": {
- "type": "string",
- "data": {
- "buildpacks": [
- "string"
], - "stack": "string",
- "credentials": {
- "property1": {
- "username": "string",
- "password": "string",
- "token": "string"
}, - "property2": {
- "username": "string",
- "password": "string",
- "token": "string"
}
}
}
}, - "staging_memory_in_mb": 0,
- "staging_disk_in_mb": 0,
- "staging_log_rate_limit_bytes_per_second": 0,
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "state": "string",
- "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": { },
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}
}
Retrieve details of a specific build by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "state": "string",
- "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": { },
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}
}
Update attributes of a specific build by its GUID.
guid required | string <uuid> The GUID of 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "state": "string",
- "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": { },
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}
}
Retrieve a list of builds for a specific app.
app_guid required | string <uuid> |
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "state": "string",
- "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": { },
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "created_by": {
- "guid": "string",
- "name": "string",
- "email": "string"
}
}
]
}
Buildpacks are responsible for detecting, compiling, and packaging apps in the Cloud Foundry environment. They provide the necessary runtime and dependencies for the app to run. Buildpacks can be customized and extended to support different languages and frameworks. They can be managed through endpoints that allow for creation, updating, deletion, and retrieval of buildpack details.
Create a new buildpack
Buildpack object that needs to be added
name required | string The name of the buildpack |
stack | string The stack the buildpack is compatible with |
position | integer The position of the buildpack in the order of execution |
state | string Enum: "AWAITING_UPLOAD" "READY" The state of the buildpack |
enabled | boolean Whether the buildpack is enabled |
locked | boolean Whether the buildpack is locked |
filename | string The filename of the buildpack |
{- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "state": "AWAITING_UPLOAD",
- "locked": false,
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip"
}
{- "guid": "d5ccf6b2-3b8e-4b8e-8b8e-8b8e8b8e8b8e",
- "created_at": "2023-10-01T12:00:00Z",
- "updated_at": "2023-10-01T12:00:00Z",
- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "locked": false,
- "state": "AWAITING_UPLOAD",
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip",
- "links": {
- "upload": {
- "method": "POST"
}
}, - "metadata": {
- "labels": {
- "some": "label"
}, - "annotations": {
- "some": "annotation"
}
}
}
Retrieve a list of buildpacks available in the system.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
name | 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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "self": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "stack": "string",
- "position": 0,
- "enabled": true,
- "locked": true,
- "filename": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Retrieve details of a specific buildpack by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "d5ccf6b2-3b8e-4b8e-8b8e-8b8e8b8e8b8e",
- "created_at": "2023-10-01T12:00:00Z",
- "updated_at": "2023-10-01T12:00:00Z",
- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "locked": false,
- "state": "AWAITING_UPLOAD",
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip",
- "links": {
- "upload": {
- "method": "POST"
}
}, - "metadata": {
- "labels": {
- "some": "label"
}, - "annotations": {
- "some": "annotation"
}
}
}
Update attributes of a specific buildpack by its GUID.
guid required | string <uuid> The GUID of the resource |
Buildpack object that needs to be updated
name required | string The name of the buildpack |
stack | string The stack the buildpack is compatible with |
position | integer The position of the buildpack in the order of execution |
enabled | boolean Whether the buildpack is enabled |
locked | boolean Whether the buildpack is locked |
filename | string The filename of the buildpack |
{- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "locked": false,
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip"
}
{- "guid": "d5ccf6b2-3b8e-4b8e-8b8e-8b8e8b8e8b8e",
- "created_at": "2023-10-01T12:00:00Z",
- "updated_at": "2023-10-01T12:00:00Z",
- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "locked": false,
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip",
- "links": {
- "upload": {
- "method": "POST"
}
}, - "metadata": {
- "labels": {
- "some": "label"
}, - "annotations": {
- "some": "annotation"
}
}
}
Delete a specific buildpack by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "errors": [
- {
- "code": 10005,
- "title": "CF-BadQueryParameter",
- "detail": "The query parameter is invalid: %s"
}
]
}
Upload a buildpack file for a specific buildpack by its GUID.
guid required | string <uuid> The GUID of the resource |
The buildpack file to be uploaded
bits required | string <binary> The buildpack file to be uploaded |
{- "guid": "d5ccf6b2-3b8e-4b8e-8b8e-8b8e8b8e8b8e",
- "created_at": "2023-10-01T12:00:00Z",
- "updated_at": "2023-10-01T12:00:00Z",
- "name": "ruby_buildpack",
- "stack": "cflinuxfs3",
- "position": 1,
- "enabled": true,
- "locked": false,
- "filename": "ruby_buildpack-cflinuxfs3-v1.0.0.zip",
- "links": {
- "upload": {
- "method": "POST"
}
}, - "metadata": {
- "labels": {
- "some": "label"
}, - "annotations": {
- "some": "annotation"
}
}
}
Deployments represent the process of deploying apps to the Cloud Foundry environment. They include stages such as staging, starting, and running the app. Deployments can be triggered manually or automatically as part of the app lifecycle. They can be managed through endpoints that allow for creation, updating, deletion, and retrieval of deployment details.
Retrieve a list of all deployments the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
app_guids | Array of strings Comma-delimited list of app GUIDs to filter by | |||||||||||||||||||||
states | Array of strings Comma-delimited list of deployment states to filter by | |||||||||||||||||||||
status_reasons | Array of strings Comma-delimited list of status reasons to filter by; valid values include DEPLOYING, PAUSED, CANCELING, DEPLOYED, CANCELED, SUPERSEDED | |||||||||||||||||||||
status_values | Array of strings Comma-delimited list of status values to filter by; valid values include ACTIVE and FINALIZED |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
]
}
Create a new deployment.
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 |
object (relationship) | |
object (relationship) | |
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. |
{- "relationships": { },
- "strategy": "string",
- "droplet": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "revision": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "options": {
- "max_in_flight": 0
}, - "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
Retrieve details of a specific deployment by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
Update attributes of a specific deployment by its GUID.
guid required | string <uuid> The GUID of 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": {
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
Cancel a deployment in progress.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
Continue a paused deployment.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "status": {
- "value": "string",
- "reason": "string",
- "details": {
- "last_successful_healthcheck": "2019-08-24T14:15:22Z",
- "last_status_change": "2019-08-24T14:15:22Z"
}
}, - "strategy": "string",
- "options": {
- "max_in_flight": 0
}, - "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "previous_droplet": {
- "data": {
- "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"
}
}
}
Domains represent the DNS domains used to route traffic to apps in the Cloud Foundry environment. They can be shared or private, and can be associated with specific organizations or spaces. Domains can be managed through endpoints that allow for creation, updating, deletion, and retrieval of domain details.
Retrieve a list of all domains the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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 | |||||||||||||||||||||
organization_guids | Array of strings Comma-delimited list of owning organization 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Create a new domain.
Domain object that needs to be created
name required | string The name of the domain |
internal required | boolean Whether the domain is used for internal (container-to-container) traffic |
object | |
object (relationshipToOne) Some relationships relate a resource to exactly one other resource. For example an app can belong to only one space. | |
object (relationshipToMany) Some relationships relate a resource to several other resources. For example, an isolation segment can be entitled to multiple organizations. | |
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",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "shared_organizations": {
- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}, - "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve details of a specific domain by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Update attributes of a specific domain by its GUID.
guid required | string <uuid> The GUID of the resource |
Domain 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve a list of all domains available in an organization for the current user.
org_guid required | string <uuid> |
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
order_by | string Order results by a specific field. Prepend with - to sort descending. |
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
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 |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Retrieve the default domain for a given organization.
org_guid required | string <uuid> |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "internal": true,
- "router_group": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "supported_protocols": [
- "string"
], - "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Droplets are the runnable artifacts created from builds in the Cloud Foundry environment. They contain the compiled code and dependencies needed to run the app. Droplets can be managed through endpoints that allow for creation, updating, deletion, and retrieval of droplet details.
Create a new droplet
Droplet object that needs to be created
relationships required | 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. |
process_types | object Process names and start commands for the droplet |
{- "relationships": { },
- "process_types": { }
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "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 available in the system.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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 | |||||||||||||||||||||
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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}
]
}
Retrieve details of a specific droplet by its GUID.
droplet_guid required | string <uuid> The GUID of the droplet |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}
Update attributes of a specific droplet by its GUID.
droplet_guid required | string <uuid> The GUID of the droplet |
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 required | string Image reference where the built complete image was stored |
{- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "image": "string"
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}
Upload a droplet file for a specific droplet by its GUID.
droplet_guid required | string <uuid> The GUID of the droplet |
The droplet file to be uploaded
bits required | string <binary> The droplet file to be uploaded |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "assign_current_droplet": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}, - "checksum": {
- "type": "string",
- "value": "string"
}, - "buildpacks": [
- {
- "name": "string",
- "detect_output": "string",
- "version": "string",
- "buildpack_name": "string"
}
], - "stack": "string",
- "image": "string"
}
EnvironmentVariableGroups represent collections of environment variables that can be applied to apps in the Cloud Foundry environment. They provide a way to manage and share common configurations across multiple apps. EnvironmentVariableGroups can be managed through endpoints that allow for creation, updating, deletion, and retrieval of environment variable group details.
Retrieve the environment variable group for running applications.
{- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "var": {
- "property1": "string",
- "property2": "string"
}, - "links": { }
}
Update the environment variable group for running applications.
The environment variables to update
object Environment variables to inject; keys and values must be strings |
{- "var": {
- "property1": "string",
- "property2": "string"
}
}
{- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "var": {
- "property1": "string",
- "property2": "string"
}, - "links": { }
}
Retrieve the environment variable group for staging applications.
{- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "var": {
- "property1": "string",
- "property2": "string"
}, - "links": { }
}
Update the environment variable group for staging applications.
The environment variables to update
object Environment variables to inject; keys and values must be strings |
{- "var": {
- "property1": "string",
- "property2": "string"
}
}
{- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "var": {
- "property1": "string",
- "property2": "string"
}, - "links": { }
}
FeatureFlags provide a way to enable or disable specific features in the Cloud Foundry environment. They allow administrators to control the availability of features based on organizational requirements. FeatureFlags can be managed through endpoints that allow for enabling, disabling, and retrieving the status of feature flags.
Retrieve a list of all feature flags.
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
order_by | string Order results by a specific field. Prepend with - to sort descending. |
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
{- "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": [
- {
- "name": "string",
- "enabled": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "custom_error_message": "string",
- "links": { }
}
]
}
Create a new feature flag.
Feature flag object that needs to be created
name required | string The name of the feature flag |
enabled required | 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 |
{- "name": "string",
- "enabled": true,
- "custom_error_message": "string"
}
{- "name": "string",
- "enabled": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "custom_error_message": "string",
- "links": { }
}
Retrieve details of a specific feature flag by its name.
name required | string The name of the feature flag |
{- "name": "string",
- "enabled": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "custom_error_message": "string",
- "links": { }
}
Update the properties of a specific feature flag by its name.
name required | string 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": "string"
}
{- "name": "string",
- "enabled": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "custom_error_message": "string",
- "links": { }
}
The Info endpoint provides information about the Cloud Foundry environment, including version details, API endpoints, and other metadata. It is useful for understanding the capabilities and configuration of the environment. The Info endpoint can be accessed to retrieve detailed information about the Cloud Foundry deployment.
{- "name": "string",
- "build": "string",
- "version": 0,
- "description": "string",
- "cli_version": {
- "minimum": "string",
- "recommended": "string"
}, - "custom": {
- "property1": "string",
- "property2": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "support": {
- "href": "string",
- "method": "string"
}
}
}
This endpoint retrieves a high-level summary of usage across the entire Cloud Foundry installation.
{- "usage_summary": {
- "started_instances": 0,
- "memory_in_mb": 0
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}
}
}
IsolationSegments provide a way to isolate apps and resources within the Cloud Foundry environment. They allow for the creation of isolated environments with dedicated resources, such as compute, storage, and networking. IsolationSegments can be managed through endpoints that allow for creation, updating, deletion, and retrieval of isolation segment details.
Retrieve all isolation segments the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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. | |||||||||||||||||||||
organization_guids | Array of strings Comma-delimited list of organization 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Create a new isolation segment.
Isolation Segment to create
name required | string The name of the isolation segment |
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",
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve a specific isolation segment by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Update a specific isolation segment by its GUID.
guid required | string <uuid> The GUID of the resource |
Isolation segment to update
name | string The name of the isolation segment |
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",
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}
}, - "name": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Delete a specific isolation segment by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "operation": "string",
- "state": "PROCESSING",
- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
], - "warnings": [
- {
- "detail": "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.
guid required | string <uuid> The GUID of the resource |
List of organizations to entitle
Array of objects (relationship) |
{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}
{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}
List all organizations entitled to the isolation segment.
guid required | string <uuid> The GUID of the resource |
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}
Revoke the entitlement of an organization for an isolation segment.
guid required | string <uuid> The GUID of the resource |
org_guid required | string <uuid> The GUID of the organization to revoke entitlement from. |
{- "errors": [
- {
- "code": 10005,
- "title": "CF-BadQueryParameter",
- "detail": "The query parameter is invalid: %s"
}
]
}
List all spaces assigned to the isolation segment.
guid required | string <uuid> The GUID of the resource |
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
{- "data": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
]
}
Jobs represent asynchronous operations in the Cloud Foundry environment. They are used for tasks that may take a long time to complete, such as app deployments, service provisioning, and data migrations. Jobs can be managed through endpoints that allow for creation, updating, deletion, and retrieval of job details.
Retrieve a specific job by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "operation": "string",
- "state": "PROCESSING",
- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
], - "warnings": [
- {
- "detail": "string"
}
]
}
Retrieve a list of all jobs the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
guids | Array of strings Comma-delimited list of job guids to filter by | |||||||||||||||||||||
states | Array of strings Comma-delimited list of job states to filter by | |||||||||||||||||||||
operations | Array of strings Comma-delimited list of operation types to filter by | |||||||||||||||||||||
resource_guids | Array of strings Comma-delimited list of resource 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "operation": "string",
- "state": "PROCESSING",
- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
], - "warnings": [
- {
- "detail": "string"
}
]
}
]
}
Manifests provide a way to define the configuration and deployment details of apps in the Cloud Foundry environment. They include information such as app name, buildpack, environment variables, and services. Manifests can be used to automate the deployment and management of apps. They can be managed through endpoints that allow for creation, updating, deletion, and retrieval of manifest details.
Organizations represent the top-level entities in the Cloud Foundry environment. They provide a way to group and manage resources, such as apps, spaces, and users. Organizations can be managed through endpoints that allow for creation, updating, deletion, and retrieval of organization details.
OrganizationQuotas define the resource limits and constraints for organizations in the Cloud Foundry environment. They include limits on memory, instances, routes, and services. OrganizationQuotas can be managed through endpoints that allow for creation, updating, deletion, and retrieval of organization quota details.
Packages represent the source code and dependencies of apps in the Cloud Foundry environment. They are used to create builds and droplets. Packages can be managed through endpoints that allow for creation, updating, deletion, and retrieval of package details.
Retrieve a list of all packages the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
guids | Array of strings Comma-delimited list of package guids to filter by | |||||||||||||||||||||
states | Array of strings Comma-delimited list of package states to filter by | |||||||||||||||||||||
types | Array of strings 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": 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
]
}
Create a new package.
Package object that needs to be created
type required | string Enum: "bits" "docker" Type of the package; valid values are bits or docker |
object Data for package type | |
relationships required | 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. |
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",
- "data": {
- "image": "string",
- "username": "string",
- "password": "string"
}, - "relationships": { },
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
Retrieve a specific package by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
Update attributes of a specific package by its GUID.
guid required | string <uuid> The GUID of 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. |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
Delete a specific package by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "operation": "string",
- "state": "PROCESSING",
- "errors": [
- {
- "code": 0,
- "detail": "string",
- "title": "string"
}
], - "warnings": [
- {
- "detail": "string"
}
]
}
Upload the bits for a specific package by its GUID.
guid required | string <uuid> The GUID of the resource |
The package bits to be uploaded
bits required | string <binary> A binary zip file containing the package bits |
resources | Array of objects |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
Download the bits for a specific package by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "errors": [
- {
- "code": 150002,
- "title": "CF-AppPackageNotFound",
- "detail": "The app package could not be found: %s"
}
]
}
Retrieve a list of packages for a specific app.
guid required | string <uuid> |
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
guids | Array of strings Comma-delimited list of package guids to filter by | |||||||||||||||||||||
states | Array of strings Comma-delimited list of package states to filter by | |||||||||||||||||||||
types | Array of strings Comma-delimited list of package types 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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
]
}
Copy a package to a different app.
source_guid required | string <uuid> The GUID of the package to copy from |
Destination app for the copied package
relationships required | 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. |
{- "relationships": { }
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "upload": {
- "href": "string",
- "method": "string"
}, - "download": {
- "href": "string",
- "method": "string"
}, - "stage": {
- "href": "string",
- "method": "string"
}
}, - "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"
}
}
}
Processes represent the runnable units of apps in the Cloud Foundry environment. They include information such as command, instances, memory, and disk. Processes can be managed through endpoints that allow for creation, updating, deletion, and retrieval of process details.
ResourceMatches provide a way to identify and reuse existing resources in the Cloud Foundry environment. They help optimize resource usage by matching new resources with existing ones. ResourceMatches can be managed through endpoints that allow for creation, updating, deletion, and retrieval of resource match details.
Revisions represent the versions of apps in the Cloud Foundry environment. They provide a way to track and manage changes to apps over time. Revisions can be managed through endpoints that allow for creation, updating, deletion, and retrieval of revision details.
Retrieve a list of revisions for a specific app.
guid required | string <uuid> The GUID of the resource |
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
versions | Array of integers Filter by revision versions |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}, - "version": 0,
- "description": "string",
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Retrieve a list of deployed revisions for a specific app.
guid required | string <uuid> The GUID of the resource |
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
versions | Array of integers Filter by revision versions |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}, - "version": 0,
- "description": "string",
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Retrieve a specific revision of an app by its version number.
guid required | string <uuid> The GUID of the resource |
version required | integer The version number of the revision |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}, - "version": 0,
- "description": "string",
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Update a revision of an app by its version number.
guid required | string <uuid> The GUID of the resource |
version required | integer The version number of the revision |
Revision object that needs to be updated
description | string Description of the revision |
enabled | boolean Whether the revision is enabled |
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. |
{- "description": "string",
- "enabled": true,
- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}, - "environment_variables": {
- "href": "string",
- "method": "string"
}
}, - "version": 0,
- "description": "string",
- "droplet": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "relationships": {
- "app": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "enabled": true,
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve the environment variables associated with a specific revision of an app.
guid required | string <uuid> The GUID of the resource |
version required | integer The version number of the revision |
{- "var": {
- "property1": "string",
- "property2": "string"
}, - "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "revision": {
- "href": "string",
- "method": "string"
}
}
}
Roles define the permissions and access levels for users in the Cloud Foundry environment. They include roles such as admin, developer, and auditor. Roles can be managed through endpoints that allow for creation, updating, deletion, and retrieval of role details.
Retrieve all roles the user has access to.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
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": [
- {
- "type": "organization_user",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "user": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}
}
]
}
Create a new role.
Role to create
type | string Enum: "organization_user" "organization_auditor" "organization_manager" "organization_billing_manager" "space_auditor" "space_developer" "space_manager" "space_supporter" Role type |
object |
{- "type": "organization_user",
- "relationships": {
- "user": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}
}
{- "type": "organization_user",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "user": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}
}
Retrieve a specific role by its GUID.
guid required | string <uuid> The GUID of the resource |
include | Array of strings Items Enum: "user" "space" "organization" Optionally include additional related resources in the response; valid values are |
{- "type": "organization_user",
- "relationships": {
- "organization": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "space": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "user": {
- "data": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}
}, - "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}
}
Delete a specific role by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "errors": [
- {
- "code": 10005,
- "title": "CF-BadQueryParameter",
- "detail": "The query parameter is invalid: %s"
}
]
}
The Root endpoint provides the entry point for the Cloud Foundry API. It includes links to all the available resources and endpoints. The Root endpoint can be accessed to retrieve detailed information about the Cloud Foundry API and its capabilities.
The Root endpoint provides the entry point for the Cloud Foundry API. It includes links to all the available resources and endpoints.
{- "links": {
- "self": {
- "href": "string",
- "method": "string"
}, - "apps": {
- "href": "string",
- "method": "string"
}, - "buildpacks": {
- "href": "string",
- "method": "string"
}, - "builds": {
- "href": "string",
- "method": "string"
}, - "deployments": {
- "href": "string",
- "method": "string"
}, - "domains": {
- "href": "string",
- "method": "string"
}, - "droplets": {
- "href": "string",
- "method": "string"
}, - "environment_variable_groups": {
- "href": "string",
- "method": "string"
}, - "feature_flags": {
- "href": "string",
- "method": "string"
}, - "info": {
- "href": "string",
- "method": "string"
}, - "isolation_segments": {
- "href": "string",
- "method": "string"
}, - "jobs": {
- "href": "string",
- "method": "string"
}, - "organization_quotas": {
- "href": "string",
- "method": "string"
}, - "organizations": {
- "href": "string",
- "method": "string"
}, - "packages": {
- "href": "string",
- "method": "string"
}, - "processes": {
- "href": "string",
- "method": "string"
}, - "resource_matches": {
- "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_credential_bindings": {
- "href": "string",
- "method": "string"
}, - "service_instances": {
- "href": "string",
- "method": "string"
}, - "service_offerings": {
- "href": "string",
- "method": "string"
}, - "service_plans": {
- "href": "string",
- "method": "string"
}, - "service_plan_visibilities": {
- "href": "string",
- "method": "string"
}, - "service_route_bindings": {
- "href": "string",
- "method": "string"
}, - "service_usage_events": {
- "href": "string",
- "method": "string"
}, - "sidecars": {
- "href": "string",
- "method": "string"
}, - "space_quotas": {
- "href": "string",
- "method": "string"
}, - "spaces": {
- "href": "string",
- "method": "string"
}, - "stacks": {
- "href": "string",
- "method": "string"
}, - "tasks": {
- "href": "string",
- "method": "string"
}, - "users": {
- "href": "string",
- "method": "string"
}
}
}
Routes represent the network endpoints used to access apps in the Cloud Foundry environment. They include information such as domain, path, and port. Routes can be managed through endpoints that allow for creation, updating, deletion, and retrieval of route details. By specifying routes, applications can define how they are accessed by end-users, ensuring traffic is directed to the appropriate application instances.
Create a new route
Route object that needs to be added
protocol required | string Protocol used by the route; valid values are http1, http2, and tcp |
host | string Hostname of the route; can be null for TCP routes |
path | string Path of the route; must start with a slash /. |
port | integer Port of the route; can be null if not specified |
relationships required | 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. |
{- "protocol": "http1",
- "host": "my-app",
- "path": "/my-path",
- "port": 8080,
- "relationships": { }
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve a list of routes available in the system.
page | integer Page to display; valid values are integers >= 1 | |||||||||||||||||||||
perPage | integer Number of results per page, valid values are 1 through 5000 | |||||||||||||||||||||
order_by | string Order results by a specific field. Prepend with - to sort descending. | |||||||||||||||||||||
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. | |||||||||||||||||||||
label_selector | string Selectors allow users to filter and group API resources by the labels applied to them. A selector consists of one or more requirements in a comma-delimited list. The maximum number of requirements in a single selector is 50. Example label selector:
Selectors can be used to filter and group resources using the query parameter When included in a URL, the selector must be appropriately escaped. A requirement consists of a key, an operator, and optional value(s).
| |||||||||||||||||||||
protocols | Array of strings 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 |
{- "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",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "protocol": "string",
- "host": "string",
- "path": "string",
- "port": 0,
- "url": "string",
- "relationships": { },
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
Retrieve a list of destinations for a specific route by its GUID.
guid required | string <uuid> The GUID of the resource |
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
{- "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"
}
}, - "destinations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "weight": 0,
- "port": 0,
- "protocol": "http1",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": { }
}
]
}
Insert destinations for a specific route by its GUID.
guid required | string <uuid> The GUID of the resource |
Route destination to create
required | object App to which the route destination directs traffic. Must provide either app or service instance. |
object Service instance to which the route destination directs traffic. Must provide either app or service instance. | |
weight | integer Weight of the destination. Routes will equally distribute the traffic to all destinations with the same weight. |
port | integer Port of the destination that receives traffic. |
protocol | string Enum: "http1" "http2" Protocol of the destination that receives traffic. Defaults to 'http1' when not specified for HTTP routes, and is ignored for TCP routes. |
[- {
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "service_instance": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "weight": 0,
- "port": 0,
- "protocol": "http1"
}
]
{- "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"
}
}, - "destinations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "weight": 0,
- "port": 0,
- "protocol": "http1",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": { }
}
]
}
Replace all destinations for a specific route by its GUID.
guid required | string <uuid> The GUID of the resource |
Route destination to create
required | object App to which the route destination directs traffic. Must provide either app or service instance. |
object Service instance to which the route destination directs traffic. Must provide either app or service instance. | |
weight | integer Weight of the destination. Routes will equally distribute the traffic to all destinations with the same weight. |
port | integer Port of the destination that receives traffic. |
protocol | string Enum: "http1" "http2" Protocol of the destination that receives traffic. Defaults to 'http1' when not specified for HTTP routes, and is ignored for TCP routes. |
[- {
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "service_instance": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}, - "weight": 0,
- "port": 0,
- "protocol": "http1"
}
]
{- "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"
}
}, - "destinations": [
- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "weight": 0,
- "port": 0,
- "protocol": "http1",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": { }
}
]
}
Update the protocol of a specific route destination by its GUID.
guid required | string <uuid> The GUID of 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": "http1"
}
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "app": {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "process": {
- "type": "string",
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc"
}
}, - "weight": 0,
- "port": 0,
- "protocol": "http1",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": { }
}
Remove a destination from a specific route by its GUID.
guid required | string <uuid> The GUID of the resource |
destination_guid required | string <uuid> The GUID of the route destination to remove |
{- "errors": [
- {
- "code": 10005,
- "title": "CF-BadQueryParameter",
- "detail": "The query parameter is invalid: %s"
}
]
}
Delete routes that are unmapped in a specific space.
guid required | string <uuid> The GUID of the resource |
{- "errors": [
- {
- "code": 40004,
- "title": "CF-SpaceNotFound",
- "detail": "The app space could not be found: %s"
}
]
}
SecurityGroups define the network access rules for apps in the Cloud Foundry environment. They include rules for inbound and outbound traffic. SecurityGroups can be managed through endpoints that allow for creation, updating, deletion, and retrieval of security group details.
ServiceBrokers provide a way to manage and provision services in the Cloud Foundry environment. They include information such as service plans, instances, and bindings. ServiceBrokers can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service broker details.
ServiceOfferings represent the available services in the Cloud Foundry environment. They include information such as service plans, instances, and bindings. ServiceOfferings can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service offering details.
ServicePlans define the configurations and pricing for services in the Cloud Foundry environment. They include information such as memory, instances, and routes. ServicePlans can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service plan details.
ServicePlanVisibility defines the visibility and access rules for service plans in the Cloud Foundry environment. They include information such as organization and space access. ServicePlanVisibility can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service plan visibility details.
ServiceInstances represent the instances of services in the Cloud Foundry environment. They include information such as service plans, bindings, and credentials. ServiceInstances can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service instance details.
ServiceCredentialBinding provides a way to bind service instances to apps in the Cloud Foundry environment. They include information such as credentials and bindings. ServiceCredentialBinding can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service credential binding details.
ServiceRouteBinding provides a way to bind service instances to routes in the Cloud Foundry environment. They include information such as credentials and bindings. ServiceRouteBinding can be managed through endpoints that allow for creation, updating, deletion, and retrieval of service route binding details.
ServiceUsageEvents track the usage and activity of services in the Cloud Foundry environment. They provide insights into service lifecycle changes, such as creation, deletion, and updates. ServiceUsageEvents are useful for monitoring and auditing purposes, helping administrators understand how services are being used and identify any issues. They can be retrieved through endpoints that provide detailed information about each event.
Sidecars represent additional processes that run alongside the main app processes in the Cloud Foundry environment. They provide additional functionality, such as logging, monitoring, and security. Sidecars can be managed through endpoints that allow for creation, updating, deletion, and retrieval of sidecar details.
Spaces represent the logical grouping of resources within an organization in the Cloud Foundry environment. They provide a way to manage apps, services, and users within a specific context. Spaces can be managed through endpoints that allow for creation, updating, deletion, and retrieval of space details.
SpaceFeatures provide additional capabilities and configurations for spaces in the Cloud Foundry environment. These features can include things like auto-scaling, health checks, and custom domains. SpaceFeatures enhance the functionality of spaces by allowing administrators to enable or disable specific features based on their requirements. They can be managed through endpoints that allow for enabling, disabling, and retrieving the status of space features.
SpaceQuotas define the resource limits and constraints for spaces in the Cloud Foundry environment. They include limits on memory, instances, routes, and services. SpaceQuotas can be managed through endpoints that allow for creation, updating, deletion, and retrieval of space quota details.
Stacks are the base operating system and file system that your application will execute in. A stack is how you configure applications to run against different operating systems (like Windows or Linux) and different versions of those operating systems (like Windows 2012 or Windows 2016).
An application’s lifecycle will specify which stack to execute the application in. Buildpacks can also be associated with a particular stack if they contain stack-specific logic. An application will automatically use buildpacks associated with the application’s configured stack.
Stacks are not used for apps with a Docker lifecycle.
Tasks represent one-off processes that can be run in the Cloud Foundry environment. They provide a way to execute background jobs, data migrations, and other tasks that are not part of the main app processes. Tasks can be managed through endpoints that allow for creation, updating, deletion, and retrieval of task details.
Users represent the individuals who have access to the Cloud Foundry environment. They include information such as roles, permissions, and credentials. Users can be managed through endpoints that allow for creation, updating, deletion, and retrieval of user details.
Retrieve all users the user has access to.
page | integer Page to display; valid values are integers >= 1 |
perPage | integer Number of results per page, valid values are 1 through 5000 |
order_by | string Order results by a specific field. Prepend with - to sort descending. |
created_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
updated_ats | string Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. |
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 |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "links": {
- "property1": {
- "href": "string",
- "method": "string"
}, - "property2": {
- "href": "string",
- "method": "string"
}
}, - "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": { }
}
]
}
Create a new user.
User to create
guid required | string Unique identifier for the user |
created_at | string <date-time> The time with zone when the object was created |
updated_at | string <date-time> The time with zone when the object was last updated |
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. | |
links | object (links) Links provide URLs to relationships and actions for a resource. Links are represented as a JSON object and always contain a self link. |
{- "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": { }
}
{- "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": { }
}
Retrieve a user by its GUID.
guid required | string <uuid> The GUID of the resource |
{- "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": { }
}
Update an existing user.
guid required | string <uuid> The GUID of the resource |
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. | |
links | object (links) Links provide URLs to relationships and actions for a resource. Links are represented as a JSON object and always contain a self link. |
{- "username": "string",
- "presentation_name": "string",
- "origin": "string",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "links": { }
}
{- "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": { }
}