RemediationsOperations Class
RemediationsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectRemediationsOperations
Constructor
RemediationsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| cancel_at_management_group |
Cancels a remediation at management group scope. |
| cancel_at_resource |
Cancel a remediation at resource scope. |
| cancel_at_resource_group |
Cancels a remediation at resource group scope. |
| cancel_at_subscription |
Cancels a remediation at subscription scope. |
| create_or_update_at_management_group |
Creates or updates a remediation at management group scope. |
| create_or_update_at_resource |
Creates or updates a remediation at resource scope. |
| create_or_update_at_resource_group |
Creates or updates a remediation at resource group scope. |
| create_or_update_at_subscription |
Creates or updates a remediation at subscription scope. |
| delete_at_management_group |
Deletes an existing remediation at management group scope. |
| delete_at_resource |
Deletes an existing remediation at individual resource scope. |
| delete_at_resource_group |
Deletes an existing remediation at resource group scope. |
| delete_at_subscription |
Deletes an existing remediation at subscription scope. |
| get_at_management_group |
Gets an existing remediation at management group scope. |
| get_at_resource |
Gets an existing remediation at resource scope. |
| get_at_resource_group |
Gets an existing remediation at resource group scope. |
| get_at_subscription |
Gets an existing remediation at subscription scope. |
| list_deployments_at_management_group |
Gets all deployments for a remediation at management group scope. |
| list_deployments_at_resource |
Gets all deployments for a remediation at resource scope. |
| list_deployments_at_resource_group |
Gets all deployments for a remediation at resource group scope. |
| list_deployments_at_subscription |
Gets all deployments for a remediation at subscription scope. |
| list_for_management_group |
Gets all remediations for the management group. |
| list_for_resource |
Gets all remediations for a resource. |
| list_for_resource_group |
Gets all remediations for the subscription. |
| list_for_subscription |
Gets all remediations for the subscription. |
cancel_at_management_group
Cancels a remediation at management group scope.
cancel_at_management_group(management_group_id: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
cancel_at_resource
Cancel a remediation at resource scope.
cancel_at_resource(resource_id: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
cancel_at_resource_group
Cancels a remediation at resource group scope.
cancel_at_resource_group(resource_group_name: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
cancel_at_subscription
Cancels a remediation at subscription scope.
cancel_at_subscription(remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
create_or_update_at_management_group
Creates or updates a remediation at management group scope.
create_or_update_at_management_group(management_group_id: str, remediation_name: str, parameters: _models.Remediation, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
create_or_update_at_resource
Creates or updates a remediation at resource scope.
create_or_update_at_resource(resource_id: str, remediation_name: str, parameters: _models.Remediation, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
create_or_update_at_resource_group
Creates or updates a remediation at resource group scope.
create_or_update_at_resource_group(resource_group_name: str, remediation_name: str, parameters: _models.Remediation, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
create_or_update_at_subscription
Creates or updates a remediation at subscription scope.
create_or_update_at_subscription(remediation_name: str, parameters: _models.Remediation, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
delete_at_management_group
Deletes an existing remediation at management group scope.
delete_at_management_group(management_group_id: str, remediation_name: str, **kwargs: Any) -> Optional[_models.Remediation]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
delete_at_resource
Deletes an existing remediation at individual resource scope.
delete_at_resource(resource_id: str, remediation_name: str, **kwargs: Any) -> Optional[_models.Remediation]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
delete_at_resource_group
Deletes an existing remediation at resource group scope.
delete_at_resource_group(resource_group_name: str, remediation_name: str, **kwargs: Any) -> Optional[_models.Remediation]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
delete_at_subscription
Deletes an existing remediation at subscription scope.
delete_at_subscription(remediation_name: str, **kwargs: Any) -> Optional[_models.Remediation]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
get_at_management_group
Gets an existing remediation at management group scope.
get_at_management_group(management_group_id: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
get_at_resource
Gets an existing remediation at resource scope.
get_at_resource(resource_id: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
get_at_resource_group
Gets an existing remediation at resource group scope.
get_at_resource_group(resource_group_name: str, remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
get_at_subscription
Gets an existing remediation at subscription scope.
get_at_subscription(remediation_name: str, **kwargs: Any) -> _models.Remediation
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Remediation, or the result of cls(response)
Return type
Exceptions
list_deployments_at_management_group
Gets all deployments for a remediation at management group scope.
list_deployments_at_management_group(management_group_id: str, remediation_name: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationDeploymentsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationDeploymentsListResult or the result of cls(response)
Return type
Exceptions
list_deployments_at_resource
Gets all deployments for a remediation at resource scope.
list_deployments_at_resource(resource_id: str, remediation_name: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationDeploymentsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationDeploymentsListResult or the result of cls(response)
Return type
Exceptions
list_deployments_at_resource_group
Gets all deployments for a remediation at resource group scope.
list_deployments_at_resource_group(resource_group_name: str, remediation_name: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationDeploymentsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationDeploymentsListResult or the result of cls(response)
Return type
Exceptions
list_deployments_at_subscription
Gets all deployments for a remediation at subscription scope.
list_deployments_at_subscription(remediation_name: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationDeploymentsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationDeploymentsListResult or the result of cls(response)
Return type
Exceptions
list_for_management_group
Gets all remediations for the management group.
list_for_management_group(management_group_id: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationListResult or the result of cls(response)
Return type
Exceptions
list_for_resource
Gets all remediations for a resource.
list_for_resource(resource_id: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationListResult or the result of cls(response)
Return type
Exceptions
list_for_resource_group
Gets all remediations for the subscription.
list_for_resource_group(resource_group_name: str, query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationListResult or the result of cls(response)
Return type
Exceptions
list_for_subscription
Gets all remediations for the subscription.
list_for_subscription(query_options: Optional[_models.QueryOptions] = None, **kwargs: Any) -> Iterable[_models.RemediationListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RemediationListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.policyinsights.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\policyinsights\\models\\__init__.py'>
Feedback
Submit and view feedback for