HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/lib/surface/compute/tpus/tpu_vm/service_identity/create.yaml
- release_tracks: [GA, ALPHA]
  command_type: GENERIC
  help_text:
    brief: Create a Cloud TPU VM service identity for a project.
    description: |
       Create a Cloud TPU VM service identity for a project.

       The Cloud TPU VM creates a service identity (Google-owned service account) for management of
       resources when the first Cloud TPU VM is created in a project after TPU service activation.
       However, there are cases where the service identity may need to be created
       beforehand to grant specific IAM permissions to it, like access to a Google Cloud Storage
       bucket. This method generates the service account without need to first create a Cloud TPU
       VM.

       This command generates a service identity valid for Cloud TPU VMs across all zones in a
       project. The zone is required (either set in the gcloud config defaults, as an environment
       variable, or `--zone` flag), but the service identity generated will work across all Cloud
       TPU VM zones.
    examples: |
      To generate a Cloud TPU VM service identity for a project (using zone `europe-west4-a`), run:

        $ {command} --zone=europe-west4-a

  request:
    collection: tpu.projects.locations
    ALPHA:
      api_version: v2alpha1
    GA:
      api_version: v2
    method: generateServiceIdentity

  arguments:
    resource:
      help_text: |
        Zone to use for the request.

        If not specified, will use the value of the [compute/zone] property in the current
        gcloud configuration.

      spec: !REF googlecloudsdk.command_lib.compute.tpus.tpu_vm.resources:location
      is_positional: false