1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getAccountGroups
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getAccountGroups

Explore with Pulumi AI

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    Lists account groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getAccountGroups({});
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_account_groups()
    
    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.GetAccountGroups(ctx, &prismacloud.GetAccountGroupsArgs{}, 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.GetAccountGroups.Invoke();
    
    });
    
    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.GetAccountGroupsArgs;
    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.getAccountGroups();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAccountGroups
          arguments: {}
    

    Using getAccountGroups

    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 getAccountGroups(args: GetAccountGroupsArgs, opts?: InvokeOptions): Promise<GetAccountGroupsResult>
    function getAccountGroupsOutput(args: GetAccountGroupsOutputArgs, opts?: InvokeOptions): Output<GetAccountGroupsResult>
    def get_account_groups(id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAccountGroupsResult
    def get_account_groups_output(id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAccountGroupsResult]
    func GetAccountGroups(ctx *Context, args *GetAccountGroupsArgs, opts ...InvokeOption) (*GetAccountGroupsResult, error)
    func GetAccountGroupsOutput(ctx *Context, args *GetAccountGroupsOutputArgs, opts ...InvokeOption) GetAccountGroupsResultOutput

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

    public static class GetAccountGroups 
    {
        public static Task<GetAccountGroupsResult> InvokeAsync(GetAccountGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountGroupsResult> Invoke(GetAccountGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountGroupsResult> getAccountGroups(GetAccountGroupsArgs args, InvokeOptions options)
    public static Output<GetAccountGroupsResult> getAccountGroups(GetAccountGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getAccountGroups:getAccountGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getAccountGroups Result

    The following output properties are available:

    Id string
    Listings List<GetAccountGroupsListing>
    List of accounts, as defined below.
    Total double
    (int) Total number of account groups.
    Id string
    Listings []GetAccountGroupsListing
    List of accounts, as defined below.
    Total float64
    (int) Total number of account groups.
    id String
    listings List<GetAccountGroupsListing>
    List of accounts, as defined below.
    total Double
    (int) Total number of account groups.
    id string
    listings GetAccountGroupsListing[]
    List of accounts, as defined below.
    total number
    (int) Total number of account groups.
    id str
    listings Sequence[GetAccountGroupsListing]
    List of accounts, as defined below.
    total float
    (int) Total number of account groups.
    id String
    listings List<Property Map>
    List of accounts, as defined below.
    total Number
    (int) Total number of account groups.

    Supporting Types

    GetAccountGroupsListing

    Accounts List<GetAccountGroupsListingAccount>
    Associated cloud accounts spec, as defined below.
    AlertRules List<GetAccountGroupsListingAlertRule>
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    GroupId string
    Parent account group ID.
    Name string
    Parent account group name.
    ParentInfos List<GetAccountGroupsListingParentInfo>
    Parent account group info spec, as defined below.
    Accounts []GetAccountGroupsListingAccount
    Associated cloud accounts spec, as defined below.
    AlertRules []GetAccountGroupsListingAlertRule
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    GroupId string
    Parent account group ID.
    Name string
    Parent account group name.
    ParentInfos []GetAccountGroupsListingParentInfo
    Parent account group info spec, as defined below.
    accounts List<GetAccountGroupsListingAccount>
    Associated cloud accounts spec, as defined below.
    alertRules List<GetAccountGroupsListingAlertRule>
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    groupId String
    Parent account group ID.
    name String
    Parent account group name.
    parentInfos List<GetAccountGroupsListingParentInfo>
    Parent account group info spec, as defined below.
    accounts GetAccountGroupsListingAccount[]
    Associated cloud accounts spec, as defined below.
    alertRules GetAccountGroupsListingAlertRule[]
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    groupId string
    Parent account group ID.
    name string
    Parent account group name.
    parentInfos GetAccountGroupsListingParentInfo[]
    Parent account group info spec, as defined below.
    accounts Sequence[GetAccountGroupsListingAccount]
    Associated cloud accounts spec, as defined below.
    alert_rules Sequence[GetAccountGroupsListingAlertRule]
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    group_id str
    Parent account group ID.
    name str
    Parent account group name.
    parent_infos Sequence[GetAccountGroupsListingParentInfo]
    Parent account group info spec, as defined below.
    accounts List<Property Map>
    Associated cloud accounts spec, as defined below.
    alertRules List<Property Map>
    Singly associated rules which cannot exist in the system without the account group spec, as defined below.
    groupId String
    Parent account group ID.
    name String
    Parent account group name.
    parentInfos List<Property Map>
    Parent account group info spec, as defined below.

    GetAccountGroupsListingAccount

    AccountId string
    Associated cloud account ID.
    AccountType string
    Associated cloud account type.
    Name string
    Parent account group name.
    AccountId string
    Associated cloud account ID.
    AccountType string
    Associated cloud account type.
    Name string
    Parent account group name.
    accountId String
    Associated cloud account ID.
    accountType String
    Associated cloud account type.
    name String
    Parent account group name.
    accountId string
    Associated cloud account ID.
    accountType string
    Associated cloud account type.
    name string
    Parent account group name.
    account_id str
    Associated cloud account ID.
    account_type str
    Associated cloud account type.
    name str
    Parent account group name.
    accountId String
    Associated cloud account ID.
    accountType String
    Associated cloud account type.
    name String
    Parent account group name.

    GetAccountGroupsListingAlertRule

    AlertId string
    The alert ID.
    Name string
    Parent account group name.
    AlertId string
    The alert ID.
    Name string
    Parent account group name.
    alertId String
    The alert ID.
    name String
    Parent account group name.
    alertId string
    The alert ID.
    name string
    Parent account group name.
    alert_id str
    The alert ID.
    name str
    Parent account group name.
    alertId String
    The alert ID.
    name String
    Parent account group name.

    GetAccountGroupsListingParentInfo

    AutoCreated bool
    (bool) Boolean to indicate if account group is automatically created.
    GroupId string
    Parent account group ID.
    Name string
    Parent account group name.
    AutoCreated bool
    (bool) Boolean to indicate if account group is automatically created.
    GroupId string
    Parent account group ID.
    Name string
    Parent account group name.
    autoCreated Boolean
    (bool) Boolean to indicate if account group is automatically created.
    groupId String
    Parent account group ID.
    name String
    Parent account group name.
    autoCreated boolean
    (bool) Boolean to indicate if account group is automatically created.
    groupId string
    Parent account group ID.
    name string
    Parent account group name.
    auto_created bool
    (bool) Boolean to indicate if account group is automatically created.
    group_id str
    Parent account group ID.
    name str
    Parent account group name.
    autoCreated Boolean
    (bool) Boolean to indicate if account group is automatically created.
    groupId String
    Parent account group ID.
    name String
    Parent account group name.

    Package Details

    Repository
    prismacloud paloaltonetworks/terraform-provider-prismacloud
    License
    Notes
    This Pulumi package is based on the prismacloud Terraform Provider.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks