Share via


PolicySetDefinitionVersions interface

Interface representing a PolicySetDefinitionVersions.

Methods

createOrUpdate(string, string, PolicySetDefinitionVersion, PolicySetDefinitionVersionsCreateOrUpdateOptionalParams)

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

createOrUpdateAtManagementGroup(string, string, string, PolicySetDefinitionVersion, PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams)

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

delete(string, string, PolicySetDefinitionVersionsDeleteOptionalParams)

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

deleteAtManagementGroup(string, string, string, PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams)

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

get(string, string, PolicySetDefinitionVersionsGetOptionalParams)

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

getAtManagementGroup(string, string, string, PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams)

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

getBuiltIn(string, string, PolicySetDefinitionVersionsGetBuiltInOptionalParams)

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

list(string, PolicySetDefinitionVersionsListOptionalParams)

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

listAll(PolicySetDefinitionVersionsListAllOptionalParams)

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

listAllAtManagementGroup(string, PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams)

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

listAllBuiltins(PolicySetDefinitionVersionsListAllBuiltinsOptionalParams)

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

listBuiltIn(string, PolicySetDefinitionVersionsListBuiltInOptionalParams)

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

listByManagementGroup(string, string, PolicySetDefinitionVersionsListByManagementGroupOptionalParams)

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

Method Details

createOrUpdate(string, string, PolicySetDefinitionVersion, PolicySetDefinitionVersionsCreateOrUpdateOptionalParams)

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

function createOrUpdate(policySetDefinitionName: string, policyDefinitionVersion: string, parameters: PolicySetDefinitionVersion, options?: PolicySetDefinitionVersionsCreateOrUpdateOptionalParams): Promise<PolicySetDefinitionVersion>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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
PolicySetDefinitionVersion

The policy set definition properties.

Returns

createOrUpdateAtManagementGroup(string, string, string, PolicySetDefinitionVersion, PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams)

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

function createOrUpdateAtManagementGroup(managementGroupName: string, policySetDefinitionName: string, policyDefinitionVersion: string, parameters: PolicySetDefinitionVersion, options?: PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams): Promise<PolicySetDefinitionVersion>

Parameters

managementGroupName

string

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

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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
PolicySetDefinitionVersion

The policy set definition version properties.

Returns

delete(string, string, PolicySetDefinitionVersionsDeleteOptionalParams)

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

function delete(policySetDefinitionName: string, policyDefinitionVersion: string, options?: PolicySetDefinitionVersionsDeleteOptionalParams): Promise<void>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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
PolicySetDefinitionVersionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

deleteAtManagementGroup(string, string, string, PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams)

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

function deleteAtManagementGroup(managementGroupName: string, policySetDefinitionName: string, policyDefinitionVersion: string, options?: PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams): Promise<void>

Parameters

managementGroupName

string

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

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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, PolicySetDefinitionVersionsGetOptionalParams)

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

function get(policySetDefinitionName: string, policyDefinitionVersion: string, options?: PolicySetDefinitionVersionsGetOptionalParams): Promise<PolicySetDefinitionVersion>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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
PolicySetDefinitionVersionsGetOptionalParams

The options parameters.

Returns

getAtManagementGroup(string, string, string, PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams)

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

function getAtManagementGroup(managementGroupName: string, policySetDefinitionName: string, policyDefinitionVersion: string, options?: PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams): Promise<PolicySetDefinitionVersion>

Parameters

managementGroupName

string

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

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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, PolicySetDefinitionVersionsGetBuiltInOptionalParams)

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

function getBuiltIn(policySetDefinitionName: string, policyDefinitionVersion: string, options?: PolicySetDefinitionVersionsGetBuiltInOptionalParams): Promise<PolicySetDefinitionVersion>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

policyDefinitionVersion

string

The policy set 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
PolicySetDefinitionVersionsGetBuiltInOptionalParams

The options parameters.

Returns

list(string, PolicySetDefinitionVersionsListOptionalParams)

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

function list(policySetDefinitionName: string, options?: PolicySetDefinitionVersionsListOptionalParams): PagedAsyncIterableIterator<PolicySetDefinitionVersion, PolicySetDefinitionVersion[], PageSettings>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

options
PolicySetDefinitionVersionsListOptionalParams

The options parameters.

Returns

listAll(PolicySetDefinitionVersionsListAllOptionalParams)

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

function listAll(options?: PolicySetDefinitionVersionsListAllOptionalParams): Promise<PolicySetDefinitionVersionListResult>

Parameters

options
PolicySetDefinitionVersionsListAllOptionalParams

The options parameters.

Returns

listAllAtManagementGroup(string, PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams)

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

function listAllAtManagementGroup(managementGroupName: string, options?: PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams): Promise<PolicySetDefinitionVersionListResult>

Parameters

managementGroupName

string

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

Returns

listAllBuiltins(PolicySetDefinitionVersionsListAllBuiltinsOptionalParams)

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

function listAllBuiltins(options?: PolicySetDefinitionVersionsListAllBuiltinsOptionalParams): Promise<PolicySetDefinitionVersionListResult>

Parameters

Returns

listBuiltIn(string, PolicySetDefinitionVersionsListBuiltInOptionalParams)

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

function listBuiltIn(policySetDefinitionName: string, options?: PolicySetDefinitionVersionsListBuiltInOptionalParams): PagedAsyncIterableIterator<PolicySetDefinitionVersion, PolicySetDefinitionVersion[], PageSettings>

Parameters

policySetDefinitionName

string

The name of the policy set definition.

Returns

listByManagementGroup(string, string, PolicySetDefinitionVersionsListByManagementGroupOptionalParams)

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

function listByManagementGroup(managementGroupName: string, policySetDefinitionName: string, options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams): PagedAsyncIterableIterator<PolicySetDefinitionVersion, PolicySetDefinitionVersion[], PageSettings>

Parameters

managementGroupName

string

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

policySetDefinitionName

string

The name of the policy set definition.

Returns