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

prismacloud.AccountGroup

Explore with Pulumi AI

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

    Manage an account group.

    Create AccountGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountGroup(name: string, args?: AccountGroupArgs, opts?: CustomResourceOptions);
    @overload
    def AccountGroup(resource_name: str,
                     args: Optional[AccountGroupArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_group_id: Optional[str] = None,
                     account_ids: Optional[Sequence[str]] = None,
                     child_group_ids: Optional[Sequence[str]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None)
    func NewAccountGroup(ctx *Context, name string, args *AccountGroupArgs, opts ...ResourceOption) (*AccountGroup, error)
    public AccountGroup(string name, AccountGroupArgs? args = null, CustomResourceOptions? opts = null)
    public AccountGroup(String name, AccountGroupArgs args)
    public AccountGroup(String name, AccountGroupArgs args, CustomResourceOptions options)
    
    type: prismacloud:AccountGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AccountGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccountGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccountGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var accountGroupResource = new Prismacloud.AccountGroup("accountGroupResource", new()
    {
        AccountGroupId = "string",
        AccountIds = new[]
        {
            "string",
        },
        ChildGroupIds = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
    });
    
    example, err := prismacloud.NewAccountGroup(ctx, "accountGroupResource", &prismacloud.AccountGroupArgs{
    	AccountGroupId: pulumi.String("string"),
    	AccountIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ChildGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var accountGroupResource = new AccountGroup("accountGroupResource", AccountGroupArgs.builder()
        .accountGroupId("string")
        .accountIds("string")
        .childGroupIds("string")
        .description("string")
        .name("string")
        .build());
    
    account_group_resource = prismacloud.AccountGroup("accountGroupResource",
        account_group_id="string",
        account_ids=["string"],
        child_group_ids=["string"],
        description="string",
        name="string")
    
    const accountGroupResource = new prismacloud.AccountGroup("accountGroupResource", {
        accountGroupId: "string",
        accountIds: ["string"],
        childGroupIds: ["string"],
        description: "string",
        name: "string",
    });
    
    type: prismacloud:AccountGroup
    properties:
        accountGroupId: string
        accountIds:
            - string
        childGroupIds:
            - string
        description: string
        name: string
    

    AccountGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountGroup resource accepts the following input properties:

    AccountGroupId string
    AccountIds List<string>
    List of cloud account IDs.
    ChildGroupIds List<string>
    List of child account group IDs.
    Description string
    Description.
    Name string
    name of the group.
    AccountGroupId string
    AccountIds []string
    List of cloud account IDs.
    ChildGroupIds []string
    List of child account group IDs.
    Description string
    Description.
    Name string
    name of the group.
    accountGroupId String
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    name String
    name of the group.
    accountGroupId string
    accountIds string[]
    List of cloud account IDs.
    childGroupIds string[]
    List of child account group IDs.
    description string
    Description.
    name string
    name of the group.
    account_group_id str
    account_ids Sequence[str]
    List of cloud account IDs.
    child_group_ids Sequence[str]
    List of child account group IDs.
    description str
    Description.
    name str
    name of the group.
    accountGroupId String
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    name String
    name of the group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountGroup resource produces the following output properties:

    GroupId string
    Account group ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    GroupId string
    Account group ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    groupId String
    Account group ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    groupId string
    Account group ID.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    group_id str
    Account group ID.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    groupId String
    Account group ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.

    Look up Existing AccountGroup Resource

    Get an existing AccountGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountGroupState, opts?: CustomResourceOptions): AccountGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_group_id: Optional[str] = None,
            account_ids: Optional[Sequence[str]] = None,
            child_group_ids: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            group_id: Optional[str] = None,
            last_modified_by: Optional[str] = None,
            last_modified_ts: Optional[float] = None,
            name: Optional[str] = None) -> AccountGroup
    func GetAccountGroup(ctx *Context, name string, id IDInput, state *AccountGroupState, opts ...ResourceOption) (*AccountGroup, error)
    public static AccountGroup Get(string name, Input<string> id, AccountGroupState? state, CustomResourceOptions? opts = null)
    public static AccountGroup get(String name, Output<String> id, AccountGroupState state, CustomResourceOptions options)
    resources:  _:    type: prismacloud:AccountGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountGroupId string
    AccountIds List<string>
    List of cloud account IDs.
    ChildGroupIds List<string>
    List of child account group IDs.
    Description string
    Description.
    GroupId string
    Account group ID.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Name string
    name of the group.
    AccountGroupId string
    AccountIds []string
    List of cloud account IDs.
    ChildGroupIds []string
    List of child account group IDs.
    Description string
    Description.
    GroupId string
    Account group ID.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Name string
    name of the group.
    accountGroupId String
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    groupId String
    Account group ID.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    name String
    name of the group.
    accountGroupId string
    accountIds string[]
    List of cloud account IDs.
    childGroupIds string[]
    List of child account group IDs.
    description string
    Description.
    groupId string
    Account group ID.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    name string
    name of the group.
    account_group_id str
    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
    Account group ID.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    name str
    name of the group.
    accountGroupId String
    accountIds List<String>
    List of cloud account IDs.
    childGroupIds List<String>
    List of child account group IDs.
    description String
    Description.
    groupId String
    Account group ID.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    name String
    name of the group.

    Import

    Resources can be imported using the group ID:

    $ pulumi import prismacloud:index/accountGroup:AccountGroup example 11111111-2222-3333-4444-555555555555
    

    To learn more about importing existing cloud resources, see Importing resources.

    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