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/396/lib/surface/scc/postures/create.yaml
- release_tracks: [ALPHA, GA]
  help_text:
    brief: Create a Cloud Security Command Center (SCC) posture.
    description: |
      Create a Cloud Security Command Center (SCC) posture. First argument consists of the parent
      and name of the posture to be created. The posture details are provided in YAML file. The file
      path is mentioned in `--posture-from-file` flag.

      Created posture is returned as the response of the command. LRO operation ID is printed as the
      standard output.
    examples: |
     Create 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`):

        $ {command} organizations/123/locations/global/postures/posture-foo-1 --posture-from-file=posture.yaml

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

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

    params:
    - arg_name: posture-from-file
      api_field: posture
      required: true
      type: "googlecloudsdk.calliope.arg_parsers:FileContents:"
      processor: googlecloudsdk.core.yaml:load
      help_text: |
        YAML file containing the body of the posture to be created.

  async:
    collection: securityposture.organizations.locations.operations

  output:
    format: yaml