Skip to main content

commits

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

Overview

Namecommits
TypeResource
Idazure.network.commits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
activeLocationsarrayList of active locations.
commitTypestringCommit Type. Required. Known values are: "SecurityAdmin", "Connectivity", "SecurityUser", and "Routing". (SecurityAdmin, Connectivity, SecurityUser, Routing)
configurationIdsarrayList of configuration IDs.
descriptionstringA description of the commit.
etagstringA unique read-only string that changes whenever the resource is updated.
forceUpdateTagstringA value that, when changed, forces the commit to be re-evaluated and redeployed.
provisioningStatestringThe provisioning state of the resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringUnique identifier for this resource.
systemDataobjectThe system metadata related to this resource.
targetLocationsarrayList of target locations. Required.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_manager_name, commit_name, subscription_idGets the specified commit.
listselectresource_group_name, network_manager_name, subscription_id$top, $skipTokenLists all commits for the specified network manager.
create_or_updateinsertresource_group_name, network_manager_name, commit_name, subscription_idCreates or updates a commit.
create_or_updatereplaceresource_group_name, network_manager_name, commit_name, subscription_idCreates or updates a commit.
deletedeleteresource_group_name, network_manager_name, commit_name, subscription_idDeletes a commit.

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
commit_namestringThe name of the commit. Required.
network_manager_namestringThe name of the network manager. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringSkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None.
$topintegerAn optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None.

SELECT examples

Gets the specified commit.

SELECT
id,
name,
activeLocations,
commitType,
configurationIds,
description,
etag,
forceUpdateTag,
provisioningState,
resourceGuid,
systemData,
targetLocations,
type
FROM azure.network.commits
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_manager_name = '{{ network_manager_name }}' -- required
AND commit_name = '{{ commit_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a commit.

INSERT INTO azure.network.commits (
properties,
resource_group_name,
network_manager_name,
commit_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_manager_name }}',
'{{ commit_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a commit.

REPLACE azure.network.commits
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND commit_name = '{{ commit_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes a commit.

DELETE FROM azure.network.commits
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND commit_name = '{{ commit_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;