27 Mayıs 2022 Cuma

gcloud auth activate-service-account - Authorize access to Google Cloud with a service account

Giriş
"gcloud auth" komutunun açıklaması şöyle
manage oauth2 credentials for the Google Cloud CLI
Google Cloud'a giriş yapmak içindir

Örnek
Şöyle yaparız
gcloud auth activate-service-account --key-file=product.json
Dosya şöyledir
{
  "type": "service_account",
  "project_id": "product-fooo",
  "private_key_id": "a4950c9aa4f90e7065bc9d7...",
  "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\n",
  "client_email": "...",
  "client_id": "...",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/..."
}

Hiç yorum yok:

Yorum Gönder