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());
}
}
Content copied to clipboard
Return
A collection of values returned by getAccount.
Parameters
argument
A collection of arguments for invoking getAccount.
Return
A collection of values returned by getAccount.
See also
Parameters
account Id
The Google service account ID. This be one of:
project
The ID of the project that the service account is present in. Defaults to the provider project configuration.
Return
A collection of values returned by getAccount.
See also
Parameters
argument
Builder for com.pulumi.gcp.serviceAccount.kotlin.inputs.GetAccountPlainArgs.