yc serverless trigger create container-registry
Written by
Updated at December 2, 2024
Create container registry trigger
Command Usage
Syntax:
yc serverless trigger create container-registry <TRIGGER-NAME> [Flags...] [Global Flags...]
Flags
| Flag | Description |
|---|---|
--name |
stringTrigger name. |
--description |
stringTrigger description. |
--labels |
key=value[,key=value...]A list of label KEY=VALUE pairs to add. For example, to add two labels named 'foo' and 'bar', both with the value 'baz', use '--labels foo=baz,bar=baz'. |
--registry-id |
stringContainer registry ID. |
--registry-name |
stringContainer registry name. |
--image-name |
stringContainer image name filter. |
--tag |
stringContainer image tag filter. |
--events |
value[,value]List of container registry events to subscribe. A list can be specified by listing events separated by commas as well as passing this flag multiple times. Available events are: 'create-image' , 'delete-image', 'create-image-tag', 'delete-image-tag'. |
--batch-size |
intBatch size, 1 - 1000. Default: 1 |
--batch-cutoff |
durationBatch cutoff. 1 - 60s. Default: 1s. |
--invoke-function-id |
stringFunction to be invoked by worker on the data from Container Registry. |
--invoke-function-name |
stringFunction to be invoked by worker on the data from Container Registry. |
--invoke-function-tag |
stringFunction tag. |
--invoke-function-service-account-id |
stringService account to be used by the worker to invoke the function. |
--invoke-function-service-account-name |
stringService account to be used by the worker to invoke the function. |
--invoke-container-id |
stringContainer to be invoked by worker on the data from Container Registry. |
--invoke-container-name |
stringContainer to be invoked by worker on the data from Container Registry. |
--invoke-container-path |
stringContainer endpoint path. |
--invoke-container-service-account-id |
stringService account to be used by the worker to invoke the container. |
--invoke-container-service-account-name |
stringService account to be used by the worker to invoke the container. |
--gateway-id |
stringGateway to which worker will broadcast on the data from Container Registry. |
--gateway-name |
stringGateway to which worker will broadcast on the data from Container Registry. |
--gateway-websocket-broadcast-path |
stringGateway endpoint path. |
--gateway-websocket-broadcast-service-account-id |
stringService account to be used by the worker to broadcast to gateway websocket. |
--gateway-websocket-broadcast-service-account-name |
stringService account to be used by the worker to broadcast to gateway websocket. |
--retry-attempts |
intRetry attempts, Default: 0 |
--retry-interval |
durationRetry interval. Examples: '10s', '1m'. |
--dlq-queue-id |
stringDead letter queue identifier. |
--dlq-service-account-id |
stringService account to handle dead letter queue. |
--dlq-service-account-name |
stringService account to handle dead letter queue. |
--async |
Display information about the operation in progress, without waiting for the operation to complete. |
Global Flags
| Flag | Description |
|---|---|
--profile |
stringSet the custom configuration file. |
--debug |
Debug logging. |
--debug-grpc |
Debug gRPC logging. Very verbose, used for debugging connection problems. |
--no-user-output |
Disable printing user intended output to stderr. |
--retry |
intEnable gRPC retries. By default, retries are enabled with maximum 5 attempts. Pass 0 to disable retries. Pass any negative value for infinite retries. Even infinite retries are capped with 2 minutes timeout. |
--cloud-id |
stringSet the ID of the cloud to use. |
--folder-id |
stringSet the ID of the folder to use. |
--folder-name |
stringSet the name of the folder to use (will be resolved to id). |
--endpoint |
stringSet the Cloud API endpoint (host:port). |
--token |
stringSet the OAuth token to use. |
--impersonate-service-account-id |
stringSet the ID of the service account to impersonate. |
--no-browser |
Disable opening browser for authentication. |
--format |
stringSet the output format: text (default), yaml, json, json-rest. |
--jq |
stringQuery to select values from the response using jq syntax |
-h,--help |
Display help for the command. |