Help Center/ Virtual Private Cloud/ API Reference/ VPC APIs (V3)/ Subnet CIDR Reservations/ Querying Details About a Subnet CIDR Reservation
Updated on 2025-08-19 GMT+08:00

Querying Details About a Subnet CIDR Reservation

Function

This API is used to query details about a single subnet CIDR reservation.

Calling Method

For details, see Calling APIs.

URI

GET /v3/{project_id}/vpc/virsubnet-cidr-reservations/{virsubnet_cidr_reservation_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

For details about how to obtain a project ID, see Obtaining a Project ID.

virsubnet_cidr_reservation_id

Yes

String

ID of a subnet CIDR reservation.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

request_id

String

Request ID.

virsubnet_cidr_reservation

VirsubnetCidrReservation object

Response body for querying details about a subnet CIDR reservation.

Table 3 VirsubnetCidrReservation

Parameter

Type

Description

id

String

  • Unique ID of a subnet CIDR reservation.

  • The value is in UUID format with hyphens (-).

virsubnet_id

String

  • ID of the virtual subnet that a subnet CIDR reservation belongs to.

  • The value is in UUID format with hyphens (-).

vpc_id

String

  • ID of the VPC that a subnet CIDR reservation belongs to.

  • The value is in UUID format with hyphens (-).

ip_version

Integer

  • IP version of a subnet CIDR reservation.

  • The value can be:

    • 4: IPv4

    • 6: IPv6

cidr

String

  • Subnet CIDR reservation.

  • The value is in CIDR block format. The minimum netmask value is the subnet netmask value plus 2, and the maximum netmask value is 32 (IPv4) or 128 (IPv6).

name

String

  • Name of a subnet CIDR reservation.

  • The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).

description

String

  • Description of a subnet CIDR reservation.

  • The value can contain no more than 255 characters and cannot contain angle brackets (< or >).

project_id

String

  • ID of the project that a subnet CIDR reservation belongs to.

created_at

String

  • The time when a subnet CIDR reservation is created.

  • UTC time in the format of yyyy-MM-ddTHH:mm:ssZ

updated_at

String

  • The time when a subnet CIDR reservation is updated.

  • UTC time in the format of yyyy-MM-ddTHH:mm:ssZ

Example Requests

Query details about a subnet CIDR reservation.

GET https://{Endpoint}/v3/{project_id}/vpc/virsubnet-cidr-reservations/987d7959-9c48-ad49-2fdd-bf4146d6ebc4

Example Responses

Status code: 200

The GET operation is successful. For more status codes, see Status Codes.

{
  "virsubnet_cidr_reservation" : {
    "id" : "987d7959-9c48-ad49-2fdd-bf4146d6ebc4",
    "virsubnet_id" : "fb0e2bd6-190f-0d1a-7728-a5f6b1d8dd19",
    "vpc_id" : "cef5d621-6c20-d5df-74e8-746271fba734",
    "ip_version" : 4,
    "cidr" : "192.168.21.96/28",
    "name" : "test",
    "description" : "for test",
    "project_id" : "11e8dd119c77479db890e266e68c1ecf",
    "created_at" : "2024-09-09T10:20:35Z",
    "updated_at" : "2024-09-09T10:20:35Z"
  },
  "request_id" : "96579891a62195d2c54054ac43fab0aa"
}

Status Codes

Status Code

Description

200

The GET operation is successful. For more status codes, see Status Codes.

Error Codes

See Error Codes.