Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud auth activate-service-account - Authorize access to GDC air-gapped with a service account.
SYNOPSIS
gdcloud auth activate-service-account [flags]
DESCRIPTION
Authorize access to GDC air-gapped with a service account.
To allow gdcloud to make requests using service account credentials, use this command to import these credentials from a file that contains a private authorization key, and activate them for use in gdcloud. The "gdcloud auth activate-service-account" serves the same function as the "gdcloud auth login" command, but uses a service account rather than the user credentials.
EXAMPLES
To authorize gdcloud to access GDC air-gapped using an existing service account, run:
gdcloud auth activate-service-account --key-file=/path/key.json
REQUIRED FLAGS
--key-file string Path to the private key file.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["This command, `gdcloud auth activate-service-account`, authorizes access to Google Distributed Cloud (GDC) air-gapped using a service account instead of user credentials."],["It imports credentials from a private key file, making them usable for `gdcloud` requests."],["The `--key-file` flag, which specifies the path to the private key file, is a required flag when using this command."],["This command is similar in functionality to `gdcloud auth login` but uses a service account."]]],[]]