Cloud Foundry V3 API Operations Index

Cloud Foundry V3 API Operations Index

All available Cloud Foundry V3 API Operations

Admin
POST
Clear Buildpack Cache

This endpoint will delete all of the existing buildpack caches in the blobstore. The buildpack cache is used during staging by buildpacks as a way to cache certain resources, e.g. downloaded Ruby gems. An admin who wants to decrease the size of their blobstore could use this endpoint to delete unnecessary blobs.

App Usage Events
GET
List App Usage Events

Retrieve all app usage events.

GET
Get App Usage Event

Retrieve a specific app usage event.

POST
Purge And Seed App Usage Events

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.

Apps
GET
List Apps

Retrieve all apps the user has access to.

POST
Create App

Creates a new app.

GET
Get App

Retrieve a specific app.

PATCH
Update App

Update an app.

DELETE
Delete App

Delete an app.

POST
Start App

Start an app.

POST
Stop App

Stop an app.

POST
Restart App

This endpoint will synchronously stop and start an application. Unlike the start and stop actions, this endpoint will error if the app is not successfully stopped in the runtime. For restarting applications without downtime, see the deployments resource.

GET
Get Current Droplet For App

Get the current droplet for an app.

GET
Get Current Droplet Association For App

This endpoint retrieves the current droplet relationship for an app.

PATCH
Set Current Droplet For App

Set the current droplet for an app. The current droplet is the droplet that the app will use when running.

POST
Clear Buildpack Cache For Application

This endpoint will delete the buildpack cache for a specified app. The buildpack cache is used during staging by buildpacks as a way to cache certain resources, e.g. downloaded Ruby gems. A user may want to use this endpoint when an app doesn’t stage anymore due to out-of-disk caused by a large buildpack cache content.

GET
Get Env For App

Retrieve the environment variables that will be provided to an app at runtime. It will include environment variables for Environment Variable Groups and Service Bindings.

GET
Get Environment Variables For App

Retrieve the environment variables that are associated with the given app. For the entire list of environment variables that will be available to the app at runtime, see the env endpoint.

PATCH
Update Environment Variables For App

Update the environment variables associated with the given app. The variables given in the request will be merged with the existing app environment variables. Any requested variables with a value of null will be removed from the app. Environment variable names may not start with VCAP_. PORT is not a valid environment variable. The updated environment variables will not take effect until the app is restarted.

GET
List App Features

This endpoint retrieves the list of features for the specified app.

GET
Get App Feature

Get an app feature.

PATCH
Update App Feature

Update an app feature.

GET
Get Permissions For App

Get the current user’s permissions for the given app. If a user can see an app, then they can see its basic data. Only admin, read-only admins, and space developers can read sensitive data.

GET
Get Ssh Enabled For App

Returns if an application’s runtime environment will accept ssh connections. If ssh is disabled, the reason field will describe whether it is disabled globally, at the space level, or at the app level.

Audit Events
GET
List Audit Events

Retrieve all audit events the user has access to.

GET
Get Audit Event

Retrieve a specific audit event.

Buildpacks
GET
List Buildpacks

Retrieve all buildpacks.

POST
Create Buildpack

Create a buildpack.

GET
Get Buildpack

Retrieve a buildpack.

PATCH
Update Buildpack

Update a buildpack.

DELETE
Delete Buildpack

Delete a buildpack.

POST
Upload Buildpack

Upload a zip file containing a Cloud Foundry compatible buildpack. The file must be sent as part of a multi-part form.

Builds
GET
List Builds

Retrieve all builds.

POST
Create Build

Create a build.

GET
Get Build

Retrieve a build.

PATCH
Update Build

Update a build.

GET
List App Builds

Retrieve all builds for an app.

PATCH
Update Build Via App

Update a build.

Deployments
GET
List Deployments

Retrieve all deployments.

POST
Create Deployment

When you create a new deployment you can either provide a specific droplet or revision to deploy. If no revision or droplet is provided, the droplet associated with the app is deployed.

GET
Get Deployment

Retrieve a deployment.

PATCH
Update Deployment

Update a deployment.

POST
Cancel Deployment

Cancel a deployment.

POST
Continue Deployment

Continue a deployment.

Domains
GET
List Domains

Retrieve all domains the user has access to.

POST
Create Domain

Create a domain.

GET
Get Domain

