Share via


PolicyDefinitionVersionsOperations interface

Interface representing a PolicyDefinitionVersions operations.

Properties

createOrUpdate

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

createOrUpdateAtManagementGroup

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

delete
deleteAtManagementGroup

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

get

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

getAtManagementGroup

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

getBuiltIn

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

list

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

listAll

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

listAllAtManagementGroup

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

listAllBuiltins

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

listBuiltIn

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

listByManagementGroup

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

Property Details

createOrUpdate

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

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

Property Value

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

createOrUpdateAtManagementGroup

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

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

Property Value

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

delete

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

Property Value

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

deleteAtManagementGroup

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

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

Property Value

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

get

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

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

Property Value

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

getAtManagementGroup

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

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

Property Value

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

getBuiltIn

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

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

Property Value

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

list

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

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

Property Value

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

listAll

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

listAll: (options?: PolicyDefinitionVersionsListAllOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

Property Value

(options?: PolicyDefinitionVersionsListAllOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

listAllAtManagementGroup

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

listAllAtManagementGroup: (managementGroupName: string, options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

Property Value

(managementGroupName: string, options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

listAllBuiltins

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

listAllBuiltins: (options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

Property Value

(options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams) => Promise<_PolicyDefinitionVersionListResult>

listBuiltIn

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

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

Property Value

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

listByManagementGroup

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

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

Property Value

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