Virtual Private Cloud API, REST: PrivateEndpoint.Create
Creates an private endpoint in the specified folder and network.
HTTP request
POST https://vpc.api.cloud.yandex.net/vpc/v1/endpoints
Body parameters
{
"folderId": "string",
"name": "string",
"description": "string",
"labels": "string",
"networkId": "string",
"addressSpec": {
// Includes only one of the fields `addressId`, `internalIpv4AddressSpec`
"addressId": "string",
"internalIpv4AddressSpec": {
"subnetId": "string",
"address": "string"
}
// end of the list of possible fields
},
"dnsOptions": {
"privateDnsRecordsEnabled": "boolean"
},
// Includes only one of the fields `objectStorage`
"objectStorage": "object"
// end of the list of possible fields
}
Field |
Description |
folderId |
string Required field. ID of the folder to create a private endpoint in. To get a folder ID make a |
name |
string Name of the private endpoint. |
description |
string Description of the private endpoint. |
labels |
string Private endpoint labels as |
networkId |
string Required field. ID of the network to create a private endpoint in. |
addressSpec |
Private endpoint address specification. |
dnsOptions |
Private endpoint dns options. |
objectStorage |
object Yandex Cloud Object Storage. Includes only one of the fields Service to connect with via private endpoint. |
AddressSpec
Field |
Description |
addressId |
string ID of IP address to associate with private endpoint. Includes only one of the fields |
internalIpv4AddressSpec |
Internal ipv4 address specification. Includes only one of the fields |
InternalIpv4AddressSpec
Field |
Description |
subnetId |
string Required field. ID of the subnet that address belongs to. |
address |
string Value of address. |
DnsOptions
Field |
Description |
privateDnsRecordsEnabled |
boolean If enabled - vpc will create private dns records for specified service. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"privateEndpointId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "string",
"networkId": "string",
"status": "string",
"address": {
"subnetId": "string",
"address": "string",
"addressId": "string"
},
"dnsOptions": {
"privateDnsRecordsEnabled": "boolean"
},
// Includes only one of the fields `objectStorage`
"objectStorage": "object"
// end of the list of possible fields
}
// 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 |
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. |
CreatePrivateEndpointMetadata
Field |
Description |
privateEndpointId |
string ID of the private endpoint that is being created. |
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. |
PrivateEndpoint
Field |
Description |
id |
string ID of the private endpoint. Generated at creation time. |
folderId |
string ID of the folder that the private endpoint belongs to. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the private endpoint. |
description |
string Description of the private endpoint. 0-256 characters long. |
labels |
string Private endpoint labels as |
networkId |
string ID of the network that the private endpoint belongs to. |
status |
enum (Status) Status of the private endpoint.
|
address |
Private endpoint ip address details. |
dnsOptions |
Private endpoint dns options. |
objectStorage |
object Yandex Cloud Object Storage. Includes only one of the fields Service to connect with via private endpoint. |
EndpointAddress
Private endpoint ip address details.
Field |
Description |
subnetId |
string ID of the subnet that the private endpoint address belongs to. |
address |
string IP address of the private endpoint. |
addressId |
string ID of the private endpoint address. |
DnsOptions
Field |
Description |
privateDnsRecordsEnabled |
boolean If enabled - vpc will create private dns records for specified service. |