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/network_connectivity/regional_endpoints/create.yaml
- release_tracks: [BETA]

  help_text:
    brief: Create a new regional endpoint.
    description: Create a new regional endpoint with the given name.
    examples: |
      To create a regional endpoint with the name 'my-regional-endpoint' in us-central1
      targeting my-target-endpoint, run:

        $ {command} my-regional-endpoint
          --region=us-central1
          [--address=my-address]
          [--network=my-network]
          [--subnetwork=my-subnet]
          --target-google-api=my-target-endpoint
          [--enable-global-access]

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:regionalEndpoint
      help_text: Name of the regional endpoint to be created.
    params:
    - arg_name: enable-global-access
      action: store_true
      default: false
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.accessType
      help_text: |
        Whether the REGIONAL or GLOBAL access is enabled.
      choices:
      - arg_value: false
        enum_value: REGIONAL
        help_text: REGIONAL access is enabled for the regional endpoint.
      - arg_value: true
        enum_value: GLOBAL
        help_text: GLOBAL access is enabled for the regional.
    - arg_name: description
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.description
      help_text: Description of the regional endpoint.
    - arg_name: network
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.network
      help_text: Consumer's VPC network that this regional endpoint belongs to.
    - arg_name: subnetwork
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.subnetwork
      help_text: The name of the subnetwork from which the IP address will be allocated.
    - arg_name: target-google-api
      required: true
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.targetGoogleApi
      help_text: The service endpoint the regional endpoint will connect to.
    - arg_name: address
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.address
      help_text: The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats:\
        * IPv4 address as in `10.0.0.1`
        * Address resource URI as in
        `projects/{project}/regions/{region}/addresses/{address_name}` for an IPv4
        or IPv6 address.
    labels:
      api_field: googleCloudNetworkconnectivityV1betaRegionalEndpoint.labels

  async:
    collection: networkconnectivity.projects.locations.operations

  request:
    BETA:
      api_version: v1beta
    collection: networkconnectivity.projects.locations.regionalEndpoints
    method: create

- release_tracks: [GA]

  help_text:
    brief: Create a new regional endpoint.
    description: Create a new regional endpoint with the given name.
    examples: |
      To create a regional endpoint with the name 'my-regional-endpoint' in us-central1
      targeting my-target-endpoint, run:

        $ {command} my-regional-endpoint
          --region=us-central1
          [--address=my-address]
          [--network=my-network]
          [--subnetwork=my-subnet]
          --target-google-api=my-target-endpoint
          [--enable-global-access]

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:regionalEndpoint
      help_text: Name of the regional endpoint to be created.
    params:
    - arg_name: enable-global-access
      action: store_true
      default: false
      api_field: regionalEndpoint.accessType
      help_text: |
        Whether the REGIONAL or GLOBAL access is enabled.
      choices:
      - arg_value: false
        enum_value: REGIONAL
        help_text: REGIONAL access is enabled for the regional endpoint.
      - arg_value: true
        enum_value: GLOBAL
        help_text: GLOBAL access is enabled for the regional.
    - arg_name: description
      api_field: regionalEndpoint.description
      help_text: Description of the regional endpoint.
    - arg_name: network
      api_field: regionalEndpoint.network
      help_text: Consumer's VPC network that this regional endpoint belongs to.
    - arg_name: subnetwork
      api_field: regionalEndpoint.subnetwork
      help_text: The name of the subnetwork from which the IP address will be allocated.
    - arg_name: target-google-api
      required: true
      api_field: regionalEndpoint.targetGoogleApi
      help_text: The service endpoint the regional endpoint will connect to.
    - arg_name: address
      api_field: regionalEndpoint.address
      help_text: |
        The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats:
        - IPv4 address as in ``10.0.0.1''
        - Address resource URI as in ``projects/{project}/regions/{region}/addresses/{address_name}'' for an IPv4 or IPv6 address.
    labels:
      api_field: regionalEndpoint.labels

  async:
    collection: networkconnectivity.projects.locations.operations

  request:
    GA:
      api_version: v1
    collection: networkconnectivity.projects.locations.regionalEndpoints
    method: create