prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getPolicy
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve information on a specific policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getPolicy({
name: "My Policy",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_policy(name="My Policy")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.LookupPolicy(ctx, &prismacloud.LookupPolicyArgs{
Name: pulumi.StringRef("My Policy"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = Prismacloud.GetPolicy.Invoke(new()
{
Name = "My Policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetPolicyArgs;
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 example = PrismacloudFunctions.getPolicy(GetPolicyArgs.builder()
.name("My Policy")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getPolicy
arguments:
name: My Policy
Using getPolicy
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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
def get_policy(id: Optional[str] = None,
name: Optional[str] = None,
policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput
> Note: This function is named LookupPolicy
in the Go SDK.
public static class GetPolicy
{
public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getPolicy:getPolicy
arguments:
# arguments dictionary
The following arguments are supported:
getPolicy Result
The following output properties are available:
- Cloud
Type string - Cloud type
- Compliance
Metadatas List<GetPolicy Compliance Metadata> - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- Created
By string - Created by
- Created
On double - (int) Created on
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Enabled
- Id string
- Labels List<string>
- List of labels
- Last
Modified stringBy - Last modified by
- Last
Modified doubleOn - (int) Last modified on
- Name string
- Name
- Open
Alerts doubleCount - (int) Open alerts count
- Overridden bool
- (bool) Overridden
- Owner string
- Owner
- Policy
Category string - Policy category
- Policy
Class string - Policy class
- Policy
Id string - Policy ID
- Policy
Mode string - Policy mode
- Policy
Subtypes List<string> - Policy subtypes
- Policy
Type string - Policy type
- Recommendation string
- Recommendation.
- Remediable bool
- (bool) Is remediable or not
- Remediations
List<Get
Policy Remediation> - Model for remediation, as defined below
- Restrict
Alert boolDismissal - (bool) Restrict alert dismissal
- Rule
Last doubleModified On - (int) Rule last modified on
- Rules
List<Get
Policy Rule> - Model for the rule, as defined below
- Severity string
- Severity
- System
Default bool - (bool) If policy is a system default policy or not
- Cloud
Type string - Cloud type
- Compliance
Metadatas []GetPolicy Compliance Metadata - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- Created
By string - Created by
- Created
On float64 - (int) Created on
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Enabled
- Id string
- Labels []string
- List of labels
- Last
Modified stringBy - Last modified by
- Last
Modified float64On - (int) Last modified on
- Name string
- Name
- Open
Alerts float64Count - (int) Open alerts count
- Overridden bool
- (bool) Overridden
- Owner string
- Owner
- Policy
Category string - Policy category
- Policy
Class string - Policy class
- Policy
Id string - Policy ID
- Policy
Mode string - Policy mode
- Policy
Subtypes []string - Policy subtypes
- Policy
Type string - Policy type
- Recommendation string
- Recommendation.
- Remediable bool
- (bool) Is remediable or not
- Remediations
[]Get
Policy Remediation - Model for remediation, as defined below
- Restrict
Alert boolDismissal - (bool) Restrict alert dismissal
- Rule
Last float64Modified On - (int) Rule last modified on
- Rules
[]Get
Policy Rule - Model for the rule, as defined below
- Severity string
- Severity
- System
Default bool - (bool) If policy is a system default policy or not
- cloud
Type String - Cloud type
- compliance
Metadatas List<GetPolicy Compliance Metadata> - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- created
By String - Created by
- created
On Double - (int) Created on
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Enabled
- id String
- labels List<String>
- List of labels
- last
Modified StringBy - Last modified by
- last
Modified DoubleOn - (int) Last modified on
- name String
- Name
- open
Alerts DoubleCount - (int) Open alerts count
- overridden Boolean
- (bool) Overridden
- owner String
- Owner
- policy
Category String - Policy category
- policy
Class String - Policy class
- policy
Id String - Policy ID
- policy
Mode String - Policy mode
- policy
Subtypes List<String> - Policy subtypes
- policy
Type String - Policy type
- recommendation String
- Recommendation.
- remediable Boolean
- (bool) Is remediable or not
- remediations
List<Get
Policy Remediation> - Model for remediation, as defined below
- restrict
Alert BooleanDismissal - (bool) Restrict alert dismissal
- rule
Last DoubleModified On - (int) Rule last modified on
- rules
List<Get
Policy Rule> - Model for the rule, as defined below
- severity String
- Severity
- system
Default Boolean - (bool) If policy is a system default policy or not
- cloud
Type string - Cloud type
- compliance
Metadatas GetPolicy Compliance Metadata[] - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- created
By string - Created by
- created
On number - (int) Created on
- deleted boolean
- (bool) Deleted
- description string
- Description
- enabled boolean
- (bool) Enabled
- id string
- labels string[]
- List of labels
- last
Modified stringBy - Last modified by
- last
Modified numberOn - (int) Last modified on
- name string
- Name
- open
Alerts numberCount - (int) Open alerts count
- overridden boolean
- (bool) Overridden
- owner string
- Owner
- policy
Category string - Policy category
- policy
Class string - Policy class
- policy
Id string - Policy ID
- policy
Mode string - Policy mode
- policy
Subtypes string[] - Policy subtypes
- policy
Type string - Policy type
- recommendation string
- Recommendation.
- remediable boolean
- (bool) Is remediable or not
- remediations
Get
Policy Remediation[] - Model for remediation, as defined below
- restrict
Alert booleanDismissal - (bool) Restrict alert dismissal
- rule
Last numberModified On - (int) Rule last modified on
- rules
Get
Policy Rule[] - Model for the rule, as defined below
- severity string
- Severity
- system
Default boolean - (bool) If policy is a system default policy or not
- cloud_
type str - Cloud type
- compliance_
metadatas Sequence[GetPolicy Compliance Metadata] - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- created_
by str - Created by
- created_
on float - (int) Created on
- deleted bool
- (bool) Deleted
- description str
- Description
- enabled bool
- (bool) Enabled
- id str
- labels Sequence[str]
- List of labels
- last_
modified_ strby - Last modified by
- last_
modified_ floaton - (int) Last modified on
- name str
- Name
- open_
alerts_ floatcount - (int) Open alerts count
- overridden bool
- (bool) Overridden
- owner str
- Owner
- policy_
category str - Policy category
- policy_
class str - Policy class
- policy_
id str - Policy ID
- policy_
mode str - Policy mode
- policy_
subtypes Sequence[str] - Policy subtypes
- policy_
type str - Policy type
- recommendation str
- Recommendation.
- remediable bool
- (bool) Is remediable or not
- remediations
Sequence[Get
Policy Remediation] - Model for remediation, as defined below
- restrict_
alert_ booldismissal - (bool) Restrict alert dismissal
- rule_
last_ floatmodified_ on - (int) Rule last modified on
- rules
Sequence[Get
Policy Rule] - Model for the rule, as defined below
- severity str
- Severity
- system_
default bool - (bool) If policy is a system default policy or not
- cloud
Type String - Cloud type
- compliance
Metadatas List<Property Map> - List of compliance data. Each item has compliance standard, requirement, and/or section information, as defined below
- created
By String - Created by
- created
On Number - (int) Created on
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Enabled
- id String
- labels List<String>
- List of labels
- last
Modified StringBy - Last modified by
- last
Modified NumberOn - (int) Last modified on
- name String
- Name
- open
Alerts NumberCount - (int) Open alerts count
- overridden Boolean
- (bool) Overridden
- owner String
- Owner
- policy
Category String - Policy category
- policy
Class String - Policy class
- policy
Id String - Policy ID
- policy
Mode String - Policy mode
- policy
Subtypes List<String> - Policy subtypes
- policy
Type String - Policy type
- recommendation String
- Recommendation.
- remediable Boolean
- (bool) Is remediable or not
- remediations List<Property Map>
- Model for remediation, as defined below
- restrict
Alert BooleanDismissal - (bool) Restrict alert dismissal
- rule
Last NumberModified On - (int) Rule last modified on
- rules List<Property Map>
- Model for the rule, as defined below
- severity String
- Severity
- system
Default Boolean - (bool) If policy is a system default policy or not
Supporting Types
GetPolicyComplianceMetadata
- Compliance
Id string - Compliance Section UUID
- Custom
Assigned bool - (bool) Custom assigned
- Policy
Id string - Policy ID
- Requirement
Description string - Requirement description
- Requirement
Id string - Requirement ID
- Requirement
Name string - Requirement name
- Section
Description string - Section description
- Section
Id string - Section ID
- Section
Label string - Section label
- Standard
Description string - Compliance standard description
- Standard
Name string - Compliance standard name
- Compliance
Id string - Compliance Section UUID
- Custom
Assigned bool - (bool) Custom assigned
- Policy
Id string - Policy ID
- Requirement
Description string - Requirement description
- Requirement
Id string - Requirement ID
- Requirement
Name string - Requirement name
- Section
Description string - Section description
- Section
Id string - Section ID
- Section
Label string - Section label
- Standard
Description string - Compliance standard description
- Standard
Name string - Compliance standard name
- compliance
Id String - Compliance Section UUID
- custom
Assigned Boolean - (bool) Custom assigned
- policy
Id String - Policy ID
- requirement
Description String - Requirement description
- requirement
Id String - Requirement ID
- requirement
Name String - Requirement name
- section
Description String - Section description
- section
Id String - Section ID
- section
Label String - Section label
- standard
Description String - Compliance standard description
- standard
Name String - Compliance standard name
- compliance
Id string - Compliance Section UUID
- custom
Assigned boolean - (bool) Custom assigned
- policy
Id string - Policy ID
- requirement
Description string - Requirement description
- requirement
Id string - Requirement ID
- requirement
Name string - Requirement name
- section
Description string - Section description
- section
Id string - Section ID
- section
Label string - Section label
- standard
Description string - Compliance standard description
- standard
Name string - Compliance standard name
- compliance_
id str - Compliance Section UUID
- custom_
assigned bool - (bool) Custom assigned
- policy_
id str - Policy ID
- requirement_
description str - Requirement description
- requirement_
id str - Requirement ID
- requirement_
name str - Requirement name
- section_
description str - Section description
- section_
id str - Section ID
- section_
label str - Section label
- standard_
description str - Compliance standard description
- standard_
name str - Compliance standard name
- compliance
Id String - Compliance Section UUID
- custom
Assigned Boolean - (bool) Custom assigned
- policy
Id String - Policy ID
- requirement
Description String - Requirement description
- requirement
Id String - Requirement ID
- requirement
Name String - Requirement name
- section
Description String - Section description
- section
Id String - Section ID
- section
Label String - Section label
- standard
Description String - Compliance standard description
- standard
Name String - Compliance standard name
GetPolicyRemediation
- Actions
List<Get
Policy Remediation Action> - List of actions, as defined below
- Cli
Script stringJson Schema String - CLI script JSON schema
- Cli
Script stringTemplate - CLI script template
- Description string
- Description
- Template
Type string - Template type
- Actions
[]Get
Policy Remediation Action - List of actions, as defined below
- Cli
Script stringJson Schema String - CLI script JSON schema
- Cli
Script stringTemplate - CLI script template
- Description string
- Description
- Template
Type string - Template type
- actions
List<Get
Policy Remediation Action> - List of actions, as defined below
- cli
Script StringJson Schema String - CLI script JSON schema
- cli
Script StringTemplate - CLI script template
- description String
- Description
- template
Type String - Template type
- actions
Get
Policy Remediation Action[] - List of actions, as defined below
- cli
Script stringJson Schema String - CLI script JSON schema
- cli
Script stringTemplate - CLI script template
- description string
- Description
- template
Type string - Template type
- actions
Sequence[Get
Policy Remediation Action] - List of actions, as defined below
- cli_
script_ strjson_ schema_ string - CLI script JSON schema
- cli_
script_ strtemplate - CLI script template
- description str
- Description
- template_
type str - Template type
- actions List<Property Map>
- List of actions, as defined below
- cli
Script StringJson Schema String - CLI script JSON schema
- cli
Script StringTemplate - CLI script template
- description String
- Description
- template
Type String - Template type
GetPolicyRemediationAction
GetPolicyRule
- Api
Name string - API name
- Childrens
List<Get
Policy Rule Children> - Children description for build policy, as defined below
- Cloud
Account string - Cloud account
- Cloud
Type string - Cloud type
- Criteria string
- Criteria for build policy.
- Data
Criterias List<GetPolicy Rule Data Criteria> - Criteria for DLP Rule, as defined below
- Name string
- Policy name
- Parameters Dictionary<string, string>
- (map of strings) Parameters
- Resource
Id stringPath - Resource ID path
- Resource
Type string - Resource type
- Rule
Type string - Type of rule or RQL query
- Api
Name string - API name
- Childrens
[]Get
Policy Rule Children - Children description for build policy, as defined below
- Cloud
Account string - Cloud account
- Cloud
Type string - Cloud type
- Criteria string
- Criteria for build policy.
- Data
Criterias []GetPolicy Rule Data Criteria - Criteria for DLP Rule, as defined below
- Name string
- Policy name
- Parameters map[string]string
- (map of strings) Parameters
- Resource
Id stringPath - Resource ID path
- Resource
Type string - Resource type
- Rule
Type string - Type of rule or RQL query
- api
Name String - API name
- childrens
List<Get
Policy Rule Children> - Children description for build policy, as defined below
- cloud
Account String - Cloud account
- cloud
Type String - Cloud type
- criteria String
- Criteria for build policy.
- data
Criterias List<GetPolicy Rule Data Criteria> - Criteria for DLP Rule, as defined below
- name String
- Policy name
- parameters Map<String,String>
- (map of strings) Parameters
- resource
Id StringPath - Resource ID path
- resource
Type String - Resource type
- rule
Type String - Type of rule or RQL query
- api
Name string - API name
- childrens
Get
Policy Rule Children[] - Children description for build policy, as defined below
- cloud
Account string - Cloud account
- cloud
Type string - Cloud type
- criteria string
- Criteria for build policy.
- data
Criterias GetPolicy Rule Data Criteria[] - Criteria for DLP Rule, as defined below
- name string
- Policy name
- parameters {[key: string]: string}
- (map of strings) Parameters
- resource
Id stringPath - Resource ID path
- resource
Type string - Resource type
- rule
Type string - Type of rule or RQL query
- api_
name str - API name
- childrens
Sequence[Get
Policy Rule Children] - Children description for build policy, as defined below
- cloud_
account str - Cloud account
- cloud_
type str - Cloud type
- criteria str
- Criteria for build policy.
- data_
criterias Sequence[GetPolicy Rule Data Criteria] - Criteria for DLP Rule, as defined below
- name str
- Policy name
- parameters Mapping[str, str]
- (map of strings) Parameters
- resource_
id_ strpath - Resource ID path
- resource_
type str - Resource type
- rule_
type str - Type of rule or RQL query
- api
Name String - API name
- childrens List<Property Map>
- Children description for build policy, as defined below
- cloud
Account String - Cloud account
- cloud
Type String - Cloud type
- criteria String
- Criteria for build policy.
- data
Criterias List<Property Map> - Criteria for DLP Rule, as defined below
- name String
- Policy name
- parameters Map<String>
- (map of strings) Parameters
- resource
Id StringPath - Resource ID path
- resource
Type String - Resource type
- rule
Type String - Type of rule or RQL query
GetPolicyRuleChildren
- Criteria string
- Criteria for build policy.
- Metadata Dictionary<string, string>
- YAML string for code build policy.
- Recommendation string
- Recommendation.
- Type string
- Type of policy.
- Criteria string
- Criteria for build policy.
- Metadata map[string]string
- YAML string for code build policy.
- Recommendation string
- Recommendation.
- Type string
- Type of policy.
- criteria String
- Criteria for build policy.
- metadata Map<String,String>
- YAML string for code build policy.
- recommendation String
- Recommendation.
- type String
- Type of policy.
- criteria string
- Criteria for build policy.
- metadata {[key: string]: string}
- YAML string for code build policy.
- recommendation string
- Recommendation.
- type string
- Type of policy.
- criteria str
- Criteria for build policy.
- metadata Mapping[str, str]
- YAML string for code build policy.
- recommendation str
- Recommendation.
- type str
- Type of policy.
- criteria String
- Criteria for build policy.
- metadata Map<String>
- YAML string for code build policy.
- recommendation String
- Recommendation.
- type String
- Type of policy.
GetPolicyRuleDataCriteria
- Classification
Result string - Data Profile name required for DLP rule criteria
- Exposure string
- File exposure
- Extensions List<string>
- List of file extensions
- Classification
Result string - Data Profile name required for DLP rule criteria
- Exposure string
- File exposure
- Extensions []string
- List of file extensions
- classification
Result String - Data Profile name required for DLP rule criteria
- exposure String
- File exposure
- extensions List<String>
- List of file extensions
- classification
Result string - Data Profile name required for DLP rule criteria
- exposure string
- File exposure
- extensions string[]
- List of file extensions
- classification_
result str - Data Profile name required for DLP rule criteria
- exposure str
- File exposure
- extensions Sequence[str]
- List of file extensions
- classification
Result String - Data Profile name required for DLP rule criteria
- exposure String
- File exposure
- extensions List<String>
- List of file extensions
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks