Skip to main content

fleetspace

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

Overview

Namefleetspace
TypeResource
Idazure.cosmosdb.fleetspace

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.
dataRegionsarrayList of data regions assigned to the fleetspace. Eg [westus2].
fleetspaceApiKindstringThe kind of API this fleetspace belongs to. Acceptable values: 'NoSQL'. "NoSQL" (NoSQL)
provisioningStatestringA provisioning state of the Fleetspace. Known values are: "Uninitialized", "Initializing", "InternallyReady", "Online", "Deleting", "Succeeded", "Failed", "Canceled", "Updating", and "Creating". (Uninitialized, Initializing, InternallyReady, Online, Deleting, Succeeded, Failed, Canceled, Updating, Creating)
serviceTierstringService Tier for the fleetspace. GeneralPurpose types refers to single write region accounts that can be added to this fleetspace, whereas BusinessCritical refers to multi write region. Known values are: "GeneralPurpose" and "BusinessCritical". (GeneralPurpose, BusinessCritical)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
throughputPoolConfigurationobjectConfiguration for throughput pool in the fleetspace.
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, fleetspace_name, subscription_idRetrieves the properties of an existing Azure Cosmos DB fleetspace under a fleet.
listselectresource_group_name, fleet_name, subscription_idLists all the fleetspaces under a fleet.
createinsertresource_group_name, fleet_name, fleetspace_name, subscription_idCreates an Azure Cosmos DB fleetspace under a fleet.
updateupdateresource_group_name, fleet_name, fleetspace_name, subscription_idUpdate the properties of an existing Azure Cosmos DB fleetspace under a fleet.
deletedeleteresource_group_name, fleet_name, fleetspace_name, subscription_idDeletes an existing Azure Cosmos DB Fleetspace.

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_namestringCosmos DB fleet name. Needs to be unique under a subscription. Required.
fleetspace_namestringCosmos DB fleetspace name. Needs to be unique under a fleet. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves the properties of an existing Azure Cosmos DB fleetspace under a fleet.

SELECT
id,
name,
dataRegions,
fleetspaceApiKind,
provisioningState,
serviceTier,
systemData,
throughputPoolConfiguration,
type
FROM azure.cosmosdb.fleetspace
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fleet_name = '{{ fleet_name }}' -- required
AND fleetspace_name = '{{ fleetspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an Azure Cosmos DB fleetspace under a fleet.

INSERT INTO azure.cosmosdb.fleetspace (
properties,
resource_group_name,
fleet_name,
fleetspace_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ fleet_name }}',
'{{ fleetspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update the properties of an existing Azure Cosmos DB fleetspace under a fleet.

UPDATE azure.cosmosdb.fleetspace
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND fleetspace_name = '{{ fleetspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing Azure Cosmos DB Fleetspace.

DELETE FROM azure.cosmosdb.fleetspace
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND fleetspace_name = '{{ fleetspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;