Share via


PolicyDefinitionVersions interface

Interface representing a PolicyDefinitionVersions.

Methods

createOrUpdate(string, string, PolicyDefinitionVersion, PolicyDefinitionVersionsCreateOrUpdateOptionalParams)

This operation creates or updates a policy definition in the given subscription with the given name.

createOrUpdateAtManagementGroup(string, string, string, PolicyDefinitionVersion, PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams)

This operation creates or updates a policy definition version in the given management group with the given name.

delete(string, string, PolicyDefinitionVersionsDeleteOptionalParams)

This operation deletes the policy definition version in the given subscription with the given name.

deleteAtManagementGroup(string, string, string, PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams)

This operation deletes the policy definition in the given management group with the given name.

get(string, string, PolicyDefinitionVersionsGetOptionalParams)

This operation retrieves the policy definition version in the given subscription with the given name.

getAtManagementGroup(string, string, string, PolicyDefinitionVersionsGetAtManagementGroupOptionalParams)

This operation retrieves the policy definition version in the given management group with the given name.

getBuiltIn(string, string, PolicyDefinitionVersionsGetBuiltInOptionalParams)

This operation retrieves the built-in policy definition version with the given name.

list(string, PolicyDefinitionVersionsListOptionalParams)

This operation retrieves a list of all the policy definition versions for the given policy definition.

listAll(PolicyDefinitionVersionsListAllOptionalParams)

This operation lists all the policy definition versions for all policy definitions within a subscription.

listAllAtManagementGroup(string, PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams)

This operation lists all the policy definition versions for all policy definitions at the management group scope.

listAllBuiltins(PolicyDefinitionVersionsListAllBuiltinsOptionalParams)

This operation lists all the built-in policy definition versions for all built-in policy definitions.

listBuiltIn(string, PolicyDefinitionVersionsListBuiltInOptionalParams)

This operation retrieves a list of all the built-in policy definition versions for the given policy definition.

listByManagementGroup(string, string, PolicyDefinitionVersionsListByManagementGroupOptionalParams)

This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.

Method Details

createOrUpdate(string, string, PolicyDefinitionVersion, PolicyDefinitionVersionsCreateOrUpdateOptionalParams)

This operation creates or updates a policy definition in the given subscription with the given name.

function createOrUpdate(policyDefinitionName: string, policyDefinitionVersion: string, parameters: PolicyDefinitionVersion, options?: PolicyDefinitionVersionsCreateOrUpdateOptionalParams): Promise<PolicyDefinitionVersion>

Parameters

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

parameters
PolicyDefinitionVersion

The policy definition properties.

Returns

createOrUpdateAtManagementGroup(string, string, string, PolicyDefinitionVersion, PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams)

This operation creates or updates a policy definition version in the given management group with the given name.

function createOrUpdateAtManagementGroup(managementGroupName: string, policyDefinitionName: string, policyDefinitionVersion: string, parameters: PolicyDefinitionVersion, options?: PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams): Promise<PolicyDefinitionVersion>

Parameters

managementGroupName

string

The name of the management group. The name is case insensitive.

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

parameters
PolicyDefinitionVersion

The policy definition properties.

Returns

delete(string, string, PolicyDefinitionVersionsDeleteOptionalParams)

This operation deletes the policy definition version in the given subscription with the given name.

function delete(policyDefinitionName: string, policyDefinitionVersion: string, options?: PolicyDefinitionVersionsDeleteOptionalParams): Promise<void>

Parameters

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

options
PolicyDefinitionVersionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

deleteAtManagementGroup(string, string, string, PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams)

This operation deletes the policy definition in the given management group with the given name.

function deleteAtManagementGroup(managementGroupName: string, policyDefinitionName: string, policyDefinitionVersion: string, options?: PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams): Promise<void>

Parameters

managementGroupName

string

The name of the management group. The name is case insensitive.

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

Returns

Promise<void>

get(string, string, PolicyDefinitionVersionsGetOptionalParams)

