- NAME
-
- gcloud design-center spaces application-templates components connections update - update a connection
- SYNOPSIS
-
-
gcloud design-center spaces application-templates components connections update(CONNECTION:--component=COMPONENT) [--application-template=APPLICATION_TEMPLATE] [--destination-component-uri=DESTINATION_COMPONENT_URI] [--location=LOCATION] [--space=SPACE] [--destination-component-parameters=[key=KEY],[value=VALUE] |--add-destination-component-parameters=[key=KEY],[value=VALUE]--clear-destination-component-parameters|--remove-destination-component-parameters=[key=KEY],[value=VALUE]] [--source-component-parameters=[key=KEY],[value=VALUE] |--add-source-component-parameters=[key=KEY],[value=VALUE]--clear-source-component-parameters|--remove-source-component-parameters=[key=KEY],[value=VALUE]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- Update a connection between components in an application template.
- EXAMPLES
-
To update the destination component URI to
projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-componentin the connectionmy-connectionin componentmy-componentof application templatemy-app-template, spacemy-space, projectmy-projectand locationus-central1, run:gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --destination-component-uri=other-new-componentOr run:
gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --destination-component-uri=projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-componentOr run:
gcloud design-center spaces application-templates components connections update projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/my-component/connections/my-connection --destination-component-uri=projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-componentTo add a new parameter key-value pair of
new_parameter_key:new-parameterto the connectionmy-connectionin componentmy-componentof application templatemy-app-template, spacemy-space, projectmy-projectand locationus-central1, run the following shorthand example:gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters=key=project_id,value=new-project --add-parameters=key=new_parameter_key,value=new-parameterOr run the following JSON example:
gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters='[{"key": "project_id", "value":"new-project"}, {"key": "new_parameter_key", "value": "new-parameter"}]'Or create a YAML or JSON file with the parameters and run the following file example:
gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters=my-parameters.yamlTo clear all parameters from the connection
my-connectionin componentmy-componentof application templatemy-app-template, spacemy-space, projectmy-projectand locationus-central1, run:gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --clear-parametersTo remove an existing parameter key-value pair of
type:connection-typefrom the connectionmy-connectionin componentmy-componentof application templatemy-app-template, spacemy-space, projectmy-projectand locationus-central1, run:gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --remove-parameters=key=type,value=connection-type - POSITIONAL ARGUMENTS
-
-
Connection resource - Identifier. The connection name. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:
-
Connection resource - Identifier. The connection name. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.