1. Packages
  2. Azure Native
  3. API Docs
  4. policyinsights
  5. getRemediationAtResourceGroup
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.policyinsights.getRemediationAtResourceGroup

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Gets an existing remediation at resource group scope. Azure REST API version: 2021-10-01.

    Other available API versions: 2018-07-01-preview, 2024-10-01.

    Using getRemediationAtResourceGroup

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRemediationAtResourceGroup(args: GetRemediationAtResourceGroupArgs, opts?: InvokeOptions): Promise<GetRemediationAtResourceGroupResult>
    function getRemediationAtResourceGroupOutput(args: GetRemediationAtResourceGroupOutputArgs, opts?: InvokeOptions): Output<GetRemediationAtResourceGroupResult>
    def get_remediation_at_resource_group(remediation_name: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetRemediationAtResourceGroupResult
    def get_remediation_at_resource_group_output(remediation_name: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetRemediationAtResourceGroupResult]
    func LookupRemediationAtResourceGroup(ctx *Context, args *LookupRemediationAtResourceGroupArgs, opts ...InvokeOption) (*LookupRemediationAtResourceGroupResult, error)
    func LookupRemediationAtResourceGroupOutput(ctx *Context, args *LookupRemediationAtResourceGroupOutputArgs, opts ...InvokeOption) LookupRemediationAtResourceGroupResultOutput

    > Note: This function is named LookupRemediationAtResourceGroup in the Go SDK.

    public static class GetRemediationAtResourceGroup 
    {
        public static Task<GetRemediationAtResourceGroupResult> InvokeAsync(GetRemediationAtResourceGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetRemediationAtResourceGroupResult> Invoke(GetRemediationAtResourceGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRemediationAtResourceGroupResult> getRemediationAtResourceGroup(GetRemediationAtResourceGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:policyinsights:getRemediationAtResourceGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RemediationName string
    The name of the remediation.
    ResourceGroupName string
    Resource group name.
    RemediationName string
    The name of the remediation.
    ResourceGroupName string
    Resource group name.
    remediationName String
    The name of the remediation.
    resourceGroupName String
    Resource group name.
    remediationName string
    The name of the remediation.
    resourceGroupName string
    Resource group name.
    remediation_name str
    The name of the remediation.
    resource_group_name str
    Resource group name.
    remediationName String
    The name of the remediation.
    resourceGroupName String
    Resource group name.

    getRemediationAtResourceGroup Result

    The following output properties are available:

    CorrelationId string
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    CreatedOn string
    The time at which the remediation was created.
    DeploymentStatus Pulumi.AzureNative.PolicyInsights.Outputs.RemediationDeploymentSummaryResponse
    The deployment status summary for all deployments created by the remediation.
    Id string
    The ID of the remediation.
    LastUpdatedOn string
    The time at which the remediation was last updated.
    Name string
    The name of the remediation.
    ProvisioningState string
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    StatusMessage string
    The remediation status message. Provides additional details regarding the state of the remediation.
    SystemData Pulumi.AzureNative.PolicyInsights.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the remediation.
    FailureThreshold Pulumi.AzureNative.PolicyInsights.Outputs.RemediationPropertiesResponseFailureThreshold
    The remediation failure threshold settings
    Filters Pulumi.AzureNative.PolicyInsights.Outputs.RemediationFiltersResponse
    The filters that will be applied to determine which resources to remediate.
    ParallelDeployments int
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    PolicyAssignmentId string
    The resource ID of the policy assignment that should be remediated.
    PolicyDefinitionReferenceId string
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    ResourceCount int
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    ResourceDiscoveryMode string
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
    CorrelationId string
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    CreatedOn string
    The time at which the remediation was created.
    DeploymentStatus RemediationDeploymentSummaryResponse
    The deployment status summary for all deployments created by the remediation.
    Id string
    The ID of the remediation.
    LastUpdatedOn string
    The time at which the remediation was last updated.
    Name string
    The name of the remediation.
    ProvisioningState string
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    StatusMessage string
    The remediation status message. Provides additional details regarding the state of the remediation.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the remediation.
    FailureThreshold RemediationPropertiesResponseFailureThreshold
    The remediation failure threshold settings
    Filters RemediationFiltersResponse
    The filters that will be applied to determine which resources to remediate.
    ParallelDeployments int
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    PolicyAssignmentId string
    The resource ID of the policy assignment that should be remediated.
    PolicyDefinitionReferenceId string
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    ResourceCount int
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    ResourceDiscoveryMode string
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
    correlationId String
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    createdOn String
    The time at which the remediation was created.
    deploymentStatus RemediationDeploymentSummaryResponse
    The deployment status summary for all deployments created by the remediation.
    id String
    The ID of the remediation.
    lastUpdatedOn String
    The time at which the remediation was last updated.
    name String
    The name of the remediation.
    provisioningState String
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    statusMessage String
    The remediation status message. Provides additional details regarding the state of the remediation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the remediation.
    failureThreshold RemediationPropertiesResponseFailureThreshold
    The remediation failure threshold settings
    filters RemediationFiltersResponse
    The filters that will be applied to determine which resources to remediate.
    parallelDeployments Integer
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    policyAssignmentId String
    The resource ID of the policy assignment that should be remediated.
    policyDefinitionReferenceId String
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    resourceCount Integer
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    resourceDiscoveryMode String
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
    correlationId string
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    createdOn string
    The time at which the remediation was created.
    deploymentStatus RemediationDeploymentSummaryResponse
    The deployment status summary for all deployments created by the remediation.
    id string
    The ID of the remediation.
    lastUpdatedOn string
    The time at which the remediation was last updated.
    name string
    The name of the remediation.
    provisioningState string
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    statusMessage string
    The remediation status message. Provides additional details regarding the state of the remediation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the remediation.
    failureThreshold RemediationPropertiesResponseFailureThreshold
    The remediation failure threshold settings
    filters RemediationFiltersResponse
    The filters that will be applied to determine which resources to remediate.
    parallelDeployments number
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    policyAssignmentId string
    The resource ID of the policy assignment that should be remediated.
    policyDefinitionReferenceId string
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    resourceCount number
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    resourceDiscoveryMode string
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
    correlation_id str
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    created_on str
    The time at which the remediation was created.
    deployment_status RemediationDeploymentSummaryResponse
    The deployment status summary for all deployments created by the remediation.
    id str
    The ID of the remediation.
    last_updated_on str
    The time at which the remediation was last updated.
    name str
    The name of the remediation.
    provisioning_state str
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    status_message str
    The remediation status message. Provides additional details regarding the state of the remediation.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the remediation.
    failure_threshold RemediationPropertiesResponseFailureThreshold
    The remediation failure threshold settings
    filters RemediationFiltersResponse
    The filters that will be applied to determine which resources to remediate.
    parallel_deployments int
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    policy_assignment_id str
    The resource ID of the policy assignment that should be remediated.
    policy_definition_reference_id str
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    resource_count int
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    resource_discovery_mode str
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
    correlationId String
    The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
    createdOn String
    The time at which the remediation was created.
    deploymentStatus Property Map
    The deployment status summary for all deployments created by the remediation.
    id String
    The ID of the remediation.
    lastUpdatedOn String
    The time at which the remediation was last updated.
    name String
    The name of the remediation.
    provisioningState String
    The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
    statusMessage String
    The remediation status message. Provides additional details regarding the state of the remediation.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the remediation.
    failureThreshold Property Map
    The remediation failure threshold settings
    filters Property Map
    The filters that will be applied to determine which resources to remediate.
    parallelDeployments Number
    Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
    policyAssignmentId String
    The resource ID of the policy assignment that should be remediated.
    policyDefinitionReferenceId String
    The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
    resourceCount Number
    Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
    resourceDiscoveryMode String
    The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.

    Supporting Types

    RemediationDeploymentSummaryResponse

    FailedDeployments int
    The number of deployments required by the remediation that have failed.
    SuccessfulDeployments int
    The number of deployments required by the remediation that have succeeded.
    TotalDeployments int
    The number of deployments required by the remediation.
    FailedDeployments int
    The number of deployments required by the remediation that have failed.
    SuccessfulDeployments int
    The number of deployments required by the remediation that have succeeded.
    TotalDeployments int
    The number of deployments required by the remediation.
    failedDeployments Integer
    The number of deployments required by the remediation that have failed.
    successfulDeployments Integer
    The number of deployments required by the remediation that have succeeded.
    totalDeployments Integer
    The number of deployments required by the remediation.
    failedDeployments number
    The number of deployments required by the remediation that have failed.
    successfulDeployments number
    The number of deployments required by the remediation that have succeeded.
    totalDeployments number
    The number of deployments required by the remediation.
    failed_deployments int
    The number of deployments required by the remediation that have failed.
    successful_deployments int
    The number of deployments required by the remediation that have succeeded.
    total_deployments int
    The number of deployments required by the remediation.
    failedDeployments Number
    The number of deployments required by the remediation that have failed.
    successfulDeployments Number
    The number of deployments required by the remediation that have succeeded.
    totalDeployments Number
    The number of deployments required by the remediation.

    RemediationFiltersResponse

    Locations List<string>
    The resource locations that will be remediated.
    Locations []string
    The resource locations that will be remediated.
    locations List<String>
    The resource locations that will be remediated.
    locations string[]
    The resource locations that will be remediated.
    locations Sequence[str]
    The resource locations that will be remediated.
    locations List<String>
    The resource locations that will be remediated.

    RemediationPropertiesResponseFailureThreshold

    Percentage double
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
    Percentage float64
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
    percentage Double
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
    percentage number
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
    percentage float
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
    percentage Number
    A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi