get Account
Get the service account from a project. For more information see the official API documentation.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceAccount.ServiceAccountFunctions;
import com.pulumi.gcp.serviceAccount.inputs.GetAccountArgs;
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 objectViewer = ServiceAccountFunctions.getAccount(GetAccountArgs.builder()
.accountId("object-viewer")
.build());
}
}
Return
A collection of values returned by getAccount.
Parameters
A collection of arguments for invoking getAccount.
Return
A collection of values returned by getAccount.
Parameters
The Google service account ID. This be one of:
The name of the service account within the project (e.g.
my-service
)The fully-qualified path to a service account resource (e.g.
projects/my-project/serviceAccounts/...
)The email address of the service account (e.g.
my-service@my-project.iam.gserviceaccount.com
)
The ID of the project that the service account is present in. Defaults to the provider project configuration.
See also
Return
A collection of values returned by getAccount.
Parameters
Builder for com.pulumi.gcp.serviceAccount.kotlin.inputs.GetAccountPlainArgs.