1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. getPolicyPack

This provider is currently in preview.

Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi

pulumiservice.getPolicyPack

Get Started
pulumiservice logo

This provider is currently in preview.

Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi

    Get details about a specific version of a policy pack.

    Using getPolicyPack

    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 getPolicyPack(args: GetPolicyPackArgs, opts?: InvokeOptions): Promise<GetPolicyPackResult>
    function getPolicyPackOutput(args: GetPolicyPackOutputArgs, opts?: InvokeOptions): Output<GetPolicyPackResult>
    def get_policy_pack(organization_name: Optional[str] = None,
                        policy_pack_name: Optional[str] = None,
                        version: Optional[int] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPolicyPackResult
    def get_policy_pack_output(organization_name: Optional[pulumi.Input[str]] = None,
                        policy_pack_name: Optional[pulumi.Input[str]] = None,
                        version: Optional[pulumi.Input[int]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPolicyPackResult]
    func GetPolicyPack(ctx *Context, args *GetPolicyPackArgs, opts ...InvokeOption) (*GetPolicyPackResult, error)
    func GetPolicyPackOutput(ctx *Context, args *GetPolicyPackOutputArgs, opts ...InvokeOption) GetPolicyPackResultOutput

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

    public static class GetPolicyPack 
    {
        public static Task<GetPolicyPackResult> InvokeAsync(GetPolicyPackArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyPackResult> Invoke(GetPolicyPackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyPackResult> getPolicyPack(GetPolicyPackArgs args, InvokeOptions options)
    public static Output<GetPolicyPackResult> getPolicyPack(GetPolicyPackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: pulumiservice:getPolicyPack
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationName string
    The name of the Pulumi organization.
    PolicyPackName string
    The name of the policy pack.
    Version int
    The version number of the policy pack. If not specified, returns the latest version.
    OrganizationName string
    The name of the Pulumi organization.
    PolicyPackName string
    The name of the policy pack.
    Version int
    The version number of the policy pack. If not specified, returns the latest version.
    organizationName String
    The name of the Pulumi organization.
    policyPackName String
    The name of the policy pack.
    version Integer
    The version number of the policy pack. If not specified, returns the latest version.
    organizationName string
    The name of the Pulumi organization.
    policyPackName string
    The name of the policy pack.
    version number
    The version number of the policy pack. If not specified, returns the latest version.
    organization_name str
    The name of the Pulumi organization.
    policy_pack_name str
    The name of the policy pack.
    version int
    The version number of the policy pack. If not specified, returns the latest version.
    organizationName String
    The name of the Pulumi organization.
    policyPackName String
    The name of the policy pack.
    version Number
    The version number of the policy pack. If not specified, returns the latest version.

    getPolicyPack Result

    The following output properties are available:

    DisplayName string
    The display name of the policy pack.
    Name string
    The name of the policy pack.
    Version int
    The version number.
    Config Dictionary<string, object>
    Configuration for the policy pack.
    Policies List<ImmutableDictionary<string, string>>
    List of policies in this pack.
    VersionTag string
    The version tag (if any).
    DisplayName string
    The display name of the policy pack.
    Name string
    The name of the policy pack.
    Version int
    The version number.
    Config map[string]interface{}
    Configuration for the policy pack.
    Policies []map[string]string
    List of policies in this pack.
    VersionTag string
    The version tag (if any).
    displayName String
    The display name of the policy pack.
    name String
    The name of the policy pack.
    version Integer
    The version number.
    config Map<String,Object>
    Configuration for the policy pack.
    policies List<Map<String,String>>
    List of policies in this pack.
    versionTag String
    The version tag (if any).
    displayName string
    The display name of the policy pack.
    name string
    The name of the policy pack.
    version number
    The version number.
    config {[key: string]: any}
    Configuration for the policy pack.
    policies {[key: string]: string}[]
    List of policies in this pack.
    versionTag string
    The version tag (if any).
    display_name str
    The display name of the policy pack.
    name str
    The name of the policy pack.
    version int
    The version number.
    config Mapping[str, Any]
    Configuration for the policy pack.
    policies Sequence[Mapping[str, str]]
    List of policies in this pack.
    version_tag str
    The version tag (if any).
    displayName String
    The display name of the policy pack.
    name String
    The name of the policy pack.
    version Number
    The version number.
    config Map<Any>
    Configuration for the policy pack.
    policies List<Map<String>>
    List of policies in this pack.
    versionTag String
    The version tag (if any).

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate