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

prismacloud.getCloudAccount

Explore with Pulumi AI

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

    Retrieve information on a specific cloud account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getCloudAccount({
        cloudType: "azure",
        name: "My Azure cloud account",
    });
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_cloud_account(cloud_type="azure",
        name="My Azure cloud account")
    
    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.LookupCloudAccount(ctx, &prismacloud.LookupCloudAccountArgs{
    			CloudType: "azure",
    			Name:      pulumi.StringRef("My Azure cloud account"),
    		}, 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.GetCloudAccount.Invoke(new()
        {
            CloudType = "azure",
            Name = "My Azure cloud account",
        });
    
    });
    
    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.GetCloudAccountArgs;
    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.getCloudAccount(GetCloudAccountArgs.builder()
                .cloudType("azure")
                .name("My Azure cloud account")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getCloudAccount
          arguments:
            cloudType: azure
            name: My Azure cloud account
    

    Using getCloudAccount

    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 getCloudAccount(args: GetCloudAccountArgs, opts?: InvokeOptions): Promise<GetCloudAccountResult>
    function getCloudAccountOutput(args: GetCloudAccountOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountResult>
    def get_cloud_account(account_id: Optional[str] = None,
                          cloud_type: Optional[str] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCloudAccountResult
    def get_cloud_account_output(account_id: Optional[pulumi.Input[str]] = None,
                          cloud_type: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountResult]
    func LookupCloudAccount(ctx *Context, args *LookupCloudAccountArgs, opts ...InvokeOption) (*LookupCloudAccountResult, error)
    func LookupCloudAccountOutput(ctx *Context, args *LookupCloudAccountOutputArgs, opts ...InvokeOption) LookupCloudAccountResultOutput

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

    public static class GetCloudAccount 
    {
        public static Task<GetCloudAccountResult> InvokeAsync(GetCloudAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAccountResult> Invoke(GetCloudAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAccountResult> getCloudAccount(GetCloudAccountArgs args, InvokeOptions options)
    public static Output<GetCloudAccountResult> getCloudAccount(GetCloudAccountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getCloudAccount:getCloudAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudType string
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    AccountId string
    Account ID; computed if this is not supplied.
    Id string
    Name string
    Cloud account name; computed if this is not supplied.
    CloudType string
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    AccountId string
    Account ID; computed if this is not supplied.
    Id string
    Name string
    Cloud account name; computed if this is not supplied.
    cloudType String
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    accountId String
    Account ID; computed if this is not supplied.
    id String
    name String
    Cloud account name; computed if this is not supplied.
    cloudType string
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    accountId string
    Account ID; computed if this is not supplied.
    id string
    name string
    Cloud account name; computed if this is not supplied.
    cloud_type str
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    account_id str
    Account ID; computed if this is not supplied.
    id str
    name str
    Cloud account name; computed if this is not supplied.
    cloudType String
    The cloud type. Valid values are aws, azure, gcp, or alibaba_cloud.
    accountId String
    Account ID; computed if this is not supplied.
    id String
    name String
    Cloud account name; computed if this is not supplied.

    getCloudAccount Result

    The following output properties are available:

    AccountId string
    Alibaba account ID.
    AlibabaClouds List<GetCloudAccountAlibabaCloud>
    Alibaba account type spec, defined below.
    Aws List<GetCloudAccountAw>
    AWS account type spec, defined below.
    Azures List<GetCloudAccountAzure>
    Azure account type spec, defined below.
    CloudType string
    Gcps List<GetCloudAccountGcp>
    GCP account type spec, defined below.
    Id string
    Name string
    Name to be used for the account on the Prisma Cloud platform.
    AccountId string
    Alibaba account ID.
    AlibabaClouds []GetCloudAccountAlibabaCloud
    Alibaba account type spec, defined below.
    Aws []GetCloudAccountAw
    AWS account type spec, defined below.
    Azures []GetCloudAccountAzure
    Azure account type spec, defined below.
    CloudType string
    Gcps []GetCloudAccountGcp
    GCP account type spec, defined below.
    Id string
    Name string
    Name to be used for the account on the Prisma Cloud platform.
    accountId String
    Alibaba account ID.
    alibabaClouds List<GetCloudAccountAlibabaCloud>
    Alibaba account type spec, defined below.
    aws List<GetCloudAccountAw>
    AWS account type spec, defined below.
    azures List<GetCloudAccountAzure>
    Azure account type spec, defined below.
    cloudType String
    gcps List<GetCloudAccountGcp>
    GCP account type spec, defined below.
    id String
    name String
    Name to be used for the account on the Prisma Cloud platform.
    accountId string
    Alibaba account ID.
    alibabaClouds GetCloudAccountAlibabaCloud[]
    Alibaba account type spec, defined below.
    aws GetCloudAccountAw[]
    AWS account type spec, defined below.
    azures GetCloudAccountAzure[]
    Azure account type spec, defined below.
    cloudType string
    gcps GetCloudAccountGcp[]
    GCP account type spec, defined below.
    id string
    name string
    Name to be used for the account on the Prisma Cloud platform.
    account_id str
    Alibaba account ID.
    alibaba_clouds Sequence[GetCloudAccountAlibabaCloud]
    Alibaba account type spec, defined below.
    aws Sequence[GetCloudAccountAw]
    AWS account type spec, defined below.
    azures Sequence[GetCloudAccountAzure]
    Azure account type spec, defined below.
    cloud_type str
    gcps Sequence[GetCloudAccountGcp]
    GCP account type spec, defined below.
    id str
    name str
    Name to be used for the account on the Prisma Cloud platform.
    accountId String
    Alibaba account ID.
    alibabaClouds List<Property Map>
    Alibaba account type spec, defined below.
    aws List<Property Map>
    AWS account type spec, defined below.
    azures List<Property Map>
    Azure account type spec, defined below.
    cloudType String
    gcps List<Property Map>
    GCP account type spec, defined below.
    id String
    name String
    Name to be used for the account on the Prisma Cloud platform.

    Supporting Types

    GetCloudAccountAlibabaCloud

    AccountId string
    Account ID; computed if this is not supplied.
    Enabled bool
    (bool) Whether or not the account is enabled.
    GroupIds List<string>
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    RamArn string
    Unique identifier for an Alibaba RAM role resource.
    AccountId string
    Account ID; computed if this is not supplied.
    Enabled bool
    (bool) Whether or not the account is enabled.
    GroupIds []string
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    RamArn string
    Unique identifier for an Alibaba RAM role resource.
    accountId String
    Account ID; computed if this is not supplied.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    ramArn String
    Unique identifier for an Alibaba RAM role resource.
    accountId string
    Account ID; computed if this is not supplied.
    enabled boolean
    (bool) Whether or not the account is enabled.
    groupIds string[]
    List of account IDs to which you are assigning this account.
    name string
    Cloud account name; computed if this is not supplied.
    ramArn string
    Unique identifier for an Alibaba RAM role resource.
    account_id str
    Account ID; computed if this is not supplied.
    enabled bool
    (bool) Whether or not the account is enabled.
    group_ids Sequence[str]
    List of account IDs to which you are assigning this account.
    name str
    Cloud account name; computed if this is not supplied.
    ram_arn str
    Unique identifier for an Alibaba RAM role resource.
    accountId String
    Account ID; computed if this is not supplied.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    ramArn String
    Unique identifier for an Alibaba RAM role resource.

    GetCloudAccountAw

    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    Enabled bool
    (bool) Whether or not the account is enabled.
    ExternalId string
    AWS account external ID.
    GroupIds List<string>
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    RoleArn string
    Unique identifier for an AWS resource (ARN).
    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    Enabled bool
    (bool) Whether or not the account is enabled.
    ExternalId string
    AWS account external ID.
    GroupIds []string
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    RoleArn string
    Unique identifier for an AWS resource (ARN).
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    enabled Boolean
    (bool) Whether or not the account is enabled.
    externalId String
    AWS account external ID.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode String
    roleArn String
    Unique identifier for an AWS resource (ARN).
    accountId string
    Account ID; computed if this is not supplied.
    accountType string
    enabled boolean
    (bool) Whether or not the account is enabled.
    externalId string
    AWS account external ID.
    groupIds string[]
    List of account IDs to which you are assigning this account.
    name string
    Cloud account name; computed if this is not supplied.
    protectionMode string
    roleArn string
    Unique identifier for an AWS resource (ARN).
    account_id str
    Account ID; computed if this is not supplied.
    account_type str
    enabled bool
    (bool) Whether or not the account is enabled.
    external_id str
    AWS account external ID.
    group_ids Sequence[str]
    List of account IDs to which you are assigning this account.
    name str
    Cloud account name; computed if this is not supplied.
    protection_mode str
    role_arn str
    Unique identifier for an AWS resource (ARN).
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    enabled Boolean
    (bool) Whether or not the account is enabled.
    externalId String
    AWS account external ID.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode String
    roleArn String
    Unique identifier for an AWS resource (ARN).

    GetCloudAccountAzure

    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    ClientId string
    Application ID registered with Active Directory.
    Enabled bool
    (bool) Whether or not the account is enabled.
    GroupIds List<string>
    List of account IDs to which you are assigning this account.
    Key string
    Application ID key.
    MonitorFlowLogs bool
    (bool) Automatically ingest flow logs.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    ServicePrincipalId string
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    TenantId string
    Active Directory ID associated with Azure.
    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    ClientId string
    Application ID registered with Active Directory.
    Enabled bool
    (bool) Whether or not the account is enabled.
    GroupIds []string
    List of account IDs to which you are assigning this account.
    Key string
    Application ID key.
    MonitorFlowLogs bool
    (bool) Automatically ingest flow logs.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    ServicePrincipalId string
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    TenantId string
    Active Directory ID associated with Azure.
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    clientId String
    Application ID registered with Active Directory.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    key String
    Application ID key.
    monitorFlowLogs Boolean
    (bool) Automatically ingest flow logs.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode String
    servicePrincipalId String
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    tenantId String
    Active Directory ID associated with Azure.
    accountId string
    Account ID; computed if this is not supplied.
    accountType string
    clientId string
    Application ID registered with Active Directory.
    enabled boolean
    (bool) Whether or not the account is enabled.
    groupIds string[]
    List of account IDs to which you are assigning this account.
    key string
    Application ID key.
    monitorFlowLogs boolean
    (bool) Automatically ingest flow logs.
    name string
    Cloud account name; computed if this is not supplied.
    protectionMode string
    servicePrincipalId string
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    tenantId string
    Active Directory ID associated with Azure.
    account_id str
    Account ID; computed if this is not supplied.
    account_type str
    client_id str
    Application ID registered with Active Directory.
    enabled bool
    (bool) Whether or not the account is enabled.
    group_ids Sequence[str]
    List of account IDs to which you are assigning this account.
    key str
    Application ID key.
    monitor_flow_logs bool
    (bool) Automatically ingest flow logs.
    name str
    Cloud account name; computed if this is not supplied.
    protection_mode str
    service_principal_id str
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    tenant_id str
    Active Directory ID associated with Azure.
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    clientId String
    Application ID registered with Active Directory.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    key String
    Application ID key.
    monitorFlowLogs Boolean
    (bool) Automatically ingest flow logs.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode String
    servicePrincipalId String
    Unique ID of the service principal object associated with the Prisma Cloud application that you create.
    tenantId String
    Active Directory ID associated with Azure.

    GetCloudAccountGcp

    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    CompressionEnabled bool
    (bool) Enable flow log compression.
    CredentialsJson string
    Content of the JSON credentials file.
    DataflowEnabledProject string
    GCP project for flow log compression.
    Enabled bool
    (bool) Whether or not the account is enabled.
    FlowLogStorageBucket string
    GCP Flow logs storage bucket.
    GroupIds List<string>
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    AccountId string
    Account ID; computed if this is not supplied.
    AccountType string
    CompressionEnabled bool
    (bool) Enable flow log compression.
    CredentialsJson string
    Content of the JSON credentials file.
    DataflowEnabledProject string
    GCP project for flow log compression.
    Enabled bool
    (bool) Whether or not the account is enabled.
    FlowLogStorageBucket string
    GCP Flow logs storage bucket.
    GroupIds []string
    List of account IDs to which you are assigning this account.
    Name string
    Cloud account name; computed if this is not supplied.
    ProtectionMode string
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    compressionEnabled Boolean
    (bool) Enable flow log compression.
    credentialsJson String
    Content of the JSON credentials file.
    dataflowEnabledProject String
    GCP project for flow log compression.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    flowLogStorageBucket String
    GCP Flow logs storage bucket.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode String
    accountId string
    Account ID; computed if this is not supplied.
    accountType string
    compressionEnabled boolean
    (bool) Enable flow log compression.
    credentialsJson string
    Content of the JSON credentials file.
    dataflowEnabledProject string
    GCP project for flow log compression.
    enabled boolean
    (bool) Whether or not the account is enabled.
    flowLogStorageBucket string
    GCP Flow logs storage bucket.
    groupIds string[]
    List of account IDs to which you are assigning this account.
    name string
    Cloud account name; computed if this is not supplied.
    protectionMode string
    account_id str
    Account ID; computed if this is not supplied.
    account_type str
    compression_enabled bool
    (bool) Enable flow log compression.
    credentials_json str
    Content of the JSON credentials file.
    dataflow_enabled_project str
    GCP project for flow log compression.
    enabled bool
    (bool) Whether or not the account is enabled.
    flow_log_storage_bucket str
    GCP Flow logs storage bucket.
    group_ids Sequence[str]
    List of account IDs to which you are assigning this account.
    name str
    Cloud account name; computed if this is not supplied.
    protection_mode str
    accountId String
    Account ID; computed if this is not supplied.
    accountType String
    compressionEnabled Boolean
    (bool) Enable flow log compression.
    credentialsJson String
    Content of the JSON credentials file.
    dataflowEnabledProject String
    GCP project for flow log compression.
    enabled Boolean
    (bool) Whether or not the account is enabled.
    flowLogStorageBucket String
    GCP Flow logs storage bucket.
    groupIds List<String>
    List of account IDs to which you are assigning this account.
    name String
    Cloud account name; computed if this is not supplied.
    protectionMode 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