ModifyPrivateConnectsAttribute

1. API Description

This API is used to modify information of one or more Layer 2 private connects, including names.

Note

If any of the private connect IDs does not exist, the operation will fail immediately. Information of other private connects will not be modified.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

privateConnectIds

Yes

Array of String

Private connect ID list. You can query up to 100 IDs in each request.

privateConnectName

Yes

String

Private connect name.

Up to 255 characters in length are allowed.

3. Output Parameters

Parameter NameTypeDescription

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Code Example

Modify names of private connects.

POST /api/v2/sdn HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: ModifyPrivateConnectsAttribute
<Common Request Params>

Request:
{
    "privateConnectIds": ["your-private-connect-id"],
    "privateConnectName": "Seoul-Singapore-Connect"
}

Response:
{   
  "requestId": "T98044459-95B2-477E-9A2F-00253A70CC6E",
  "response": {
     "requestId": "T98044459-95B2-477E-9A2F-00253A70CC6E"
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.​

HTTP Status CodeError CodeDescription

404

INVALID_PRIVATE_CONNECT_NOT_FOUND

Private connect does not exist.

Last updated