Skip to main content

fleets

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

Overview

Namefleets
TypeResource
Idazure.fleet.fleets

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
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.
identityobjectManaged identity.
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, fleetNameGets a Fleet.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists fleets in the specified subscription and resource group.
list_by_subscriptionselectsubscriptionIdLists fleets in the specified subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, fleetNameIf-Match, If-None-MatchCreates or updates a Fleet.
updateupdatesubscriptionId, resourceGroupName, fleetNameIf-MatchUpdate a Fleet
deletedeletesubscriptionId, resourceGroupName, fleetNameIf-MatchDelete a Fleet

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
fleetNamestringThe name of the Fleet resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
If-MatchstringThe request should only proceed if an entity matches this string.
If-None-MatchstringThe request should only proceed if no entity matches this string.

SELECT examples

Gets a Fleet.

SELECT
eTag,
identity,
location,
properties,
tags
FROM azure.fleet.fleets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND fleetName = '{{ fleetName }}' -- required
;

INSERT examples

Creates or updates a Fleet.

INSERT INTO azure.fleet.fleets (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
fleetName,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ fleetName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
eTag,
identity,
location,
properties,
tags
;

UPDATE examples

Update a Fleet

UPDATE azure.fleet.fleets
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
eTag,
identity,
location,
properties,
tags;

DELETE examples

Delete a Fleet

DELETE FROM azure.fleet.fleets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
AND If-Match = '{{ If-Match }}'
;