Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
oci.FleetAppsManagement.getCompliancePolicyRule
Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
This data source provides details about a specific Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Gets information about a compliance policy rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCompliancePolicyRule = oci.FleetAppsManagement.getCompliancePolicyRule({
compliancePolicyRuleId: testCompliancePolicyRuleOciFleetAppsManagementCompliancePolicyRule.id,
});
import pulumi
import pulumi_oci as oci
test_compliance_policy_rule = oci.FleetAppsManagement.get_compliance_policy_rule(compliance_policy_rule_id=test_compliance_policy_rule_oci_fleet_apps_management_compliance_policy_rule["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.GetCompliancePolicyRule(ctx, &fleetappsmanagement.GetCompliancePolicyRuleArgs{
CompliancePolicyRuleId: testCompliancePolicyRuleOciFleetAppsManagementCompliancePolicyRule.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCompliancePolicyRule = Oci.FleetAppsManagement.GetCompliancePolicyRule.Invoke(new()
{
CompliancePolicyRuleId = testCompliancePolicyRuleOciFleetAppsManagementCompliancePolicyRule.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetCompliancePolicyRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testCompliancePolicyRule = FleetAppsManagementFunctions.getCompliancePolicyRule(GetCompliancePolicyRuleArgs.builder()
.compliancePolicyRuleId(testCompliancePolicyRuleOciFleetAppsManagementCompliancePolicyRule.id())
.build());
}
}
variables:
testCompliancePolicyRule:
fn::invoke:
function: oci:FleetAppsManagement:getCompliancePolicyRule
arguments:
compliancePolicyRuleId: ${testCompliancePolicyRuleOciFleetAppsManagementCompliancePolicyRule.id}
Using getCompliancePolicyRule
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 getCompliancePolicyRule(args: GetCompliancePolicyRuleArgs, opts?: InvokeOptions): Promise<GetCompliancePolicyRuleResult>
function getCompliancePolicyRuleOutput(args: GetCompliancePolicyRuleOutputArgs, opts?: InvokeOptions): Output<GetCompliancePolicyRuleResult>def get_compliance_policy_rule(compliance_policy_rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCompliancePolicyRuleResult
def get_compliance_policy_rule_output(compliance_policy_rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCompliancePolicyRuleResult]func LookupCompliancePolicyRule(ctx *Context, args *LookupCompliancePolicyRuleArgs, opts ...InvokeOption) (*LookupCompliancePolicyRuleResult, error)
func LookupCompliancePolicyRuleOutput(ctx *Context, args *LookupCompliancePolicyRuleOutputArgs, opts ...InvokeOption) LookupCompliancePolicyRuleResultOutput> Note: This function is named LookupCompliancePolicyRule in the Go SDK.
public static class GetCompliancePolicyRule
{
public static Task<GetCompliancePolicyRuleResult> InvokeAsync(GetCompliancePolicyRuleArgs args, InvokeOptions? opts = null)
public static Output<GetCompliancePolicyRuleResult> Invoke(GetCompliancePolicyRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCompliancePolicyRuleResult> getCompliancePolicyRule(GetCompliancePolicyRuleArgs args, InvokeOptions options)
public static Output<GetCompliancePolicyRuleResult> getCompliancePolicyRule(GetCompliancePolicyRuleArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getCompliancePolicyRule:getCompliancePolicyRule
arguments:
# arguments dictionaryThe following arguments are supported:
- Compliance
Policy stringRule Id - unique CompliancePolicyRule identifier.
- Compliance
Policy stringRule Id - unique CompliancePolicyRule identifier.
- compliance
Policy StringRule Id - unique CompliancePolicyRule identifier.
- compliance
Policy stringRule Id - unique CompliancePolicyRule identifier.
- compliance_
policy_ strrule_ id - unique CompliancePolicyRule identifier.
- compliance
Policy StringRule Id - unique CompliancePolicyRule identifier.
getCompliancePolicyRule Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy.
- Compliance
Policy stringRule Id - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Grace
Period string - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Id string
- Unique OCID of the CompliancePolicyRule.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Patch
Selections List<GetCompliance Policy Rule Patch Selection> - Patch Selection Details
- Patch
Type List<string>Ids - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Versions List<GetCompliance Policy Rule Product Version> - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Severities List<string>
- Severity to which this CompliancePolicyRule applies.
- State string
- The current state of the CompliancePolicyRule.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- Compliance
Policy stringId - Unique OCID of the CompliancePolicy.
- Compliance
Policy stringRule Id - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Grace
Period string - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- Id string
- Unique OCID of the CompliancePolicyRule.
- Lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Patch
Selections []GetCompliance Policy Rule Patch Selection - Patch Selection Details
- Patch
Type []stringIds - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- Product
Versions []GetCompliance Policy Rule Product Version - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- Severities []string
- Severity to which this CompliancePolicyRule applies.
- State string
- The current state of the CompliancePolicyRule.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy.
- compliance
Policy StringRule Id - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - grace
Period String - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- id String
- Unique OCID of the CompliancePolicyRule.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selections List<GetCompliance Policy Rule Patch Selection> - Patch Selection Details
- patch
Type List<String>Ids - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Versions List<GetCompliance Policy Rule Product Version> - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities List<String>
- Severity to which this CompliancePolicyRule applies.
- state String
- The current state of the CompliancePolicyRule.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy stringId - Unique OCID of the CompliancePolicy.
- compliance
Policy stringRule Id - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - grace
Period string - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- id string
- Unique OCID of the CompliancePolicyRule.
- lifecycle
Details string - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selections GetCompliance Policy Rule Patch Selection[] - Patch Selection Details
- patch
Type string[]Ids - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Versions GetCompliance Policy Rule Product Version[] - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities string[]
- Severity to which this CompliancePolicyRule applies.
- state string
- The current state of the CompliancePolicyRule.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance_
policy_ strid - Unique OCID of the CompliancePolicy.
- compliance_
policy_ strrule_ id - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - grace_
period str - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- id str
- Unique OCID of the CompliancePolicyRule.
- lifecycle_
details str - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch_
selections Sequence[GetCompliance Policy Rule Patch Selection] - Patch Selection Details
- patch_
type_ Sequence[str]ids - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product_
versions Sequence[GetCompliance Policy Rule Product Version] - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities Sequence[str]
- Severity to which this CompliancePolicyRule applies.
- state str
- The current state of the CompliancePolicyRule.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the CompliancePolicyRule belongs to.
- compliance
Policy StringId - Unique OCID of the CompliancePolicy.
- compliance
Policy StringRule Id - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - grace
Period String - Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
- id String
- Unique OCID of the CompliancePolicyRule.
- lifecycle
Details String - A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- patch
Selections List<Property Map> - Patch Selection Details
- patch
Type List<String>Ids - PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
- product
Versions List<Property Map> - A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
- severities List<String>
- Severity to which this CompliancePolicyRule applies.
- state String
- The current state of the CompliancePolicyRule.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
GetCompliancePolicyRulePatchSelection
- Days
Since intRelease - Days passed since patch release.
- Patch
Level string - Patch Name.
- Patch
Name string - Patch Name.
- Selection
Type string - Selection type for the Patch.
- Days
Since intRelease - Days passed since patch release.
- Patch
Level string - Patch Name.
- Patch
Name string - Patch Name.
- Selection
Type string - Selection type for the Patch.
- days
Since IntegerRelease - Days passed since patch release.
- patch
Level String - Patch Name.
- patch
Name String - Patch Name.
- selection
Type String - Selection type for the Patch.
- days
Since numberRelease - Days passed since patch release.
- patch
Level string - Patch Name.
- patch
Name string - Patch Name.
- selection
Type string - Selection type for the Patch.
- days_
since_ intrelease - Days passed since patch release.
- patch_
level str - Patch Name.
- patch_
name str - Patch Name.
- selection_
type str - Selection type for the Patch.
- days
Since NumberRelease - Days passed since patch release.
- patch
Level String - Patch Name.
- patch
Name String - Patch Name.
- selection
Type String - Selection type for the Patch.
GetCompliancePolicyRuleProductVersion
- Is
Applicable boolFor All Higher Versions - Is rule applicable to all higher versions also
- Version string
- Product version the rule is applicable.
- Is
Applicable boolFor All Higher Versions - Is rule applicable to all higher versions also
- Version string
- Product version the rule is applicable.
- is
Applicable BooleanFor All Higher Versions - Is rule applicable to all higher versions also
- version String
- Product version the rule is applicable.
- is
Applicable booleanFor All Higher Versions - Is rule applicable to all higher versions also
- version string
- Product version the rule is applicable.
- is_
applicable_ boolfor_ all_ higher_ versions - Is rule applicable to all higher versions also
- version str
- Product version the rule is applicable.
- is
Applicable BooleanFor All Higher Versions - Is rule applicable to all higher versions also
- version String
- Product version the rule is applicable.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
