fleets
Creates, updates, deletes, gets or lists a fleets
resource.
Overview
Name | fleets |
Type | Resource |
Id | azure.fleet.fleets |
Fields
- vw_fleets
- fleets
Name | Datatype | Description |
---|---|---|
e_tag | text | field from the properties object |
fleetName | text | field from the properties object |
hub_profile | text | field from the properties object |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
eTag | string | If 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. |
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Fleet properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fleetName, resourceGroupName, subscriptionId | Gets a Fleet. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists fleets in the specified subscription and resource group. |
list_by_subscription | SELECT | subscriptionId | Lists fleets in the specified subscription. |
create_or_update | INSERT | fleetName, resourceGroupName, subscriptionId | Creates or updates a Fleet. |
delete | DELETE | fleetName, resourceGroupName, subscriptionId | Delete a Fleet |
update | UPDATE | fleetName, resourceGroupName, subscriptionId | Update a Fleet |
SELECT
examples
Lists fleets in the specified subscription.
- vw_fleets
- fleets
SELECT
e_tag,
fleetName,
hub_profile,
identity,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.fleet.vw_fleets
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
eTag,
identity,
location,
properties,
tags
FROM azure.fleet.fleets
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new fleets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.fleet.fleets (
fleetName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: hubProfile
value:
- name: dnsPrefix
value: string
- name: apiServerAccessProfile
value:
- name: enablePrivateCluster
value: boolean
- name: agentProfile
value:
- name: subnetId
value: []
- name: vmSize
value: string
- name: fqdn
value: string
- name: kubernetesVersion
value: string
- name: portalFqdn
value: string
- name: eTag
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a fleets
resource.
/*+ update */
UPDATE azure.fleet.fleets
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified fleets
resource.
/*+ delete */
DELETE FROM azure.fleet.fleets
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';