Retrieve a domain.

PATCH
Update Domain

Update a domain.

DELETE
Delete Domain

Delete a domain.

POST
Share Domain

This endpoint shares an organization-scoped domain to other organizations specified by a list of organization guids. This will allow any of the other organizations to use the organization-scoped domain.

DELETE
Unshare Domain

This endpoint removes an organization from the list of organizations an organization-scoped domain is shared with. This prevents the organization from using the organization-scoped domain.

GET
Check Reserved Routes For Domain

Check if a specific route for a domain exists, regardless of the user’s visibility for the route in case the route belongs to a space the user does not belong to.

Droplets
GET
List Droplets

Retrieve all droplets.

GET
Get Droplet

Retrieve a droplet.

PATCH
Update Droplet

Update a droplet.

DELETE
Delete Droplet

Delete a droplet.

GET
Download Droplet

Download a gzip compressed tarball file containing a Cloud Foundry compatible droplet. When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits. If the client is automatically following redirects, then the OAuth token that was used to communicate with Cloud Controller will be relayed on the new redirect request. Some blobstores may reject the request in that case. Clients may need to follow the redirect without including the OAuth token. Only droplets that are in the STAGED state and have lifecycle type buildpack can be downloaded.

POST
Upload Droplet

Upload a gzip compressed tarball file containing a Cloud Foundry compatible droplet. The file must be sent as part of a multi-part form.

Environment Variable Groups
GET
Get Environment Variable Group

Retrieve an environment variable group.

PATCH
Update Environment Variable Group

Update the environment variable group. The variables given in the request will be merged with the existing environment variable group. Any requested variables with a value of null will be removed from the group. Environment variable names may not start with VCAP_. PORT is not a valid environment variable.

Variables updated in the running environment variable group will not take effect until apps are restarted.

Feature Flags
GET
List Feature Flags

Retrieve all feature_flags.

GET
Get Feature Flag

Get a feature flag.

PATCH
Update Feature Flag

Update a feature flag.

Info
GET
Get Platform Info

Get information about the platform.

GET
Get Platform Usage Summary

This endpoint retrieves a high-level summary of usage across the entire Cloud Foundry installation.

Isolation Segments
GET
List Isolation Segments

Retrieves all isolation segments to which the user has access. For admin, this is all the isolation segments in the system. For anyone else, this is the isolation segments in the allowed list for any organization to which the user belongs.

POST
Create Isolation Segment

Create an isolation segment.

GET
Get Isolation Segment

Retrieve an isolation segment to which the user has access. For admin, this is any isolation segment in the system. For anyone else, this is an isolation segment in the allowed list for any organization to which the user belongs.

PATCH
Update Isolation Segment

Update an isolation segment.

DELETE
Delete Isolation Segment

An isolation segment cannot be deleted if it is entitled to any organization.

POST
Entitle Organizations For Isolation Segment

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.

GET
List Organizations For Isolation Segment

This endpoint lists the organizations entitled for the isolation segment. For an Admin, this will list all entitled organizations in the system. For any other user, this will list only the entitled organizations to which the user belongs.

DELETE
Revoke Isolation Segment For Organization

This endpoint revokes the entitlement for the specified organization to the isolation segment. If the isolation segment is assigned to a space within an organization, the entitlement cannot be revoked. If the isolation segment is the organization’s default, the entitlement cannot be revoked.

GET
List Spaces For Isolation Segment

This endpoint lists the spaces to which the isolation segment is assigned. For an Admin, this will list all associated spaces in the system. For an org manager, this will list only those associated spaces belonging to orgs for which the user is a manager. For any other user, this will list only those associated spaces to which the user has access.

Jobs
GET
Get Job

Retrieve a specific job.

Locks
GET
List Locks

Retrieve all locks the user has access to.

POST
Create Lock

Creates a new lock.

GET
Get Lock

Retrieve a specific lock.

PATCH
Update Lock

Update a lock

DELETE
Delete Lock

Delete a lock.

Manifests
GET
Generate Manifest

Generate a manifest for an app and its underlying processes.

Organization Quotas
GET
List Organization Quotas

This endpoint lists all organization quota resources.

POST
Create Organization Quota

This endpoint creates a new organization quota, but does not assign it to a specific organization unless an organization GUID is provided in the relationships.organizations parameter.

