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

prismacloud.getAwsStorageUuid

Explore with Pulumi AI

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

    Retrieve information about Storage UUID. Required if you are onboarding aws account with Data Security feature.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getAwsStorageUuid({
        accountId: "aws account id",
        externalId: "external id",
        roleArn: "aws role arn",
    });
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_aws_storage_uuid(account_id="aws account id",
        external_id="external id",
        role_arn="aws role arn")
    
    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.GetAwsStorageUuid(ctx, &prismacloud.GetAwsStorageUuidArgs{
    			AccountId:  "aws account id",
    			ExternalId: "external id",
    			RoleArn:    "aws role arn",
    		}, 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.GetAwsStorageUuid.Invoke(new()
        {
            AccountId = "aws account id",
            ExternalId = "external id",
            RoleArn = "aws role arn",
        });
    
    });
    
    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.GetAwsStorageUuidArgs;
    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.getAwsStorageUuid(GetAwsStorageUuidArgs.builder()
                .accountId("aws account id")
                .externalId("external id")
                .roleArn("aws role arn")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAwsStorageUuid
          arguments:
            accountId: aws account id
            externalId: external id
            roleArn: aws role arn
    

    Using getAwsStorageUuid

    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 getAwsStorageUuid(args: GetAwsStorageUuidArgs, opts?: InvokeOptions): Promise<GetAwsStorageUuidResult>
    function getAwsStorageUuidOutput(args: GetAwsStorageUuidOutputArgs, opts?: InvokeOptions): Output<GetAwsStorageUuidResult>
    def get_aws_storage_uuid(account_id: Optional[str] = None,
                             external_id: Optional[str] = None,
                             id: Optional[str] = None,
                             role_arn: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAwsStorageUuidResult
    def get_aws_storage_uuid_output(account_id: Optional[pulumi.Input[str]] = None,
                             external_id: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             role_arn: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAwsStorageUuidResult]
    func GetAwsStorageUuid(ctx *Context, args *GetAwsStorageUuidArgs, opts ...InvokeOption) (*GetAwsStorageUuidResult, error)
    func GetAwsStorageUuidOutput(ctx *Context, args *GetAwsStorageUuidOutputArgs, opts ...InvokeOption) GetAwsStorageUuidResultOutput

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

    public static class GetAwsStorageUuid 
    {
        public static Task<GetAwsStorageUuidResult> InvokeAsync(GetAwsStorageUuidArgs args, InvokeOptions? opts = null)
        public static Output<GetAwsStorageUuidResult> Invoke(GetAwsStorageUuidInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAwsStorageUuidResult> getAwsStorageUuid(GetAwsStorageUuidArgs args, InvokeOptions options)
    public static Output<GetAwsStorageUuidResult> getAwsStorageUuid(GetAwsStorageUuidArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getAwsStorageUuid:getAwsStorageUuid
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    AWS account ID.
    ExternalId string
    External id for aws account.
    RoleArn string
    Unique identifier for an AWS resource (ARN).
    Id string
    AccountId string
    AWS account ID.
    ExternalId string
    External id for aws account.
    RoleArn string
    Unique identifier for an AWS resource (ARN).
    Id string
    accountId String
    AWS account ID.
    externalId String
    External id for aws account.
    roleArn String
    Unique identifier for an AWS resource (ARN).
    id String
    accountId string
    AWS account ID.
    externalId string
    External id for aws account.
    roleArn string
    Unique identifier for an AWS resource (ARN).
    id string
    account_id str
    AWS account ID.
    external_id str
    External id for aws account.
    role_arn str
    Unique identifier for an AWS resource (ARN).
    id str
    accountId String
    AWS account ID.
    externalId String
    External id for aws account.
    roleArn String
    Unique identifier for an AWS resource (ARN).
    id String

    getAwsStorageUuid Result

    The following output properties are available:

    AccountId string
    ExternalId string
    Id string
    RoleArn string
    StorageUuid string
    Storage UUID for aws account.
    AccountId string
    ExternalId string
    Id string
    RoleArn string
    StorageUuid string
    Storage UUID for aws account.
    accountId String
    externalId String
    id String
    roleArn String
    storageUuid String
    Storage UUID for aws account.
    accountId string
    externalId string
    id string
    roleArn string
    storageUuid string
    Storage UUID for aws account.
    account_id str
    external_id str
    id str
    role_arn str
    storage_uuid str
    Storage UUID for aws account.
    accountId String
    externalId String
    id String
    roleArn String
    storageUuid String
    Storage UUID for aws account.

    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