openapi: 3.2.0 info: title: Cloud Foundry V3 Environment Variable Groups API description: '# Welcome to the Experimental Cloud Foundry V3 API Docs!' version: latest license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html contact: name: Cloud Foundry url: https://www.cloudfoundry.org/ servers: - url: https://api.example.local description: Cloud Foundry V3 API server security: - oauth: - cloud_controller.read - cloud_controller.write tags: - name: Environment Variable Groups description: 'There are two types of environment variable groups: running and staging.' paths: /v3/environment_variable_groups/{name}: get: summary: Get an environment variable group description: Retrieve an environment variable group. operationId: getEnvironmentVariableGroup tags: - Environment Variable Groups parameters: - name: name in: path required: true schema: type: string enum: - running - staging responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EnvironmentVariableGroup' examples: default: summary: default value: updated_at: '2016-05-04T17:00:41Z' name: running var: foo: bar links: self: href: https://api.example.org/v3/environment_variable_groups/running '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '409': $ref: '#/components/responses/Conflict' '422': $ref: '#/components/responses/UnprocessableEntity' '500': $ref: '#/components/responses/500' '502': $ref: '#/components/responses/BadGateway' '503': $ref: '#/components/responses/ServiceUnavailable' patch: summary: Update environment variable group description: '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.' operationId: updateEnvironmentVariableGroup tags: - Environment Variable Groups parameters: - name: name in: path required: true schema: type: string enum: - running - staging requestBody: description: The environment variables to update required: true content: application/json: schema: type: object properties: var: type: object additionalProperties: type: string description: Environment variables to inject; keys and values must be strings responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EnvironmentVariableGroup' examples: default: summary: default value: var: RAILS_ENV: production DEBUG: 'false' links: self: href: https://api.example.org/v3/environment_variable_groups/[name] '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '409': $ref: '#/components/responses/Conflict' '422': $ref: '#/components/responses/UnprocessableEntity' '500': $ref: '#/components/responses/500' '503': $ref: '#/components/responses/ServiceUnavailable' components: schemas: Link: type: object properties: href: type: string description: The URL of the link method: type: string description: An optional field containing the HTTP method to be used when following the URL required: - href description: 'Each link is keyed by its type and will include a href for the URL and an optional method for links that cannot be followed using GET. ' Error: type: object properties: code: type: integer description: A numeric code for this error detail: type: string description: Detailed description of the error title: type: string description: Name of the error EnvironmentVariableGroup: type: object properties: updated_at: type: string format: date-time description: The time the environment variable group was last updated name: type: - string - 'null' description: The name of the group; can only be "running" or "staging" var: type: object additionalProperties: type: - string - 'null' description: Environment variables to inject; keys and values must be strings links: type: object properties: self: $ref: '#/components/schemas/Link' description: The URL to get this environment variable group description: 'Environment variable groups allow platform operators/admins to manage environment variables across all apps in a Cloud Foundry foundation. Variables in the running environment variable group will be injected into all running app containers. Variables in the staging environment variable group will be injected into the staging container for all apps while they are being staged. ' Errors: type: object properties: errors: type: array items: $ref: '#/components/schemas/Error' description: 'An error response will always return a list of error objects. Errors appear on the job resource for asynchronous operations. Clients should use the code and title fields for programmatically handling specific errors. The message in the detail field is subject to change over time. ' responses: BadGateway: description: Bad Gateway content: application/json: schema: $ref: '#/components/schemas/Error' BadRequest: description: Bad Request content: application/json: schema: $ref: '#/components/schemas/Errors' text/html: schema: type: string Forbidden: description: Forbidden content: application/json: schema: $ref: '#/components/schemas/Errors' NotFound: description: Not Found content: application/json: schema: $ref: '#/components/schemas/Errors' ServiceUnavailable: description: Service Unavailable content: application/json: schema: $ref: '#/components/schemas/Errors' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/Errors' UnprocessableEntity: description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/Errors' Conflict: description: Conflict content: application/json: schema: $ref: '#/components/schemas/Errors' Unauthorized: description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Errors' securitySchemes: oauth: type: oauth2 flows: implicit: authorizationUrl: https://uaa.cloudfoundry.local/api-oauth/dialog scopes: cloud_controller.admin: This scope provides read and write access to all resources cloud_controller.admin_read_only: This scope provides read only access to all resources cloud_controller.global_auditor: This scope provides read access to all resources cloud_controller.read: Read access to the Cloud Controller cloud_controller.write: Write access to the Cloud Controller cloud_controller.update_build_state: This scope allows its bearer to update the state of a build; currently only used when updating builds cloud_controller_service_permissions.read: This scope provides read only access for service instance permissions bearer: type: http scheme: bearer bearerFormat: JWT description: Bearer JWT token authentication