To create an organization quota you must be an admin.

GET
Get Organization Quota

This endpoint gets an individual organization quota resource.

PATCH
Update Organization Quota

This endpoint will only update the parameters specified in the request body. Any unspecified parameters will retain their existing values.

DELETE
Delete Organization Quota

Organization quotas cannot be deleted when applied to any organizations.

POST
Apply Organization Quota

This endpoint applies an organization quota to one or more organizations.

Only admin users can apply an organization quota to an organization.

Organizations
GET
List Organizations

Retrieve all organizations the user has access to.

POST
Create Organization

Create an organization.

GET
Get Organization

This endpoint retrieves the specified organization object.

PATCH
Update Organization

Update an organization.

DELETE
Delete Organization

When an organization is deleted, user roles associated with the organization will also be deleted.

GET
Get Default Domain For Organization

Retrieve the default domain for a given organization.

GET
Get Usage Summary For Organization

This endpoint retrieves the specified organization object's memory and app instance usage summary.

GET
List Users For Organization

Retrieve all users with a role in the specified organization.

GET
Get Default Isolation Segment For Organization

Retrieve the default isolation segment for a given organization.

PATCH
Assign Default Isolation Segment For Organization

Set the default isolation segment for a given organization. Only isolation segments that are entitled to the organization are eligible to be the default isolation segment.

Apps will not run in the new default isolation segment until they are restarted.

Packages
GET
List Packages

Retrieve all packages.

POST
Create Package

Create a package.

GET
Get Package

Retrieve a package.

PATCH
Update Package

Update a package.

DELETE
Delete Package

Delete a package.

GET
List App Packages

Retrieve packages for an app that the user has access to.

GET
Download Package Bits

This endpoint downloads the bits of an existing package.

When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits. If the client is automatically following redirects, then the OAuth token that was used to communicate with Cloud Controller will be replayed on the new redirect request. Some blobstores may reject the request in that case. Clients may need to follow the redirect without including the OAuth token.

Processes
GET
List Processes

Retrieve all processes.

GET
Get Process

Get a process.

PATCH
Update Process

Update a process.

GET
Get Process Stats

Get stats for a process.

POST
Scale Process

Scale a process.

DELETE
Terminate Process Instance

Terminate an instance of a specific process. Health management will eventually restart the instance.

This allows a user to stop a single misbehaving instance of a process.

GET
List App Processes

Retrieves all processes belonging to an app.

GET
Get Process For App

Get a specific process for an app.

PATCH
Update Process For App

Update a specific process for an app.

GET
Get Process Stats For App

Get stats for a specific process for an app.

POST
Scale Process For App

Scale a specific process for an app.

DELETE
Terminate Process Instance For App

Terminate a specific process instance for an app.

Registry Credentials
GET
List Registry Credentials

Retrieve all registry credentials the user has access to. All users have read access to foundation-scoped registry credentials. All Org Users have read access to respective organization-scoped registry credentials. Users must have a Space specific role for read access to space-scoped registry credentials.

POST
Create Registry Credential

Create a registry credential.

GET
Get Registry Credential

Get a registry credential.

PATCH
Update Registry Credential

Update a registry credential.

DELETE
Delete Registry Credential

Delete a registry credential.

Resource Matches
POST
Post Resource Matches

This endpoint returns a list of cached resources from the input list.

This endpoint matches given resource SHA-1/file size pairs against the Cloud Controller cache and reports the subset that describes already cached files. This is usually used to avoid uploading duplicate files when pushing an app which has only been partially changed. The path and mode fields are not used when matching.

When uploading package bits, the response from this endpoint should be used as the resources form field. As such, it is useful to include the path and mode fields for each resource even though they are not used when determining a resource match.

Cloud Foundry operators may set minimum/maximum file sizes to match against. If the file size provided is outside this range, it will not be matched against.

If the resource_matching feature flag is disabled, resource matching will always return an empty array.

Revisions
GET
Get Revision

Retrieve a revision.

PATCH
Update Revision

Update a revision.

GET
Get Revision Environment Variables

Retrieve the environment variables that are associated with the revision.

GET
List Revisions For App

Retrieve revisions for an app the user has access to.

GET
List Deployed Revisions For App

Retrieve deployed revisions for an app the user has access to. Deployed revisions are revisions that are linked to started processes in the app.

Roles
GET
List Roles

