deploymentmanager.deployments.update
PUT {{baseUrl}}/:project/global/deployments/:deployment?createPolicy=<string>&deletePolicy=<string>&preview=<boolean>&alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&userIp=<string>
Updates a deployment and all of the resources described by the deployment manifest.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
createPolicy | string | Sets the policy to use for creating new resources. | |
deletePolicy | string | Sets the policy to use for deleting resources. | |
preview | string | If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. | |
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
Request Body
{"description"=>"<string>", "fingerprint"=>"<string>", "id"=>"<string>", "insertTime"=>"<string>", "labels"=>[{"key"=>"amet officia", "value"=>"voluptate in nulla"}, {"key"=>"occaecat", "value"=>"proident ullamco nulla dolore magna"}], "manifest"=>"<string>", "name"=>"<string>", "operation"=>{"clientOperationId"=>"aliquip magna veniam", "creationTimestamp"=>"incididunt occaecat Ut ex", "description"=>"nisi ad ut", "endTime"=>"ea culpa v", "error"=>{"errors"=>[{"code"=>"pariatur ea aliqua", "location"=>"velit occaecat cons", "message"=>"ut enim ipsum"}, {"code"=>"pariatur voluptate tempor", "location"=>"eu incididunt", "message"=>"cillum dolor cupi"}]}, "httpErrorMessage"=>"dolore", "httpErrorStatusCode"=>-81535620, "id"=>"in incididunt et fugiat amet", "insertTime"=>"ipsum in", "kind"=>"deploymentmanager#operation", "name"=>"dolore", "operationType"=>"con", "progress"=>-66682467, "region"=>"aliquip dolore cillum", "selfLink"=>"in et in cillum minim", "startTime"=>"ad sint", "status"=>"volupta", "statusMessage"=>"sed Duis cupidatat in", "targetId"=>"reprehenderit sint qui nulla", "targetLink"=>"enim eu nulla officia commodo", "user"=>"ipsum eu anim consectetur deserunt", "warnings"=>[{"code"=>"consequat enim fugiat eiusmod", "data"=>[{"key"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"key"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "message"=>"reprehenderit Lorem"}, {"code"=>"ea", "data"=>[{"key"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"key"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "message"=>"cupidatat eu"}], "zone"=>"eu elit in"}, "selfLink"=>"<string>", "target"=>{"config"=>{"content"=>"dolore nulla adipi"}, "imports"=>[{"content"=>"irure mollit", "name"=>"irure in ex esse"}, {"content"=>"deserunt", "name"=>"non dolor"}]}, "update"=>{"description"=>"Lorem", "labels"=>[{"key"=>"laboris reprehenderit in cupidatat", "value"=>"nisi irure eiusmod enim"}, {"key"=>"sint cupidatat", "value"=>"culpa labore"}], "manifest"=>"amet Duis dolor dolore nisi"}, "updateTime"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"clientOperationId":"minim laboris tempor","creationTimestamp":"adip","description":"consequat incididunt dolore fugiat","endTime":"","error":{"errors":[{"code":"amet Excepteur tempor cillum","location":"minim in aliquip velit incididunt","message":"cillum nostrud reprehenderit"},{"code":"adipisicing commodo laborum eiusmod","location":"labor","message":"est ut culpa aute"}]},"httpErrorMessage":"nulla","httpErrorStatusCode":60778276,"id":"deserunt ad","insertTime":"laboris in","kind":"deploymentmanager#operation","name":"voluptate anim laboris","operationType":"commodo cupidatat velit Lorem aute","progress":-84015641,"region":"anim fugiat dolor irure qui","selfLink":"minim voluptate","startTime":"aliquip et","status":"amet in consequat elit","statusMessage":"et minim","targetId":"ipsum","targetLink":"aliqua magna ","user":"aliquip et culpa","warnings":[{"code":"anim","data":[{"key":"nisi dolor","value":"officia "},{"key":"cillum pariatur","value":"magna quis "}],"message":"sint ullamco commodo dolor"},{"code":"ut ","data":[{"key":"veniam irure do Duis","value":"exercitation"},{"key":"officia proident","value":"Lorem tempor"}],"message":"ipsum in dolor velit"}],"zone":"aliqua veniam pariatur"}