Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Virtual Private Network/ API Reference/ API/ P2C VPN APIs/ Server/ Querying a VPN Server Based on a Specified Gateway ID

Querying a VPN Server Based on a Specified Gateway ID

Updated on 2024-12-03 GMT+08:00

Function

This API is used to query a VPN server based on a specified P2C VPN gateway ID.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/vpn-servers

Table 1 Parameter description

Parameter

Type

Mandatory

Description

project_id

String

Yes

Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID.

p2c_vgw_id

String

Yes

Specifies the ID of a P2C VPN gateway instance.

Request

  • Request parameters

    None

  • Example request
    GET https://{Endpoint}/v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/vpn-servers

Response

  • Response parameters

    Returned status code 200: successful query

    Table 2 Parameters in the response body

    Parameter

    Type

    Description

    vpn_servers

    Array of ShowServerResponse

    objects

    Specifies server list information.

    request_id

    String

    Specifies a request ID.

    Table 3 ShowServerResponse

    Parameter

    Type

    Description

    id

    String

    • Specifies the ID of a VPN server.
    • The value is a UUID containing 36 characters.

    p2c_vgw_id

    String

    • Specifies the ID of a P2C VPN gateway.
    • The value is a UUID containing 36 characters.

    client_cidr

    String

    • Specifies a client CIDR block. A virtual IP address on this CIDR block will be assigned to a client for establishing a connection.
    • The value is in the format of dotted decimal notation/mask, for example, 192.168.1.0/24.

    local_subnets

    Array of strings

    • Specifies the list of local CIDR blocks.
    • The value is in the format of dotted decimal notation/mask, for example, 10.10.1.0/24.

    client_auth_type

    String

    • Specifies the client authentication mode.
    • Value range:

      CERT: certificate authentication

      LOCAL_PASSWORD: password authentication (local)

    tunnel_protocol

    String

    • Specifies a tunnel protocol.
    • Value range:

      SSL

    server_certificate

    server_certificate object

    Specifies server certificate information.

    client_ca_certificates

    Array of QueryClientCaCertificateBody objects

    Specifies the list of client CA certificates, which are used to authenticate client certificates.

    ssl_options

    ssl_options object

    Specifies SSL options.

    status

    String

    • Specifies the server status.
    • Value range:

      PENDING_CREATE: creating

      PENDING_UPDATE: updating

      ACTIVE: normal

      FAULT: abnormal

      FROZEN: frozen

    created_at

    String

    • Specifies the creation time.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.

    updated_at

    String

    • Specifies the last update time.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.
    Table 4 server_certificate

    Parameter

    Type

    Description

    id

    String

    Specifies a certificate ID, which is the ID of a certificated uploaded in the CCM. This parameter is left empty if the certificate is deleted from the CCM.

    name

    String

    Specifies a certificate name, which is the name of a certificated uploaded in the CCM.

    issuer

    String

    • Specifies the issuer of a certificate.
    • The value is a string of 1 to 256 characters.

    subject

    String

    • Specifies the subject of a certificate.
    • The value is a string of 1 to 256 characters.

    serial_number

    String

    • Specifies the serial number of a certificate.
    • The value is a string of 1 to 64 characters.

    expiration_time

    String

    • Specifies the expiration time.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.

    signature_algorithm

    String

    • Specifies the signature algorithm of a certificate.
    • The value is a string of 1 to 64 characters.
    Table 5 QueryClientCaCertificateBody

    Parameter

    Type

    Description

    id

    String

    • Specifies a certificate ID.
    • The value is a UUID containing 36 characters.

    name

    String

    • Specifies a certificate name.
    • The value is a string of 1 to 64 characters, which can contain digits, letters, underscores (_), and hyphens (-).

    issuer

    String

    • Specifies the issuer of a certificate.
    • The value is a string of 1 to 256 characters.

    subject

    String

    • Specifies the subject of a certificate.
    • The value is a string of 1 to 256 characters.

    serial_number

    String

    • Specifies the serial number of a CA certificate.
    • The value is a string of 1 to 64 characters.

    expiration_time

    String

    • Specifies the expiration time of a certificate.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.

    signature_algorithm

    String

    • Specifies the signature algorithm of a certificate.
    • The value is a string of 1 to 64 characters.

    created_at

    String

    • Specifies the creation time.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.

    updated_at

    String

    • Specifies the last update time.
    • The UTC time format is yyyy-MM-ddTHH:mm:ssZ.
    Table 6 ssl_options

    Parameter

    Type

    Description

    protocol

    string

    • Specifies a protocol.
    • Value range: TCP

    port

    integer

    • Specifies a port number.
    • Value range:
      • 443
      • 1194

    encryption_algorithm

    string

    • Specifies an encryption algorithm.
    • Value range:
      • AES-128-GCM
      • AES-256-GCM

    authentication_algorithm

    string

    • Specifies an authentication algorithm.
    • Value range:
      • SHA256
      • SHA384

    is_compressed

    boolean

    • Specifies whether to compress data. By default, data is not compressed.
    • Value range:
      • true
      • false
  • Example response
    {
        "vpn_servers": [
            {
                "id": "2407a20d-0bf7-4530-ba9a-7ffa0cedfa3b",
                "p2c_vgw_id": "3b5b64e4-2927-4062-acf6-05b0b842bbfe",
                "client_cidr": "1.1.0.0/16",
                "local_subnets": [
                    "192.168.12.0/24",
                    "192.168.1.0/24"
                ],
                "client_auth_type": "LOCAL_PASSWORD",
                "tunnel_protocol": "SSL",
                "server_certificate": {
                    "id": "scs1716171403922",
                    "name": "lsh-newcert",
                    "issuer": "C=CN,ST=beijing,L=haidian,O=lesaas,OU=root,CN=www.***.com",
                    "subject": "C=CN,ST=beijing,L=haidian,O=server,OU=server,CN=www.***.com",
                    "serial_number": "310325804134830162280305057622726926320418980636",
                    "expiration_time": "2024-06-19T02:15:26Z",
                    "signature_algorithm": "SHA256WITHRSA"
                },
                "client_ca_certificates": [],
                "ssl_options": {
                    "protocol": "TCP",
                    "port": 443,
                    "encryption_algorithm": "AES-128-GCM",
                    "authentication_algorithm": "SHA256",
                    "is_compressed": false
                },
                "status": "ACTIVE",
                "created_at": "2024-06-14T01:14:56.802Z",
                "updated_at": "2024-06-14T08:53:22.855Z"
            }
        ],
        "request_id": "3378c265585ffb8aac68ec39a2db67a1"
    }

Status Codes

For details, see Status Codes.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback