Cloud Interconnect API, REST: PrivateConnection.Update
Updates a PrivateConnection resource using the data specified in the request.
Method starts an asynchronous operation that can be cancelled while it is in progress.
HTTP request
PATCH https://cic.api.yandexcloud.kz/cic/v1/privateConnections/{privateConnectionId}
Path parameters
|
Field |
Description |
|
privateConnectionId |
string Required field. ID of the PrivateConnection resource. |
Body parameters
{
"updateMask": "string",
"name": "string",
"description": "string",
"regionId": "string",
"trunkConnectionId": "string",
"vlanId": "string",
"ipv4Peering": {
"peeringSubnet": "string",
"peerIp": "string",
"cloudIp": "string",
"peerBgpAsn": "string",
"cloudBgpAsn": "string",
"peerBgpMd5Key": "string"
},
"ipv4StaticRoutes": [
{
"prefix": "string"
}
],
"labels": "object"
}
|
Field |
Description |
|
updateMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
|
name |
string Name of the privateConnection. |
|
description |
string Optional description of the privateConnection. 0-256 characters long. |
|
regionId |
string ID of the region that the privateConnection belongs to. |
|
trunkConnectionId |
string ID of the trunk_connection that the privateConnection belongs to. |
|
vlanId |
string (int64) VLAN_ID that the privateConnection uses in multiplexing. |
|
ipv4Peering |
IPv4 peering config of connection |
|
ipv4StaticRoutes[] |
IPv4 StaticRoute config of connection |
|
labels |
object (map<string, string>) Resource labels, |
Peering
|
Field |
Description |
|
peeringSubnet |
string PeeringSubnet. |
|
peerIp |
string PeerIp. |
|
cloudIp |
string CloudIp. |
|
peerBgpAsn |
string (int64) PeerBgpAsn. |
|
cloudBgpAsn |
string (int64) CloudBgpAsn. |
|
peerBgpMd5Key |
string PeerBgpMd5Key. |
StaticRoute
|
Field |
Description |
|
prefix |
string Prefix. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"privateConnectionId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"name": "string",
"description": "string",
"folderId": "string",
"regionId": "string",
"trunkConnectionId": "string",
"vlanId": "string",
"ipv4Peering": {
"peeringSubnet": "string",
"peerIp": "string",
"cloudIp": "string",
"peerBgpAsn": "string",
"cloudBgpAsn": "string",
"peerBgpMd5Key": "string"
},
"ipv4StaticRoutes": [
{
"prefix": "string"
}
],
"labels": "object",
"status": "string",
"createdAt": "string"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
UpdatePrivateConnectionMetadata Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdatePrivateConnectionMetadata
|
Field |
Description |
|
privateConnectionId |
string ID of the PrivateConnection resource. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |
PrivateConnection
A PrivateConnection resource.
|
Field |
Description |
|
id |
string ID of the privateConnection. |
|
name |
string Name of the privateConnection. |
|
description |
string Optional description of the privateConnection. 0-256 characters long. |
|
folderId |
string ID of the folder that the privateConnection belongs to. |
|
regionId |
string ID of the region that the privateConnection belongs to. |
|
trunkConnectionId |
string ID of the trunk_connection that the privateConnection belongs to. |
|
vlanId |
string (int64) VLAN_ID that the privateConnection uses in multiplexing. |
|
ipv4Peering |
IPv4 peering config of connection |
|
ipv4StaticRoutes[] |
IPv4 StaticRoute config of connection |
|
labels |
object (map<string, string>) Resource labels, |
|
status |
enum (Status) Status of the privateConnection.
|
|
createdAt |
string (date-time) Creation timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
Peering
|
Field |
Description |
|
peeringSubnet |
string PeeringSubnet. |
|
peerIp |
string PeerIp. |
|
cloudIp |
string CloudIp. |
|
peerBgpAsn |
string (int64) PeerBgpAsn. |
|
cloudBgpAsn |
string (int64) CloudBgpAsn. |
|
peerBgpMd5Key |
string PeerBgpMd5Key. |
StaticRoute
|
Field |
Description |
|
prefix |
string Prefix. |