1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. getPolicyPacks
Viewing docs for Pulumi Cloud v1.5.0
published on Monday, Oct 19, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.5.0
published on Monday, Oct 19, 2026 by Pulumi

    Get a list of all policy packs for an organization.

    Using getPolicyPacks

    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 getPolicyPacks(args: GetPolicyPacksArgs, opts?: InvokeOptions): Promise<GetPolicyPacksResult>
    function getPolicyPacksOutput(args: GetPolicyPacksOutputArgs, opts?: InvokeOutputOptions): Output<GetPolicyPacksResult>
    def get_policy_packs(organization_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPolicyPacksResult
    def get_policy_packs_output(organization_name: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetPolicyPacksResult]
    func GetPolicyPacks(ctx *Context, args *GetPolicyPacksArgs, opts ...InvokeOption) (*GetPolicyPacksResult, error)
    func GetPolicyPacksOutput(ctx *Context, args *GetPolicyPacksOutputArgs, opts ...InvokeOption) GetPolicyPacksResultOutput

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

    public static class GetPolicyPacks 
    {
        public static Task<GetPolicyPacksResult> InvokeAsync(GetPolicyPacksArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyPacksResult> Invoke(GetPolicyPacksInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyPacksResult> Invoke(GetPolicyPacksInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPolicyPacksResult> getPolicyPacks(GetPolicyPacksArgs args, InvokeOptions options)
    public static Output<GetPolicyPacksResult> getPolicyPacks(GetPolicyPacksArgs args, InvokeOptions options)
    public static Output<GetPolicyPacksResult> getPolicyPacks(GetPolicyPacksArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: pulumiservice:getPolicyPacks
      arguments:
        # arguments dictionary
    data "pulumiservice_get_policy_packs" "name" {
        # arguments
    }

    The following arguments are supported:

    OrganizationName string
    The name of the Pulumi organization.
    OrganizationName string
    The name of the Pulumi organization.
    organization_name string
    The name of the Pulumi organization.
    organizationName String
    The name of the Pulumi organization.
    organizationName string
    The name of the Pulumi organization.
    organization_name str
    The name of the Pulumi organization.
    organizationName String
    The name of the Pulumi organization.

    getPolicyPacks Result

    The following output properties are available:

    PolicyPacks List<Pulumi.PulumiService.Outputs.PolicyPackSummary>
    List of policy packs in the organization.
    PolicyPacks []PolicyPackSummary
    List of policy packs in the organization.
    policy_packs list(object)
    List of policy packs in the organization.
    policyPacks List<PolicyPackSummary>
    List of policy packs in the organization.
    policyPacks PolicyPackSummary[]
    List of policy packs in the organization.
    policy_packs Sequence[PolicyPackSummary]
    List of policy packs in the organization.
    policyPacks List<Property Map>
    List of policy packs in the organization.

    Supporting Types

    PolicyPackSummary

    DisplayName string
    The display name of the policy pack.
    Name string
    The name of the policy pack.
    VersionTags List<string>
    List of version tags for this policy pack.
    Versions List<int>
    List of version numbers for this policy pack.
    Publisher string
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    Source string
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    DisplayName string
    The display name of the policy pack.
    Name string
    The name of the policy pack.
    VersionTags []string
    List of version tags for this policy pack.
    Versions []int
    List of version numbers for this policy pack.
    Publisher string
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    Source string
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    display_name string
    The display name of the policy pack.
    name string
    The name of the policy pack.
    version_tags list(string)
    List of version tags for this policy pack.
    versions list(number)
    List of version numbers for this policy pack.
    publisher string
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    source string
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    displayName String
    The display name of the policy pack.
    name String
    The name of the policy pack.
    versionTags List<String>
    List of version tags for this policy pack.
    versions List<Integer>
    List of version numbers for this policy pack.
    publisher String
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    source String
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    displayName string
    The display name of the policy pack.
    name string
    The name of the policy pack.
    versionTags string[]
    List of version tags for this policy pack.
    versions number[]
    List of version numbers for this policy pack.
    publisher string
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    source string
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    display_name str
    The display name of the policy pack.
    name str
    The name of the policy pack.
    version_tags Sequence[str]
    List of version tags for this policy pack.
    versions Sequence[int]
    List of version numbers for this policy pack.
    publisher str
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    source str
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.
    displayName String
    The display name of the policy pack.
    name String
    The name of the policy pack.
    versionTags List<String>
    List of version tags for this policy pack.
    versions List<Number>
    List of version numbers for this policy pack.
    publisher String
    The organization or user that published the policy pack. pulumi for Pulumi-published packs, otherwise the publishing organization's name. Omitted when the provider could not determine registry metadata for this pack.
    source String
    Where the policy pack is hosted in the Pulumi Registry: pulumi for packs published by Pulumi (for example cis-aws), private for packs published by an organization. Omitted when the provider could not determine registry metadata for this pack.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.5.0
    published on Monday, Oct 19, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial