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/edge_cloud/networking/subnets/create.yaml
- release_tracks: [ALPHA, GA]

  help_text:
    brief: Create a Distributed Cloud Edge Network subnet.
    description: |
      Create a new Distributed Cloud Edge Network subnet.
    examples: |
      To create a Distributed Cloud Edge Network subnet called `my-subnet` with VLAN ID and owned ip ranges specified in the edge zone 'us-central1-edge-den1', run:

        $ {command} my-subnet --network=my-network --location=us-central1 --zone=us-central1-edge-den1 --ipv4-range=192.168.1.1/24,172.10.10.1/24 --ipv6-range=2001:db8::1/64,4001:230::1/64 --vlan-id=100 --bonding-type=bonded

  request:
    collection: edgenetwork.projects.locations.zones.subnets
    ALPHA:
      api_version: v1alpha1
    GA:
      api_version: v1
    modify_request_hooks:
    - googlecloudsdk.command_lib.edge_cloud.networking.resources:SetResourcesPathForSubnet

  arguments:
    resource:
      help_text: Distributed Cloud Edge Network subnet to create.
      # The following should point to the resource argument definition under
      # your surface's command_lib directory.:
      spec: !REF googlecloudsdk.command_lib.edge_cloud.networking.resources:subnet

    params:
    - arg_name: description
      api_field: subnet.description
      help_text: |
        An optional, textual description for the subnet.
    - arg_name: ipv4-range
      api_field: subnet.ipv4Cidr
      type: "googlecloudsdk.calliope.arg_parsers:ArgList:"
      help_text: |
        The ranges of ipv4 addresses that are owned by this subnetwork in CIDR format.
    - arg_name: ipv6-range
      api_field: subnet.ipv6Cidr
      type: "googlecloudsdk.calliope.arg_parsers:ArgList:"
      help_text: |
        The ranges of ipv6 addresses that are owned by this subnetwork in CIDR format.
    - arg_name: network
      api_field: subnet.network
      required: true
      help_text: |
        The network that this subnetwork belongs to.
    - arg_name: vlan-id
      api_field: subnet.vlanId
      type: int
      help_text: |
        The ID of the VLAN to tag the subnetwork. If not specified we assign one automatically.
    - arg_name: bonding-type
      api_field: subnet.bondingType
      help_text: |
        Whether or not the VLAN being created will be present on bonded or non-bonded port types. If not specified, the VLAN will be created on both port types by default.
      release_tracks: [ALPHA]
    labels:
      api_field: subnet.labels

  async:
    collection: edgenetwork.projects.locations.operations