PolicySetDefinitions interface
Interface representing a PolicySetDefinitions.
Methods
create |
This operation creates or updates a policy set definition in the given subscription with the given name. |
create |
This operation creates or updates a policy set definition in the given management group with the given name. |
delete(string, Policy |
This operation deletes the policy set definition in the given subscription with the given name. |
delete |
This operation deletes the policy set definition in the given management group with the given name. |
get(string, Policy |
This operation retrieves the policy set definition in the given subscription with the given name. |
get |
This operation retrieves the policy set definition in the given management group with the given name. |
get |
This operation retrieves the built-in policy set definition with the given name. |
list(Policy |
This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. |
list |
This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}. |
list |
This operation retrieves a list of all the policy set definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. |
Method Details
createOrUpdate(string, PolicySetDefinition, PolicySetDefinitionsCreateOrUpdateOptionalParams)
This operation creates or updates a policy set definition in the given subscription with the given name.
function createOrUpdate(policySetDefinitionName: string, parameters: PolicySetDefinition, options?: PolicySetDefinitionsCreateOrUpdateOptionalParams): Promise<PolicySetDefinition>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to create.
- parameters
- PolicySetDefinition
The policy set definition properties.
The options parameters.
Returns
Promise<PolicySetDefinition>
createOrUpdateAtManagementGroup(string, string, PolicySetDefinition, PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams)
This operation creates or updates a policy set definition in the given management group with the given name.
function createOrUpdateAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, parameters: PolicySetDefinition, options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams): Promise<PolicySetDefinition>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to create.
- managementGroupId
-
string
The ID of the management group.
- parameters
- PolicySetDefinition
The policy set definition properties.
The options parameters.
Returns
Promise<PolicySetDefinition>
delete(string, PolicySetDefinitionsDeleteOptionalParams)
This operation deletes the policy set definition in the given subscription with the given name.
function delete(policySetDefinitionName: string, options?: PolicySetDefinitionsDeleteOptionalParams): Promise<void>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to delete.
The options parameters.
Returns
Promise<void>
deleteAtManagementGroup(string, string, PolicySetDefinitionsDeleteAtManagementGroupOptionalParams)
This operation deletes the policy set definition in the given management group with the given name.
function deleteAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams): Promise<void>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to delete.
- managementGroupId
-
string
The ID of the management group.
The options parameters.
Returns
Promise<void>
get(string, PolicySetDefinitionsGetOptionalParams)
This operation retrieves the policy set definition in the given subscription with the given name.
function get(policySetDefinitionName: string, options?: PolicySetDefinitionsGetOptionalParams): Promise<PolicySetDefinition>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to get.
The options parameters.
Returns
Promise<PolicySetDefinition>
getAtManagementGroup(string, string, PolicySetDefinitionsGetAtManagementGroupOptionalParams)
This operation retrieves the policy set definition in the given management group with the given name.
function getAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams): Promise<PolicySetDefinition>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to get.
- managementGroupId
-
string
The ID of the management group.
The options parameters.
Returns
Promise<PolicySetDefinition>
getBuiltIn(string, PolicySetDefinitionsGetBuiltInOptionalParams)
This operation retrieves the built-in policy set definition with the given name.
function getBuiltIn(policySetDefinitionName: string, options?: PolicySetDefinitionsGetBuiltInOptionalParams): Promise<PolicySetDefinition>
Parameters
- policySetDefinitionName
-
string
The name of the policy set definition to get.
The options parameters.
Returns
Promise<PolicySetDefinition>
list(PolicySetDefinitionsListOptionalParams)
This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
function list(options?: PolicySetDefinitionsListOptionalParams): PagedAsyncIterableIterator<PolicySetDefinition, PolicySetDefinition[], PageSettings>
Parameters
The options parameters.
Returns
listBuiltIn(PolicySetDefinitionsListBuiltInOptionalParams)
This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.
function listBuiltIn(options?: PolicySetDefinitionsListBuiltInOptionalParams): PagedAsyncIterableIterator<PolicySetDefinition, PolicySetDefinition[], PageSettings>
Parameters
The options parameters.
Returns
listByManagementGroup(string, PolicySetDefinitionsListByManagementGroupOptionalParams)
This operation retrieves a list of all the policy set definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
function listByManagementGroup(managementGroupId: string, options?: PolicySetDefinitionsListByManagementGroupOptionalParams): PagedAsyncIterableIterator<PolicySetDefinition, PolicySetDefinition[], PageSettings>
Parameters
- managementGroupId
-
string
The ID of the management group.
The options parameters.