prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getCloudAccount
Explore with Pulumi AI
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:
- cloud_
type This property is required. str - The cloud type. Valid values are
aws
,azure
,gcp
, oralibaba_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.
getCloudAccount Result
The following output properties are available:
- Account
Id string - Alibaba account ID.
- Alibaba
Clouds List<GetCloud Account Alibaba Cloud> - Alibaba account type spec, defined below.
- Aws
List<Get
Cloud Account Aw> - AWS account type spec, defined below.
- Azures
List<Get
Cloud Account Azure> - Azure account type spec, defined below.
- Cloud
Type string - Gcps
List<Get
Cloud Account Gcp> - GCP account type spec, defined below.
- Id string
- Name string
- Name to be used for the account on the Prisma Cloud platform.
- Account
Id string - Alibaba account ID.
- Alibaba
Clouds []GetCloud Account Alibaba Cloud - Alibaba account type spec, defined below.
- Aws
[]Get
Cloud Account Aw - AWS account type spec, defined below.
- Azures
[]Get
Cloud Account Azure - Azure account type spec, defined below.
- Cloud
Type string - Gcps
[]Get
Cloud Account Gcp - GCP account type spec, defined below.
- Id string
- Name string
- Name to be used for the account on the Prisma Cloud platform.
- account
Id String - Alibaba account ID.
- alibaba
Clouds List<GetCloud Account Alibaba Cloud> - Alibaba account type spec, defined below.
- aws
List<Get
Cloud Account Aw> - AWS account type spec, defined below.
- azures
List<Get
Cloud Account Azure> - Azure account type spec, defined below.
- cloud
Type String - gcps
List<Get
Cloud Account Gcp> - GCP account type spec, defined below.
- id String
- name String
- Name to be used for the account on the Prisma Cloud platform.
- account
Id string - Alibaba account ID.
- alibaba
Clouds GetCloud Account Alibaba Cloud[] - Alibaba account type spec, defined below.
- aws
Get
Cloud Account Aw[] - AWS account type spec, defined below.
- azures
Get
Cloud Account Azure[] - Azure account type spec, defined below.
- cloud
Type string - gcps
Get
Cloud Account Gcp[] - 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[GetCloud Account Alibaba Cloud] - Alibaba account type spec, defined below.
- aws
Sequence[Get
Cloud Account Aw] - AWS account type spec, defined below.
- azures
Sequence[Get
Cloud Account Azure] - Azure account type spec, defined below.
- cloud_
type str - gcps
Sequence[Get
Cloud Account Gcp] - GCP account type spec, defined below.
- id str
- name str
- Name to be used for the account on the Prisma Cloud platform.
- account
Id String - Alibaba account ID.
- alibaba
Clouds 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.
- cloud
Type 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
- Account
Id 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.
- Group
Ids 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.
- Ram
Arn This property is required. string - Unique identifier for an Alibaba RAM role resource.
- Account
Id 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.
- Group
Ids 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.
- Ram
Arn This property is required. string - Unique identifier for an Alibaba RAM role resource.
- account
Id 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.
- group
Ids 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.
- ram
Arn This property is required. String - Unique identifier for an Alibaba RAM role resource.
- account
Id 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.
- group
Ids 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.
- ram
Arn 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.
- account
Id 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.
- group
Ids 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.
- ram
Arn This property is required. String - Unique identifier for an Alibaba RAM role resource.
GetCloudAccountAw
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Enabled
This property is required. bool - (bool) Whether or not the account is enabled.
- External
Id This property is required. string - AWS account external ID.
- Group
Ids 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.
- Protection
Mode This property is required. string - Role
Arn This property is required. string - Unique identifier for an AWS resource (ARN).
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Enabled
This property is required. bool - (bool) Whether or not the account is enabled.
- External
Id This property is required. string - AWS account external ID.
- Group
Ids 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.
- Protection
Mode This property is required. string - Role
Arn This property is required. string - Unique identifier for an AWS resource (ARN).
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - enabled
This property is required. Boolean - (bool) Whether or not the account is enabled.
- external
Id This property is required. String - AWS account external ID.
- group
Ids 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.
- protection
Mode This property is required. String - role
Arn This property is required. String - Unique identifier for an AWS resource (ARN).
- account
Id This property is required. string - Account ID; computed if this is not supplied.
- account
Type This property is required. string - enabled
This property is required. boolean - (bool) Whether or not the account is enabled.
- external
Id This property is required. string - AWS account external ID.
- group
Ids 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.
- protection
Mode This property is required. string - role
Arn 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).
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - enabled
This property is required. Boolean - (bool) Whether or not the account is enabled.
- external
Id This property is required. String - AWS account external ID.
- group
Ids 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.
- protection
Mode This property is required. String - role
Arn This property is required. String - Unique identifier for an AWS resource (ARN).
GetCloudAccountAzure
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Client
Id 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.
- Group
Ids 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.
- Monitor
Flow Logs 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.
- Protection
Mode This property is required. string - Service
Principal Id This property is required. string - Unique ID of the service principal object associated with the Prisma Cloud application that you create.
- Tenant
Id This property is required. string - Active Directory ID associated with Azure.
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Client
Id 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.
- Group
Ids 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.
- Monitor
Flow Logs 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.
- Protection
Mode This property is required. string - Service
Principal Id This property is required. string - Unique ID of the service principal object associated with the Prisma Cloud application that you create.
- Tenant
Id This property is required. string - Active Directory ID associated with Azure.
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - client
Id 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.
- group
Ids 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.
- monitor
Flow Logs 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.
- protection
Mode This property is required. String - service
Principal Id This property is required. String - Unique ID of the service principal object associated with the Prisma Cloud application that you create.
- tenant
Id This property is required. String - Active Directory ID associated with Azure.
- account
Id This property is required. string - Account ID; computed if this is not supplied.
- account
Type This property is required. string - client
Id 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.
- group
Ids 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.
- monitor
Flow Logs 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.
- protection
Mode This property is required. string - service
Principal Id This property is required. string - Unique ID of the service principal object associated with the Prisma Cloud application that you create.
- tenant
Id 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.
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - client
Id 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.
- group
Ids 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.
- monitor
Flow Logs 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.
- protection
Mode This property is required. String - service
Principal Id This property is required. String - Unique ID of the service principal object associated with the Prisma Cloud application that you create.
- tenant
Id This property is required. String - Active Directory ID associated with Azure.
GetCloudAccountGcp
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Compression
Enabled This property is required. bool - (bool) Enable flow log compression.
- Credentials
Json This property is required. string - Content of the JSON credentials file.
- Dataflow
Enabled Project 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.
- Flow
Log Storage Bucket This property is required. string - GCP Flow logs storage bucket.
- Group
Ids 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.
- Protection
Mode This property is required. string
- Account
Id This property is required. string - Account ID; computed if this is not supplied.
- Account
Type This property is required. string - Compression
Enabled This property is required. bool - (bool) Enable flow log compression.
- Credentials
Json This property is required. string - Content of the JSON credentials file.
- Dataflow
Enabled Project 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.
- Flow
Log Storage Bucket This property is required. string - GCP Flow logs storage bucket.
- Group
Ids 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.
- Protection
Mode This property is required. string
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - compression
Enabled This property is required. Boolean - (bool) Enable flow log compression.
- credentials
Json This property is required. String - Content of the JSON credentials file.
- dataflow
Enabled Project 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.
- flow
Log Storage Bucket This property is required. String - GCP Flow logs storage bucket.
- group
Ids 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.
- protection
Mode This property is required. String
- account
Id This property is required. string - Account ID; computed if this is not supplied.
- account
Type This property is required. string - compression
Enabled This property is required. boolean - (bool) Enable flow log compression.
- credentials
Json This property is required. string - Content of the JSON credentials file.
- dataflow
Enabled Project 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.
- flow
Log Storage Bucket This property is required. string - GCP Flow logs storage bucket.
- group
Ids 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.
- protection
Mode 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
- account
Id This property is required. String - Account ID; computed if this is not supplied.
- account
Type This property is required. String - compression
Enabled This property is required. Boolean - (bool) Enable flow log compression.
- credentials
Json This property is required. String - Content of the JSON credentials file.
- dataflow
Enabled Project 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.
- flow
Log Storage Bucket This property is required. String - GCP Flow logs storage bucket.
- group
Ids 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.
- protection
Mode 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.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks