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

prismacloud.getAccountGroup

Explore with Pulumi AI

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

    Retrieves account group information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getAccountGroup({
        name: "myGroup",
    });
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_account_group(name="myGroup")
    
    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.LookupAccountGroup(ctx, &prismacloud.LookupAccountGroupArgs{
    			Name: pulumi.StringRef("myGroup"),
    		}, 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.GetAccountGroup.Invoke(new()
        {
            Name = "myGroup",
        });
    
    });
    
    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.GetAccountGroupArgs;
    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.getAccountGroup(GetAccountGroupArgs.builder()
                .name("myGroup")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAccountGroup
          arguments:
            name: myGroup
    

    Using getAccountGroup

    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 getAccountGroup(args: GetAccountGroupArgs, opts?: InvokeOptions): Promise<GetAccountGroupResult>
    function getAccountGroupOutput(args: GetAccountGroupOutputArgs, opts?: InvokeOptions): Output<GetAccountGroupResult>
    def get_account_group(group_id: Optional[str] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAccountGroupResult
    def get_account_group_output(group_id: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAccountGroupResult]
    func LookupAccountGroup(ctx *Context, args *LookupAccountGroupArgs, opts ...InvokeOption) (*LookupAccountGroupResult, error)
    func LookupAccountGroupOutput(ctx *Context, args *LookupAccountGroupOutputArgs, opts ...InvokeOption) LookupAccountGroupResultOutput

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

    public static class GetAccountGroup 
    {
        public static Task<GetAccountGroupResult> InvokeAsync(GetAccountGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountGroupResult> Invoke(GetAccountGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountGroupResult> getAccountGroup(GetAccountGroupArgs args, InvokeOptions options)
    public static Output<GetAccountGroupResult> getAccountGroup(GetAccountGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getAccountGroup:getAccountGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GroupId string
    Account group ID.
    Id string
    Name string
    Name of the account group.
    GroupId string
    Account group ID.
    Id string
    Name string
    Name of the account group.
    groupId String
    Account group ID.
    id String
    name String
    Name of the account group.
    groupId string
    Account group ID.
    id string
    name string
    Name of the account group.
    group_id str
    Account group ID.
    id str
    name str
    Name of the account group.
    groupId String
    Account group ID.
    id String
    name String
    Name of the account group.

    getAccountGroup Result

    The following output properties are available:

    AccountIds List<string>
    List of cloud account IDs.
    ChildGroupIds List<string>
    List of child account group IDs.
    Description string
    Description.
    GroupId string
    Id string
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Name string
    AccountIds []string
    List of cloud account IDs.
    ChildGroupIds []string
    List of child account group IDs.
    Description string
    Description.
    GroupId string
    Id string
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Name string
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    groupId String
    id String
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    name String
    accountIds string[]
    List of cloud account IDs.
    childGroupIds string[]
    List of child account group IDs.
    description string
    Description.
    groupId string
    id string
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    name string
    account_ids Sequence[str]
    List of cloud account IDs.
    child_group_ids Sequence[str]
    List of child account group IDs.
    description str
    Description.
    group_id str
    id str
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    name str
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    groupId String
    id String
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    name String

    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