Skip to main content

node_users

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

Overview

Namenode_users
TypeResource
Idazure.batch_dataplane.node_users

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
create_node_userinsertpool_id, node_id, endpoint, nametimeOut, ocp-dateAdds a user Account to the specified Compute Node. You can add a user Account to a Compute Node only when it is in the idle or running state. Before you can remotely login to a Compute Node you must configure access ports for SSH and RDP. For more information, see https://learn.microsoft.com/azure/batch/pool-endpoint-configuration _.
delete_node_userdeletepool_id, node_id, user_name, endpointtimeOut, ocp-dateDeletes a user Account from the specified Compute Node. You can delete a user Account to a Compute Node only when it is in the idle or running state. Before you can remotely login to a Compute Node you must configure access ports for SSH and RDP. For more information, see https://learn.microsoft.com/azure/batch/pool-endpoint-configuration _.

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: )
node_idstringThe ID of the machine on which you want to delete a user Account. Required.
pool_idstringThe ID of the Pool that contains the Compute Node. Required.
user_namestringThe name of the user Account to delete. Required.
ocp-datestringThe time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly. Default value is None.
timeOutintegerThe maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.". Default value is None.

INSERT examples

Adds a user Account to the specified Compute Node. You can add a user Account to a Compute Node only when it is in the idle or running state. Before you can remotely login to a Compute Node you must configure access ports for SSH and RDP. For more information, see https://learn.microsoft.com/azure/batch/pool-endpoint-configuration _.

INSERT INTO azure.batch_dataplane.node_users (
name,
isAdmin,
expiryTime,
password,
sshPublicKey,
pool_id,
node_id,
endpoint,
timeOut,
ocp-date
)
SELECT
'{{ name }}' /* required */,
{{ isAdmin }},
'{{ expiryTime }}',
'{{ password }}',
'{{ sshPublicKey }}',
'{{ pool_id }}',
'{{ node_id }}',
'{{ endpoint }}',
'{{ timeOut }}',
'{{ ocp-date }}'
;

DELETE examples

Deletes a user Account from the specified Compute Node. You can delete a user Account to a Compute Node only when it is in the idle or running state. Before you can remotely login to a Compute Node you must configure access ports for SSH and RDP. For more information, see https://learn.microsoft.com/azure/batch/pool-endpoint-configuration _.

DELETE FROM azure.batch_dataplane.node_users
WHERE pool_id = '{{ pool_id }}' --required
AND node_id = '{{ node_id }}' --required
AND user_name = '{{ user_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND timeOut = '{{ timeOut }}'
AND ocp-date = '{{ ocp-date }}'
;