1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. storage
  5. getTransferProjectServieAccount
Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi

gcp.storage.getTransferProjectServieAccount

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi
    Deprecated: gcp.storage.getTransferProjectServieAccount has been deprecated in favor of gcp.storage.getTransferProjectServiceAccount

    Use this data source to retrieve Storage Transfer service account for this project

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const default = gcp.storage.getTransferProjectServiceAccount({});
    export const defaultAccount = _default.then(_default => _default.email);
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.storage.get_transfer_project_service_account()
    pulumi.export("defaultAccount", default.email)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := storage.GetTransferProjectServiceAccount(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("defaultAccount", _default.Email)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Gcp.Storage.GetTransferProjectServiceAccount.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["defaultAccount"] = @default.Apply(@default => @default.Apply(getTransferProjectServiceAccountResult => getTransferProjectServiceAccountResult.Email)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.storage.StorageFunctions;
    import com.pulumi.gcp.storage.inputs.GetTransferProjectServiceAccountArgs;
    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 default = StorageFunctions.getTransferProjectServiceAccount();
    
            ctx.export("defaultAccount", default_.email());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: gcp:storage:getTransferProjectServiceAccount
          Arguments: {}
    outputs:
      defaultAccount: ${default.email}
    

    Using getTransferProjectServieAccount

    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 getTransferProjectServieAccount(args: GetTransferProjectServieAccountArgs, opts?: InvokeOptions): Promise<GetTransferProjectServieAccountResult>
    function getTransferProjectServieAccountOutput(args: GetTransferProjectServieAccountOutputArgs, opts?: InvokeOptions): Output<GetTransferProjectServieAccountResult>
    def get_transfer_project_servie_account(project: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetTransferProjectServieAccountResult
    def get_transfer_project_servie_account_output(project: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetTransferProjectServieAccountResult]
    func GetTransferProjectServieAccount(ctx *Context, args *GetTransferProjectServieAccountArgs, opts ...InvokeOption) (*GetTransferProjectServieAccountResult, error)
    func GetTransferProjectServieAccountOutput(ctx *Context, args *GetTransferProjectServieAccountOutputArgs, opts ...InvokeOption) GetTransferProjectServieAccountResultOutput

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

    public static class GetTransferProjectServieAccount 
    {
        public static Task<GetTransferProjectServieAccountResult> InvokeAsync(GetTransferProjectServieAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetTransferProjectServieAccountResult> Invoke(GetTransferProjectServieAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTransferProjectServieAccountResult> getTransferProjectServieAccount(GetTransferProjectServieAccountArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Project string
    The project ID. If it is not provided, the provider project is used.
    Project string
    The project ID. If it is not provided, the provider project is used.
    project String
    The project ID. If it is not provided, the provider project is used.
    project string
    The project ID. If it is not provided, the provider project is used.
    project str
    The project ID. If it is not provided, the provider project is used.
    project String
    The project ID. If it is not provided, the provider project is used.

    getTransferProjectServieAccount Result

    The following output properties are available:

    Email string
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    Id string
    The provider-assigned unique ID for this managed resource.
    Member string
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    Project string
    SubjectId string
    Unique identifier for the service account.
    Email string
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    Id string
    The provider-assigned unique ID for this managed resource.
    Member string
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    Project string
    SubjectId string
    Unique identifier for the service account.
    email String
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    id String
    The provider-assigned unique ID for this managed resource.
    member String
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    project String
    subjectId String
    Unique identifier for the service account.
    email string
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    id string
    The provider-assigned unique ID for this managed resource.
    member string
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    project string
    subjectId string
    Unique identifier for the service account.
    email str
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    id str
    The provider-assigned unique ID for this managed resource.
    member str
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    project str
    subject_id str
    Unique identifier for the service account.
    email String
    Email address of the default service account used by Storage Transfer Jobs running in this project.
    id String
    The provider-assigned unique ID for this managed resource.
    member String
    The Identity of the service account in the form serviceAccount:{email}. This value is often used to refer to the service account in order to grant IAM permissions.
    project String
    subjectId String
    Unique identifier for the service account.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi