Skip to main content

configuration_group_schemas

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

Overview

Nameconfiguration_group_schemas
TypeResource
Idazure_extras.hybrid_network.configuration_group_schemas

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.
descriptionstringDescription of what schema can contain.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state of the Configuration group schema resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted", and "Converging".
schemaDefinitionstringName and value pairs that define the configuration value. It can be a well formed escaped JSON string.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionStatestringThe configuration group schema version state. Known values are: "Unknown", "Preview", "Active", "Deprecated", "Validating", and "ValidationFailed".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, publisher_name, configuration_group_schema_name, subscription_idGets information about the specified configuration group schema.
list_by_publisherselectresource_group_name, publisher_name, subscription_idGets information of the configuration group schemas under a publisher.
create_or_updateinsertresource_group_name, publisher_name, configuration_group_schema_name, subscription_id, locationCreates or updates a configuration group schema.
updateupdateresource_group_name, publisher_name, configuration_group_schema_name, subscription_idUpdates a configuration group schema resource.
create_or_updatereplaceresource_group_name, publisher_name, configuration_group_schema_name, subscription_id, locationCreates or updates a configuration group schema.
deletedeleteresource_group_name, publisher_name, configuration_group_schema_name, subscription_idDeletes a specified configuration group schema.
update_stateexecresource_group_name, publisher_name, configuration_group_schema_name, subscription_idUpdate configuration group schema state.

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
configuration_group_schema_namestringThe name of the configuration group schema. Required.
publisher_namestringThe name of the publisher. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets information about the specified configuration group schema.

SELECT
id,
name,
description,
location,
provisioningState,
schemaDefinition,
systemData,
tags,
type,
versionState
FROM azure_extras.hybrid_network.configuration_group_schemas
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND configuration_group_schema_name = '{{ configuration_group_schema_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a configuration group schema.

INSERT INTO azure_extras.hybrid_network.configuration_group_schemas (
tags,
location,
properties,
resource_group_name,
publisher_name,
configuration_group_schema_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ publisher_name }}',
'{{ configuration_group_schema_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a configuration group schema resource.

UPDATE azure_extras.hybrid_network.configuration_group_schemas
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND configuration_group_schema_name = '{{ configuration_group_schema_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a configuration group schema.

REPLACE azure_extras.hybrid_network.configuration_group_schemas
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND configuration_group_schema_name = '{{ configuration_group_schema_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a specified configuration group schema.

DELETE FROM azure_extras.hybrid_network.configuration_group_schemas
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND configuration_group_schema_name = '{{ configuration_group_schema_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Update configuration group schema state.

EXEC azure_extras.hybrid_network.configuration_group_schemas.update_state 
@resource_group_name='{{ resource_group_name }}' --required,
@publisher_name='{{ publisher_name }}' --required,
@configuration_group_schema_name='{{ configuration_group_schema_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"versionState": "{{ versionState }}"
}'
;