Skip to main content

generate_client_tokens

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

Overview​

Namegenerate_client_tokens
TypeResource
Idazure.messaging_webpubsubservice.generate_client_tokens

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
generate_client_tokenexechub, endpointuserId, minutesToExpire, clientTypeGenerate token for the client to connect Azure Web PubSub service. Generate token for the client to connect Azure Web PubSub service.

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: )
hubstring
clientTypestringThe type of client. Case-insensitive. If not set, it's "Default". For Web PubSub for Socket.IO, only the default value is supported. For Web PubSub, the valid values are 'Default' and 'MQTT'. Known values are: "Default" and "MQTT". Default value is None.
minutesToExpireintegerThe expire time of the generated token. Default value is None.
userIdstringUser Id. Default value is None.

Lifecycle Methods​

Generate token for the client to connect Azure Web PubSub service. Generate token for the client to connect Azure Web PubSub service.

EXEC azure.messaging_webpubsubservice.generate_client_tokens.generate_client_token
@hub='{{ hub }}' --required,
@endpoint='{{ endpoint }}' --required,
@userId='{{ userId }}',
@minutesToExpire='{{ minutesToExpire }}',
@clientType='{{ clientType }}'
;