Help Center> VPC Endpoint> API Reference> API> VPC Endpoint Services> Changing the Name of a VPC Endpoint Service
Updated on 2024-04-19 GMT+08:00

Changing the Name of a VPC Endpoint Service

Function

This API is used to change the name of a VPC endpoint service.

Calling Method

For details, see Calling APIs.

URI

PUT /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/name

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the tenant ID.

Minimum: 1

Maximum: 64

vpc_endpoint_service_id

Yes

String

Specifies the ID of the VPC endpoint service.

Minimum: 1

Maximum: 64

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

endpoint_service_name

No

String

Specifies the name of the VPC endpoint service.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

endpoint_service_name

String

Specifies the name of the VPC endpoint service.

Example Requests

Changing the name of a VPC endpoint service

https://{endpoint}/v1/{project_id}/vpc-endpoint-services/070c4a63-8a62-448e-89ed-f2cbde8e6a3b/name

{
  "endpoint_service_name" : "obs_test"
}

Example Responses

Status code: 200

The server has successfully processed the request.

{
  "endpoint_service_name" : "br-abc-aaa1.obs_test.77e40857-03e9-45ee-a940-4bbb8cef72bf"
}

Status Codes

Status Code

Description

200

The server has successfully processed the request.

Error Codes

See Error Codes.