PolicySetDefinitionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:policy_set_definitions> attribute.
Constructor
PolicySetDefinitionsOperations(*args, **kwargs)
Methods
| create_or_update |
This operation creates or updates a policy set definition in the given subscription with the given name. |
| create_or_update_at_management_group |
This operation creates or updates a policy set definition in the given management group with the given name. |
| delete |
This operation deletes the policy set definition in the given subscription with the given name. |
| delete_at_management_group |
This operation deletes the policy set definition in the given management group with the given name. |
| get |
This operation retrieves the policy set definition in the given subscription with the given name. |
| get_at_management_group |
This operation retrieves the policy set definition in the given management group with the given name. |
| get_built_in |
This operation retrieves the built-in policy set definition with the given name. |
| list |
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_built_in |
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_by_management_group |
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}. |
create_or_update
This operation creates or updates a policy set definition in the given subscription with the given name.
async create_or_update(policy_set_definition_name: str, parameters: _models.PolicySetDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PolicySetDefinition
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
|
parameters
Required
|
The policy set definition properties. Is one of the following types: PolicySetDefinition, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
create_or_update_at_management_group
This operation creates or updates a policy set definition in the given management group with the given name.
async create_or_update_at_management_group(management_group_id: str, policy_set_definition_name: str, parameters: _models.PolicySetDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PolicySetDefinition
Parameters
| Name | Description |
|---|---|
|
management_group_id
Required
|
The ID of the management group. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
|
parameters
Required
|
The policy set definition properties. Is one of the following types: PolicySetDefinition, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
This operation deletes the policy set definition in the given subscription with the given name.
async delete(policy_set_definition_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
delete_at_management_group
This operation deletes the policy set definition in the given management group with the given name.
async delete_at_management_group(management_group_id: str, policy_set_definition_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
management_group_id
Required
|
The ID of the management group. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get
This operation retrieves the policy set definition in the given subscription with the given name.
async get(policy_set_definition_name: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinition
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_at_management_group
This operation retrieves the policy set definition in the given management group with the given name.
async get_at_management_group(management_group_id: str, policy_set_definition_name: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinition
Parameters
| Name | Description |
|---|---|
|
management_group_id
Required
|
The ID of the management group. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_built_in
This operation retrieves the built-in policy set definition with the given name.
async get_built_in(policy_set_definition_name: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinition
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition to get. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
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(*, filter: str | None = None, expand: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncItemPaged[PolicySetDefinition]
Keyword-Only Parameters
| Name | Description |
|---|---|
|
filter
|
The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. 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, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. Default value is None. Default value: None
|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinition |
Exceptions
| Type | Description |
|---|---|
list_built_in
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_built_in(*, filter: str | None = None, expand: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncItemPaged[PolicySetDefinition]
Keyword-Only Parameters
| Name | Description |
|---|---|
|
filter
|
The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. 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, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. Default value is None. Default value: None
|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinition |
Exceptions
| Type | Description |
|---|---|
list_by_management_group
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}.
list_by_management_group(management_group_id: str, *, filter: str | None = None, expand: str | None = None, top: int | None = None, **kwargs: Any) -> AsyncItemPaged[PolicySetDefinition]
Parameters
| Name | Description |
|---|---|
|
management_group_id
Required
|
The ID of the management group. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
filter
|
The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. 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, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. Default value is None. Default value: None
|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinition |
Exceptions
| Type | Description |
|---|---|