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/394/lib/surface/scc/postures/extract.yaml
- release_tracks: [ALPHA, GA]
  help_text:
    brief: Extract a Cloud Security Command Center (SCC) posture from a workload.
    description: |
      Extract a Cloud Security Command Center (SCC) posture from a workload. First argument is the
      parent and name of the posture to be created. The workload from where the organization
      policies need to be extracted is provided via '--workload' flag.

      Extracted posture is returned as the response of the command. LRO operation ID is printed as the
      standard output.
    examples: |
     Extract a posture named `posture-foo-1` within parent `organizations/123/locations/global`(i.e. a posture in organization `123`, location `global`, with id `posture-foo-1`) from workload `projects/456`:

        $ {command} organizations/123/locations/global/postures/posture-foo-1 --workload=projects/456

  request:
    collection: securityposture.organizations.locations.postures
    api_version: v1alpha
    method: extract
    GA:
      api_version: v1

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.scc.resources:posture_for_extract
      help_text: |
          The name of the posture to be created. For example organizations/<organizationID>/locations/<location>/postures/<postureID>.

    params:
    - arg_name: workload
      api_field: extractPostureRequest.workload
      required: true
      help_text: |
        Workload from where policies has to be extracted into a posture. It can be in one
        of the following formats: `projects/projectNumber`, `folders/folderNumber`, `organizations/organizationNumber`.

  async:
    collection: securityposture.organizations.locations.operations

  output:
    format: yaml