prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getOrgCloudAccounts
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve a list of cloud accounts onboarded onto the Prisma Cloud platform.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getOrgCloudAccounts({});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_org_cloud_accounts()
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.GetOrgCloudAccounts(ctx, &prismacloud.GetOrgCloudAccountsArgs{}, 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.GetOrgCloudAccounts.Invoke();
});
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.GetOrgCloudAccountsArgs;
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.getOrgCloudAccounts();
}
}
variables:
example:
fn::invoke:
function: prismacloud:getOrgCloudAccounts
arguments: {}
Using getOrgCloudAccounts
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 getOrgCloudAccounts(args: GetOrgCloudAccountsArgs, opts?: InvokeOptions): Promise<GetOrgCloudAccountsResult>
function getOrgCloudAccountsOutput(args: GetOrgCloudAccountsOutputArgs, opts?: InvokeOptions): Output<GetOrgCloudAccountsResult>
def get_org_cloud_accounts(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgCloudAccountsResult
def get_org_cloud_accounts_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgCloudAccountsResult]
func GetOrgCloudAccounts(ctx *Context, args *GetOrgCloudAccountsArgs, opts ...InvokeOption) (*GetOrgCloudAccountsResult, error)
func GetOrgCloudAccountsOutput(ctx *Context, args *GetOrgCloudAccountsOutputArgs, opts ...InvokeOption) GetOrgCloudAccountsResultOutput
> Note: This function is named GetOrgCloudAccounts
in the Go SDK.
public static class GetOrgCloudAccounts
{
public static Task<GetOrgCloudAccountsResult> InvokeAsync(GetOrgCloudAccountsArgs args, InvokeOptions? opts = null)
public static Output<GetOrgCloudAccountsResult> Invoke(GetOrgCloudAccountsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrgCloudAccountsResult> getOrgCloudAccounts(GetOrgCloudAccountsArgs args, InvokeOptions options)
public static Output<GetOrgCloudAccountsResult> getOrgCloudAccounts(GetOrgCloudAccountsArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getOrgCloudAccounts:getOrgCloudAccounts
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getOrgCloudAccounts Result
The following output properties are available:
- Id string
- Listings
List<Get
Org Cloud Accounts Listing> - List of cloud accounts, defined below.
- Total double
- (int) Total number of cloud accounts.
- Id string
- Listings
[]Get
Org Cloud Accounts Listing - List of cloud accounts, defined below.
- Total float64
- (int) Total number of cloud accounts.
- id String
- listings
List<Get
Org Cloud Accounts Listing> - List of cloud accounts, defined below.
- total Double
- (int) Total number of cloud accounts.
- id string
- listings
Get
Org Cloud Accounts Listing[] - List of cloud accounts, defined below.
- total number
- (int) Total number of cloud accounts.
- id str
- listings
Sequence[Get
Org Cloud Accounts Listing] - List of cloud accounts, defined below.
- total float
- (int) Total number of cloud accounts.
- id String
- listings List<Property Map>
- List of cloud accounts, defined below.
- total Number
- (int) Total number of cloud accounts.
Supporting Types
GetOrgCloudAccountsListing
- account_
id str - Account ID.
- cloud_
type str - Cloud type
- name str
- Account name
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