Virtual Private Cloud API, gRPC: PrivateEndpointService.Create
Creates an private endpoint in the specified folder and network.
gRPC request
rpc Create (CreatePrivateEndpointRequest) returns (operation.Operation)
CreatePrivateEndpointRequest
{
"folder_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"network_id": "string",
"address_spec": {
// Includes only one of the fields `address_id`, `internal_ipv4_address_spec`
"address_id": "string",
"internal_ipv4_address_spec": {
"subnet_id": "string",
"address": "string"
}
// end of the list of possible fields
},
"dns_options": {
"private_dns_records_enabled": "bool"
},
// Includes only one of the fields `object_storage`
"object_storage": "ObjectStorage"
// end of the list of possible fields
}
Field |
Description |
folder_id |
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 |
object (map<string, string>) Private endpoint labels as |
network_id |
string Required field. ID of the network to create a private endpoint in. |
address_spec |
Private endpoint address specification. |
dns_options |
Private endpoint dns options. |
object_storage |
Yandex Cloud Object Storage. Includes only one of the fields Service to connect with via private endpoint. |
AddressSpec
Field |
Description |
address_id |
string ID of IP address to associate with private endpoint. Includes only one of the fields |
internal_ipv4_address_spec |
Internal ipv4 address specification. Includes only one of the fields |
InternalIpv4AddressSpec
Field |
Description |
subnet_id |
string Required field. ID of the subnet that address belongs to. |
address |
string Value of address. |
DnsOptions
Field |
Description |
private_dns_records_enabled |
bool If enabled - vpc will create private dns records for specified service. |
ObjectStorage
Yandex Cloud Object Storage.
Field |
Description |
Empty |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"private_endpoint_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"network_id": "string",
"status": "Status",
"address": {
"subnet_id": "string",
"address": "string",
"address_id": "string"
},
"dns_options": {
"private_dns_records_enabled": "bool"
},
// Includes only one of the fields `object_storage`
"object_storage": "ObjectStorage"
// 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. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool 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 |
private_endpoint_id |
string ID of the private endpoint that is being created. |
PrivateEndpoint
Field |
Description |
id |
string ID of the private endpoint. Generated at creation time. |
folder_id |
string ID of the folder that the private endpoint belongs to. |
created_at |
Creation timestamp. |
name |
string Name of the private endpoint. |
description |
string Description of the private endpoint. 0-256 characters long. |
labels |
object (map<string, string>) Private endpoint labels as |
network_id |
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. |
dns_options |
Private endpoint dns options. |
object_storage |
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 |
subnet_id |
string ID of the subnet that the private endpoint address belongs to. |
address |
string IP address of the private endpoint. |
address_id |
string ID of the private endpoint address. |
DnsOptions
Field |
Description |
private_dns_records_enabled |
bool If enabled - vpc will create private dns records for specified service. |
ObjectStorage
Yandex Cloud Object Storage.
Field |
Description |
Empty |