Skip to main content

clusters_gateway_settings

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

Overview

Nameclusters_gateway_settings
TypeResource
Idazure.hdinsight.clusters_gateway_settings

Fields

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
restAuthCredential.isEnabledstringIndicates whether or not the gateway settings based authorization is enabled. (x-ms-client-name: isCredentialEnabled)
restAuthCredential.passwordstringThe gateway settings user password. (x-ms-client-name: password)
restAuthCredential.usernamestringThe gateway settings user name. (x-ms-client-name: userName)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterNameGets the gateway settings for the specified cluster.
updateexecsubscriptionId, resourceGroupName, clusterNameConfigures the gateway settings on the specified cluster.

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
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets the gateway settings for the specified cluster.

SELECT
restAuthCredential.isEnabled,
restAuthCredential.password,
restAuthCredential.username
FROM azure.hdinsight.clusters_gateway_settings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;

Lifecycle Methods

Configures the gateway settings on the specified cluster.

EXEC azure.hdinsight.clusters_gateway_settings.update 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"restAuthCredential.isEnabled": {{ restAuthCredential.isEnabled }},
"restAuthCredential.username": "{{ restAuthCredential.username }}",
"restAuthCredential.password": "{{ restAuthCredential.password }}"
}'
;