Skip to main content

upsert_workers

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

Overview

Nameupsert_workers
TypeResource
Idazure.communication_job_router.upsert_workers

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
upsert_workerexecworker_id, endpointIf-Unmodified-SinceCreates or updates a worker. Creates or updates a worker.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
worker_idstringId of a worker. Required.
If-Unmodified-SincestringThe request should only proceed if the entity was not modified after this time. Default value is None.

Lifecycle Methods

Creates or updates a worker. Creates or updates a worker.

EXEC azure.communication_job_router.upsert_workers.upsert_worker 
@worker_id='{{ worker_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@If-Unmodified-Since='{{ If-Unmodified-Since }}'
@@json=
'{
"queues": "{{ queues }}",
"capacity": {{ capacity }},
"labels": "{{ labels }}",
"tags": "{{ tags }}",
"channels": "{{ channels }}",
"availableForOffers": {{ availableForOffers }},
"maxConcurrentOffers": {{ maxConcurrentOffers }}
}'
;