Skip to main content

static_cidrs

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

Overview

Namestatic_cidrs
TypeResource
Idazure.network.static_cidrs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
addressPrefixesarrayList of IP address prefixes of the resource.
descriptionstring:vartype description: str
numberOfIPAddressesToAllocatestringNumber of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
provisioningStatestringProvisioning states of a resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
totalNumberOfIPAddressesstringTotal number of IP addresses allocated for the static CIDR resource.
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, network_manager_name, pool_name, static_cidr_name, subscription_idGets the specific Static CIDR resource. Gets the specific Static CIDR resource.
listselectresource_group_name, network_manager_name, pool_name, subscription_idskipToken, skip, top, sortKey, sortValueGets list of Static CIDR resources at Network Manager level. Gets list of Static CIDR resources at Network Manager level.
createinsertresource_group_name, network_manager_name, pool_name, static_cidr_name, subscription_idCreates/Updates the Static CIDR resource. Creates/Updates the Static CIDR resource.
deletedeleteresource_group_name, network_manager_name, pool_name, static_cidr_name, subscription_idDelete the Static CIDR resource. Delete the Static CIDR resource.

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
network_manager_namestringThe name of the network manager. Required.
pool_namestringPool resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
static_cidr_namestringStaticCidr resource name to retrieve. Required.
subscription_idstring
skipintegerOptional num entries to skip. Default value is 0.
skipTokenstringOptional skip token. Default value is None.
sortKeystringOptional key by which to sort. Default value is None.
sortValuestringOptional sort value for pagination. Default value is None.
topintegerOptional num entries to show. Default value is 50.

SELECT examples

Gets the specific Static CIDR resource. Gets the specific Static CIDR resource.

SELECT
id,
name,
addressPrefixes,
description,
numberOfIPAddressesToAllocate,
provisioningState,
systemData,
totalNumberOfIPAddresses,
type
FROM azure.network.static_cidrs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_manager_name = '{{ network_manager_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND static_cidr_name = '{{ static_cidr_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates/Updates the Static CIDR resource. Creates/Updates the Static CIDR resource.

INSERT INTO azure.network.static_cidrs (
properties,
resource_group_name,
network_manager_name,
pool_name,
static_cidr_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_manager_name }}',
'{{ pool_name }}',
'{{ static_cidr_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete the Static CIDR resource. Delete the Static CIDR resource.

DELETE FROM azure.network.static_cidrs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND static_cidr_name = '{{ static_cidr_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;