Create Deployment
api_hub.create_deployment
ActionGoogle Cloudconnection required
Calls apihub v1 POST /v1/projects/{projectsId}/locations/{locationsId}/deployments.
Create a deployment resource in the API hub.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google API hub
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, location
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
location Location or region; taken from the connection when unset. | string | No | — | — | — |
body The GoogleCloudApihubV1Deployment resource, as the API defines it. | object | Yes | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
apiVersions | array | — |
attributes | object | — |
createTime | string | — |
deploymentType | object | — |
description | string | — |
displayName | string | — |
documentation | object | — |
endpoints | array | — |
environment | object | — |
managementUrl | object | — |
name | string | — |
resourceUri | string | — |
slo | object | — |
sourceEnvironment | string | — |
sourceMetadata | array | — |
sourceProject | string | — |
sourceUri | object | — |
updateTime | string | — |
{
"apiVersions": [],
"attributes": {},
"createTime": "",
"deploymentType": {},
"description": "",
"displayName": "",
"documentation": {},
"endpoints": [],
"environment": {},
"managementUrl": {},
"name": "",
"resourceUri": "",
"slo": {},
"sourceEnvironment": "",
"sourceMetadata": [],
"sourceProject": "",
"sourceUri": {},
"updateTime": ""
}Related Google API hub nodes
See Create Deployment run in a workflow.
In a technical demo we add the Google API hub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.