Skip to main content

deployments

Creates, updates, deletes, gets or lists a deployments resource.

Overview

Namedeployments
TypeResource
Idgoogle.apigee.deployments

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
deploymentsarrayList of deployments.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_apis_revisions_deployments_listselectorganizationsId, apisId, revisionsIdLists all deployments of an API proxy revision.
organizations_environments_apis_deployments_listselectorganizationsId, environmentsId, apisIdLists all deployments of an API proxy in an environment.
organizations_environments_sharedflows_deployments_listselectorganizationsId, environmentsId, sharedflowsIdLists all deployments of a shared flow in an environment.
organizations_environments_deployments_getselectorganizationsId, environmentsId, deploymentsIdGets a particular deployment of Api proxy or a shared flow in an environment
organizations_sharedflows_revisions_deployments_listselectorganizationsId, sharedflowsId, revisionsIdLists all deployments of a shared flow revision.
organizations_apis_deployments_listselectorganizationsId, apisIdLists all deployments of an API proxy.
organizations_environments_deployments_listselectorganizationsId, environmentsIdsharedFlowsLists all deployments of API proxies or shared flows in an environment.
organizations_sharedflows_deployments_listselectorganizationsId, sharedflowsIdLists all deployments of a shared flow.
organizations_deployments_listselectorganizationsIdsharedFlowsLists all deployments of API proxies or shared flows.
organizations_environments_apis_revisions_deployments_generate_deploy_change_reportexecorganizationsId, environmentsId, apisId, revisionsIdoverrideGenerates a report for a dry run analysis of a DeployApiProxy request without committing the deployment. In addition to the standard validations performed when adding deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being created. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run DeployApiProxy request. For a request path organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateDeployChangeReport, two permissions are required: * apigee.deployments.create on the resource organizations/{org}/environments/{env} * apigee.proxyrevisions.deploy on the resource organizations/{org}/apis/{api}/revisions/{rev}
organizations_environments_apis_revisions_deployments_generate_undeploy_change_reportexecorganizationsId, environmentsId, apisId, revisionsIdGenerates a report for a dry run analysis of an UndeployApiProxy request without committing the undeploy. In addition to the standard validations performed when removing deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being removed. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run UndeployApiProxy request. For a request path organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateUndeployChangeReport, two permissions are required: * apigee.deployments.delete on the resource organizations/{org}/environments/{env} * apigee.proxyrevisions.undeploy on the resource organizations/{org}/apis/{api}/revisions/{rev}

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
apisIdstring
deploymentsIdstring
environmentsIdstring
organizationsIdstring
revisionsIdstring
sharedflowsIdstring
overrideboolean
sharedFlowsboolean

SELECT examples

Lists all deployments of an API proxy revision.

SELECT
deployments
FROM google.apigee.deployments
WHERE organizationsId = '{{ organizationsId }}' -- required
AND apisId = '{{ apisId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required;

Lifecycle Methods

Generates a report for a dry run analysis of a DeployApiProxy request without committing the deployment. In addition to the standard validations performed when adding deployments, additional analysis will be done to detect possible traffic routing changes that would result from this deployment being created. Any potential routing conflicts or unsafe changes will be reported in the response. This routing analysis is not performed for a non-dry-run DeployApiProxy request. For a request path organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments:generateDeployChangeReport, two permissions are required: * apigee.deployments.create on the resource organizations/{org}/environments/{env} * apigee.proxyrevisions.deploy on the resource organizations/{org}/apis/{api}/revisions/{rev}

EXEC google.apigee.deployments.organizations_environments_apis_revisions_deployments_generate_deploy_change_report 
@organizationsId='{{ organizationsId }}' --required,
@environmentsId='{{ environmentsId }}' --required,
@apisId='{{ apisId }}' --required,
@revisionsId='{{ revisionsId }}' --required,
@override={{ override }};