This endpoint lists roles that the user has access to.

POST
Create Role

This endpoint creates a new role for a user in an organization or space.

To create an organization role you must be an admin or organization manager in the organization associated with the role.

To create a space role you must be an admin, an organization manager in the parent organization of the space associated with the role, or a space manager in the space associated with the role.

For a user to be assigned a space role, the user must already have an organization role in the parent organization.

If the associated user is valid but does not exist in Cloud Controller’s database, a user resource will be created automatically.

If CAPI property cc.allow_user_creation_by_org_manager is enabled, the organization role is being created by username + origin and the user does not exist in UAA yet, the user will be created. The origin must be different from uaa in this case.

GET
Get Role

This endpoint gets an individual role resource.

DELETE
Delete Role

This endpoint deletes an individual role.

Root
GET
Get Api Root

This endpoint returns links to the APIs available on a given Cloud Foundry deployment.

GET
Get V3 Api Root

Returns the V3 API root endpoint information.

Routes
GET
List Routes

Retrieve all routes the user has access to.

POST
Create Route

Create a route.

GET
List Destinations For Route

Retrieve all destinations associated with a route.

POST
Insert Destinations For Route

Add one or more destinations to a route, preserving any existing destinations.

Weighted destinations (deprecated) cannot be added with this endpoint.

PATCH
Replace Destinations For Route With Patch

Replaces all destinations for a route, removing any destinations not included in the provided list.

Weighted destinations are deprecated. Development of the experimental Istio Service Mesh routing layer was discontinued in 2020 and is no longer supported by the platform. Specifying a weight for a destination will take no effect.

If weighted destinations are provided, however, all destinations provided here must have a weight specified, and all weights for this route must sum to 100. If not, all provided destinations must not have a weight. Mixing weighted and unweighted destinations for a route is not allowed.

PUT
Replace Destinations For Route

Replaces all destinations for a route, removing any destinations not included in the provided list.

Weighted destinations are deprecated. Development of the experimental Istio Service Mesh routing layer was discontinued in 2020 and is no longer supported by the platform. Specifying a weight for a destination will take no effect.

If weighted destinations are provided, however, all destinations provided here must have a weight specified, and all weights for this route must sum to 100. If not, all provided destinations must not have a weight. Mixing weighted and unweighted destinations for a route is not allowed.

PATCH
Update Destination Protocol For Route

This endpoint updates the protocol of a route destination (app, port and weight cannot be updated)

DELETE
Remove Destination For Route

Remove a destination from a route.

GET
List App Routes

Retrieve all routes that have destinations that point to the given app.

GET
Get Route

Retrieve a route.

PATCH
Update Route

Update a route.

DELETE
Delete Route

Delete a route.

GET
List Shared Spaces Relationship

Lists the spaces that the route has been shared to.

POST
Share Route

This endpoint shares the route with the specified spaces. This allows users with read and write access in both the route’s space and a shared space to bind a route to an app in the shared space. In order to share into a space the requesting user must have write permission in the target space.

DELETE
Unshare Route

Unshares a route that was shared with another space.

Security Groups
GET
List Security Groups

List security groups.

POST
Create Security Group

Create a security group.

GET
Get Security Group

Get a security group.

PATCH
Update Security Group

Update a security group.

DELETE
Delete Security Group

Delete a security group.

POST
Bind Running Security Group

This endpoint binds one or more spaces to a security group with the running lifecycle. Running app containers within these spaces will inherit the rules specified by this security group. Apps within these spaces must be restarted for these changes to take effect. Unless a security group is globally-enabled, an admin must add it to a space for it to be visible for the org and space managers. Once it's visible, org and space managers can add it to additional spaces.

DELETE
Unbind Running Security Group

This endpoint removes a space from a security group with the running lifecycle. Apps within this space must be restarted for these changes to take effect.

POST
Bind Staging Security Group

This endpoint binds one or more spaces to a security group with the staging lifecycle. Staging app containers within these spaces will inherit the rules specified by this security group. Apps within these spaces must be restaged for these changes to take effect. Unless a security group is globally-enabled, an admin must add it to a space for it to be visible for the org and space managers. Once it's visible, org and space managers can add it to additional spaces.

DELETE
Unbind Staging Security Group

This endpoint removes a space from a security group with the staging lifecycle. Apps within this space must be restaged for these changes to take effect.

