Skip to main content

gates

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

Overview

Namegates
TypeResource
Idazure.container_service_fleet.gates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
displayNamestringThe human-readable display name of the Gate.
eTagstringIf eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
gateTypestringThe type of the Gate determines how it is completed. Required. "Approval" (Approval)
provisioningStatestringThe provisioning state of the Gate resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
statestringThe state of the Gate. Required. Known values are: "Pending", "Skipped", and "Completed". (Pending, Skipped, Completed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetobjectThe target that the Gate is controlling, e.g. an Update Run. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, fleet_name, gate_name, subscription_idGet a Gate.
list_by_fleetselectresource_group_name, fleet_name, subscription_id$filter, $top, $skipTokenList Gate resources by Fleet.
updateupdateresource_group_name, fleet_name, gate_name, subscription_id, propertiesUpdate a Gate.

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
fleet_namestringThe name of the Fleet resource. Required.
gate_namestringThe name of the Gate resource, a GUID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringFilter the result list using the given expression. Default value is None.
$skipTokenstringThe page-continuation token to use with a paged version of this API. Default value is None.
$topintegerThe number of result items to return. Default value is None.

SELECT examples

Get a Gate.

SELECT
id,
name,
displayName,
eTag,
gateType,
provisioningState,
state,
systemData,
target,
type
FROM azure.container_service_fleet.gates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fleet_name = '{{ fleet_name }}' -- required
AND gate_name = '{{ gate_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Update a Gate.

UPDATE azure.container_service_fleet.gates
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND gate_name = '{{ gate_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
eTag,
properties,
systemData,
type;