This operation retrieves the policy definition version in the given subscription with the given name.

function get(policyDefinitionName: string, policyDefinitionVersion: string, options?: PolicyDefinitionVersionsGetOptionalParams): Promise<PolicyDefinitionVersion>

Parameters

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

options
PolicyDefinitionVersionsGetOptionalParams

The options parameters.

Returns

getAtManagementGroup(string, string, string, PolicyDefinitionVersionsGetAtManagementGroupOptionalParams)

This operation retrieves the policy definition version in the given management group with the given name.

function getAtManagementGroup(managementGroupName: string, policyDefinitionName: string, policyDefinitionVersion: string, options?: PolicyDefinitionVersionsGetAtManagementGroupOptionalParams): Promise<PolicyDefinitionVersion>

Parameters

managementGroupName

string

The name of the management group. The name is case insensitive.

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

Returns

getBuiltIn(string, string, PolicyDefinitionVersionsGetBuiltInOptionalParams)

This operation retrieves the built-in policy definition version with the given name.

function getBuiltIn(policyDefinitionName: string, policyDefinitionVersion: string, options?: PolicyDefinitionVersionsGetBuiltInOptionalParams): Promise<PolicyDefinitionVersion>

Parameters

policyDefinitionName

string

The name of the policy definition.

policyDefinitionVersion

string

The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number

options
PolicyDefinitionVersionsGetBuiltInOptionalParams

The options parameters.

Returns

list(string, PolicyDefinitionVersionsListOptionalParams)

This operation retrieves a list of all the policy definition versions for the given policy definition.

function list(policyDefinitionName: string, options?: PolicyDefinitionVersionsListOptionalParams): PagedAsyncIterableIterator<PolicyDefinitionVersion, PolicyDefinitionVersion[], PageSettings>

Parameters

policyDefinitionName

string

The name of the policy definition.

options
PolicyDefinitionVersionsListOptionalParams

The options parameters.

Returns

listAll(PolicyDefinitionVersionsListAllOptionalParams)

This operation lists all the policy definition versions for all policy definitions within a subscription.

function listAll(options?: PolicyDefinitionVersionsListAllOptionalParams): Promise<PolicyDefinitionVersionListResult>

Parameters

options
PolicyDefinitionVersionsListAllOptionalParams

The options parameters.

Returns

listAllAtManagementGroup(string, PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams)

This operation lists all the policy definition versions for all policy definitions at the management group scope.

function listAllAtManagementGroup(managementGroupName: string, options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams): Promise<PolicyDefinitionVersionListResult>

Parameters

managementGroupName

string

The name of the management group. The name is case insensitive.

Returns

listAllBuiltins(PolicyDefinitionVersionsListAllBuiltinsOptionalParams)

This operation lists all the built-in policy definition versions for all built-in policy definitions.

function listAllBuiltins(options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams): Promise<PolicyDefinitionVersionListResult>

Parameters

Returns

listBuiltIn(string, PolicyDefinitionVersionsListBuiltInOptionalParams)

This operation retrieves a list of all the built-in policy definition versions for the given policy definition.

function listBuiltIn(policyDefinitionName: string, options?: PolicyDefinitionVersionsListBuiltInOptionalParams): PagedAsyncIterableIterator<PolicyDefinitionVersion, PolicyDefinitionVersion[], PageSettings>

Parameters

policyDefinitionName

string

The name of the policy definition.

options
PolicyDefinitionVersionsListBuiltInOptionalParams

The options parameters.

Returns

listByManagementGroup(string, string, PolicyDefinitionVersionsListByManagementGroupOptionalParams)

This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.

function listByManagementGroup(managementGroupName: string, policyDefinitionName: string, options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams): PagedAsyncIterableIterator<PolicyDefinitionVersion, PolicyDefinitionVersion[], PageSettings>

Parameters

managementGroupName

string

The name of the management group. The name is case insensitive.

policyDefinitionName

string

The name of the policy definition.

Returns