Service Brokers
GET
List Service Brokers

This endpoint retrieves the service brokers the user has access to.

GET
Get Service Broker

This endpoint retrieves the service broker by GUID.

PATCH
Update Service Broker

This endpoint updates a service broker. Depending on the parameters specified, the endpoint may respond with a background job, and it may synchronize the service offerings and service plans with those in the broker’s catalog.

When a service broker has a synchronization job in progress, only updates with metadata are permitted until the synchronization job is complete.

Service Credential Bindings
GET
List Service Credential Bindings

This endpoint retrieves the service credential bindings the user has access to.

GET
Get Service Credential Binding

This endpoint retrieves the service credential binding by GUID.

PATCH
Update Service Credential Binding

This endpoint updates a service credential binding with labels and annotations.

DELETE
Delete Service Credential Binding

This endpoint deletes a service credential binding. When deleting credential bindings originated from user provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request.

GET
Get Service Credential Binding Details

This endpoint retrieves the service credential binding details.

Service Instances
GET
List Service Instances

This endpoint retrieves the service instances the user has access to, including access granted by service instance sharing.

GET
Get Service Instance

This endpoint retrieves the service instance by GUID.

PATCH
Update Service Instance

Some updates can be performed entirely within the Cloud Controller in which case the response is synchronous. Some updates require communication with the service broker, in which case the response will be asynchronous. The response will be asynchronous if any of these parameters are specified:

  • parameters
  • service_plan
  • maintenance_info
  • name - when the service offering has allow_context_updates feature enabled

Otherwise the response will be synchronous.

DELETE
Delete Service Instance

This endpoint deletes a service instance and any associated service credential bindings or service route bindings. The service instance is removed from all spaces where it is available. User provided service instances do not require interactions with service brokers, therefore the API will respond synchronously to the delete request. For managed service instances, the API will respond asynchronously. If a service credential binding or service route binding cannot be deleted synchronously, then the operation will fail, and the deletion of the binding will continue in the background. The operation can be retried until it is successful.

GET
List Service Instance Backups

Lists backups for a service instance. The service offering must support OSMAPI backup feature.

POST
Create Service Instance Backup

Creates a backup for a service instance. The service offering must support OSMAPI backup feature. This is an asynchronous operation that returns a job to poll for completion.

POST
Restore Service Instance From Backup

Restores a service instance from a backup. The service offering must support OSMAPI backup feature. This is an asynchronous operation that returns a job to poll for completion.

GET
Get Service Instance Credentials

Retrieves the credentials for a user-provided service instance. This endpoint is not available for managed service instances.

GET
List Service Instance Shared Spaces

This endpoint lists the spaces that the service instance has been shared to.

POST
Share Service Instance

This endpoint shares the service instance with the specified spaces. In order to share into a space the requesting user must be a space developer in the target space.

GET
Get Service Instance Usage Summary In Shared Spaces

This endpoint returns the number of bound apps in spaces where the service instance has been shared to.

DELETE
Unshare Service Instance

This endpoint unshares the service instance from the specified space. This will automatically unbind any applications bound to this service instance in the specified space. Unsharing a service instance from a space will not delete any service keys.

Service Offerings
GET
List Service Offerings

This endpoint retrieves the service offerings the user has access to.

GET
Get Service Offering

This endpoint retrieves the service offering by GUID.

PATCH
Update Service Offering

This endpoint updates a service offering with labels and annotations.

DELETE
Delete Service Offering

This endpoint deletes a service offering. This is typically used to remove orphan service offerings from the Cloud Foundry database when they have been removed from the service broker catalog, or when the service broker has been removed.

Note that this operation only affects the Cloud Foundry database, and no attempt is made to contact the service broker.

GET
List Plan Definition Schemas

This endpoint retrieves JSON schemas for configuring service plan definitions across all service offerings. The schemas define the structure and validation rules for plan properties.

This endpoint is restricted to platform administrators and service administrators.

