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

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",
});
Copy
import pulumi
import pulumi_prismacloud as prismacloud

example = prismacloud.get_cloud_account(cloud_type="azure",
    name="My Azure cloud account")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: prismacloud:getCloudAccount
      arguments:
        cloudType: azure
        name: My Azure cloud account
Copy

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>
Copy
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]
Copy
func LookupCloudAccount(ctx *Context, args *LookupCloudAccountArgs, opts ...InvokeOption) (*LookupCloudAccountResult, error)
func LookupCloudAccountOutput(ctx *Context, args *LookupCloudAccountOutputArgs, opts ...InvokeOption) LookupCloudAccountResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCloudAccountResult> getCloudAccount(GetCloudAccountArgs args, InvokeOptions options)
public static Output<GetCloudAccountResult> getCloudAccount(GetCloudAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: prismacloud:index/getCloudAccount:getCloudAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

GetCloudAccountAw

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

GetCloudAccountAzure

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

GetCloudAccountGcp

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

Package Details

Repository
prismacloud paloaltonetworks/terraform-provider-prismacloud
License
Notes
This Pulumi package is based on the prismacloud Terraform Provider.