The endpoint attempts to fetch schemas from all service offerings. If a broker returns an error (including when the offering doesn't support plan definitions), the schema will be null but the offering is still included in the results.

GET
Get Plan Definition Schema

This endpoint retrieves the plan definition schema for a specific service offering. The schema contains three components: a JSON schema (defining structure and validation rules), a UI schema (providing hints for rendering the configuration form), and a version string.

This endpoint is restricted to platform administrators and service administrators.

The endpoint attempts to fetch the schema from the broker. If the broker returns an error (including when the offering doesn't support plan definitions), the schema will be null.

Service Plans
GET
List Service Plans

This endpoint retrieves the service plans the user has access to.

POST
Create Service Plan

This endpoint creates a new service plan with a custom definition. The service offering must support the plan_definitions feature via OSMAPI. The plan is created by sending the definition to the service broker, which then triggers a catalog sync to register the plan in Cloud Foundry. This endpoint requires admin or service_admin role privileges.

The name and description fields must match between the top-level and the definition object.

GET
Get Service Plan

This endpoint retrieves the service plan by GUID.

PATCH
Update Service Plan

This endpoint updates a service plan with labels and annotations.

DELETE
Delete Service Plan

This endpoint deletes a service plan. This is used to remove service plans from the Cloud Foundry database when they are no longer provided by the service broker.

GET
Get Service Plan Visibility

This endpoint retrieves the service plan visibility for a given plan.

PATCH
Update Service Plan Visibility

This endpoint updates a service plan visibility. It behaves similar to the POST service plan visibility endpoint but this endpoint will replace the existing list of organizations when the service plan is organization visible.

POST
Apply Service Plan Visibility

This endpoint applies a service plan visibility. It behaves similar to the PATCH service plan visibility endpoint but this endpoint will append to the existing list of organizations when the service plan is organization visible.

DELETE
Remove Organization From Service Plan Visibility

This endpoint removes an organization from a service plan visibility list of organizations. It is only defined for service plans which are org-restricted. It will fail with a HTTP status code of 422 for any other visibility type (e.g. Public).

GET
List Service Plan Definitions

This endpoint retrieves plan definitions for service plans. Only service plans from offerings that support plan definitions will have definition data populated. This endpoint requires admin privileges.

GET
Get Service Plan Definition

This endpoint retrieves the plan definition for a specific service plan by GUID. The definition contains the configuration properties and metadata for the plan. This endpoint requires admin privileges.

PATCH
Update Service Plan Definition

This endpoint updates the plan definition for a specific service plan. The entire definition is replaced with the provided values. After updating the definition, a catalog sync is triggered to ensure the service plan metadata is up to date. This endpoint requires admin privileges.

Note: The created_at and resource_version fields are read-only and managed by the broker.

DELETE
Delete Service Plan Definition

This endpoint deletes the plan definition for a specific service plan. The service plan must not have any service instances associated with it. After deleting the definition, a catalog sync is triggered. This endpoint requires admin privileges.

Service Route Bindings
GET
List Service Route Bindings

This endpoint retrieves the service route bindings the user has access to.

POST
Create Service Route Binding

This endpoint creates a new route service binding. The service instance and the route must be in the same space.

To bind a route to a user-provided service instance, the service instance must have the route_service_url property set.

To bind a route to a managed service instance, the service offering must be bindable, and the service offering must have route_forwarding set in the requires property.

GET
Get Service Route Binding

This endpoint retrieves the service route binding by GUID.

PATCH
Update Service Route Binding

This endpoint updates a service route binding with labels and annotations.

DELETE
Delete Service Route Binding

This endpoint deletes a service route binding. When deleting route bindings originating from user provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request. Consequently, deleting route bindings from managed service instances responds with a job which can be used to track the progress of the delete operation.

Service Usage Events
GET
List Service Usage Events

Retrieve all service usage events the user has access to.

GET
Get Service Usage Event

Retrieve a service usage event.

POST
Purge And Seed Service Usage Events

Destroys all existing events. Populates new usage events, one for each existing service instance. All populated events will have a created_at value of current time. There is the potential race condition if service instances are currently being created or deleted. The seeded usage events will have the same guid as the service instance.

Sidecars
GET
Get Sidecar

Get a sidecar.

PATCH
Update Sidecar

Update a sidecar.

DELETE
Delete Sidecar

Delete a sidecar.

GET
List App Sidecars

Retrieves all sidecars associated with a app.

POST
Create Sidecar

Create a sidecar associated with an app.

GET
List Process Sidecars

Retrieves all sidecars associated with a process.

Space Quotas
GET
List Space Quotas

This endpoint lists all space quota resources that the user has permission to view.

POST
Create Space Quota

This endpoint creates a new space quota scoped to a specific organization.

GET
Get Space Quota

Get a space quota

PATCH
Update Space Quota

This endpoint will only update the parameters specified in the request body. Any unspecified parameters will retain their existing values.

DELETE
Delete Space Quota

Space quotas cannot be deleted when applied to any spaces.

POST
Apply Space Quota

This endpoint applies a space quota to one or more spaces.

Only an admin or an org manager in the quota’s parent organization can apply a space quota to a space.

DELETE
Remove Space Quota From Space

This endpoint removes a space quota from a space.

Only an admin or an org manager in the quota’s parent organization can remove a space quota from a space.

Spaces
GET
List Spaces

Retrieve all spaces the user has access to.

POST
Create Space

Create a space.

GET
Get Space

This endpoint retrieves the specified space object.

PATCH
Update Space

Update a space

DELETE
Delete Space

When a space is deleted, the user roles associated with the space will be deleted.

POST
Apply Manifest To Space

Apply changes specified in a manifest to the named apps and their underlying processes. The apps must reside in the space. These changes are additive and will not modify any unspecified properties or remove any existing environment variables, app features, routes, or services.

Apply manifest will only trigger an immediate update for the “instances” property or routing changes. All other properties require an app restart to take effect.

GET
List Space Features

This endpoint retrieves the list of features for the specified space. Currently, the only feature on spaces is the SSH feature.

GET
Get Space Feature

Get a space feature

PATCH
Update Space Feature

Update a space feature.

GET
Get Assigned Isolation Segment For Space

Get assigned isolation segment

PATCH
Manage Isolation Segment For Space

This endpoint assigns an isolation segment to the space. The isolation segment must be entitled to the space’s parent organization.

Apps will not run in the newly assigned isolation segment until they are restarted.

DELETE
Delete Unmapped Routes For Space

Deletes all routes in a space that are not mapped to any applications and not bound to any service instances.

GET
List Running Security Groups For Space

This endpoint returns security groups that are enabled for running globally or at the space level for the given space.

GET
List Staging Security Groups For Space

This endpoint returns security groups that are enabled for staging globally or at the space level for the given space.

GET
List Users For Space

Retrieve all users with a role in the specified space.

Stacks
GET
List Stacks

Retrieve all stacks.

POST
Create Stack

Create a stack.

GET
Get Stack

Get a stack.

PATCH
Update Stack

Update a stack.

DELETE
Delete Stack

Delete a stack.

GET
List Apps On Stack

Retrieve all apps using a given stack.

Tasks
GET
List Tasks

Retrieve all tasks the user has access to. The command field is excluded in the response.

GET
Get Task

Retrieve a task. The command field may be excluded in the response based on the user’s role.

PATCH
Update Task

Update a task.

POST
Cancel Task

Cancels a running task. Canceled tasks will initially be in state CANCELING and will move to state FAILED once the cancel request has been processed. Cancel requests are idempotent and will be processed according to the state of the task when the request is executed. Canceling a task that is in SUCCEEDED or FAILED state will return an error.

PUT
Cancel Task Put

Cancels a running task using PUT method. Canceled tasks will initially be in state CANCELING and will move to state FAILED once the cancel request has been processed. Cancel requests are idempotent and will be processed according to the state of the task when the request is executed. Canceling a task that is in SUCCEEDED or FAILED state will return an error.

PUT
Cancel Task Short

DEPRECATED - Use /v3/tasks/{guid}/actions/cancel instead.

GET
List App Tasks

Retrieve tasks for an app.

POST
Create Task

Create a task.

Users
GET
List Users

Retrieve all users that the current user can see.

POST
Create User

Creating a user requires one value, a GUID. This creates a user in the Cloud Controller database.

Generally, the GUID should match the GUID of an already-created user in the UAA database, though this is not required. Creating a user by guid is only permitted by admins.

If CAPI property cc.allow_user_creation_by_org_manager is enabled, a UAA user will be automatically created if it does not exist yet. The UAA user will be only created when username and origin have been provided instead of a guid. Additionally origin must be different from uaa. Admins and OrgManagers can make use of the UAA user creation.

GET
Get User

Retrieve a user.

PATCH
Update User

Update a user's metadata.

DELETE
Delete User

All roles associated with a user will be deleted if the user is deleted.