Cloud DNS API, gRPC: DnsZoneService
A set of methods for managing DNS zones.
Call | Description |
---|---|
Get | Returns the specified DNS zone. |
List | Retrieves the list of DNS zones in the specified folder. |
Create | Creates a DNS zone in the specified folder. |
Update | Updates the specified DNS zone. |
Delete | Deletes the specified DNS zone. |
GetRecordSet | Returns the specified record set. |
ListRecordSets | Retrieves the list of record sets in the specified folder. |
UpdateRecordSets | Method with strict control for changing zone state. |
UpsertRecordSets | Method without strict control for changing zone state. |
ListOperations | Lists operations for the specified DNS zone. |
ListAccessBindings | Lists existing access bindings for the specified DNS zone. |
SetAccessBindings | Sets access bindings for the specified DNS zone. |
UpdateAccessBindings | Updates access bindings for the specified DNS zone. |
UpdatePrivateNetworks | Atomically updates zone private networks |
Calls DnsZoneService
Get
Returns the specified DNS zone.
To get the list of all available DNS zones, make a List request.
rpc Get (GetDnsZoneRequest) returns (DnsZone)
GetDnsZoneRequest
Field | Description |
---|---|
dns_zone_id | string Required. ID of the DNS zone to return. To get a DNS zone ID, make a DnsZoneService.List request. |
DnsZone
Field | Description |
---|---|
id | string ID of the DNS zone. Generated at creation time. |
folder_id | string ID of the folder that the DNS zone belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp. |
name | string Name of the DNS zone. The name is unique within the folder. |
description | string Description of the DNS zone. |
labels | map<string,string> DNS zone labels as key:value pairs. |
zone | string DNS zone suffix. |
private_visibility | PrivateVisibility Privately visible zone settings. Specifies whether records within the zone are visible from a VPC networks only. |
public_visibility | PublicVisibility Publicly visible zone settings. Indicates whether records within the zone are publicly visible. |
deletion_protection | bool Prevents accidental zone removal. |
PrivateVisibility
Field | Description |
---|---|
network_ids[] | string Network IDs. The number of elements must be in the range 0-100. The string length in characters for each value must be equal to 20. |
PublicVisibility
Empty.
List
Retrieves the list of DNS zones in the specified folder.
rpc List (ListDnsZonesRequest) returns (ListDnsZonesResponse)
ListDnsZonesRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder to list DNS zones in. To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request. |
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than page_size , the service returns a ListDnsZonesResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
page_token | string Page token. To get the next page of results, set page_token to the ListDnsZonesResponse.next_page_token returned by a previous list request. The maximum string length in characters is 1000. |
filter | string A filter expression that filters DNS zones listed in the response. The expression must specify:
name=my-dns-zone . The maximum string length in characters is 1000. |
ListDnsZonesResponse
Field | Description |
---|---|
dns_zones[] | DnsZone List of DNS zones in the specified folder. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListDnsZonesRequest.page_size, use next_page_token as the value for the ListDnsZonesRequest.page_token parameter in the next list request. Each subsequent page will have its own next_page_token to continue paging through the results. |
DnsZone
Field | Description |
---|---|
id | string ID of the DNS zone. Generated at creation time. |
folder_id | string ID of the folder that the DNS zone belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp. |
name | string Name of the DNS zone. The name is unique within the folder. |
description | string Description of the DNS zone. |
labels | map<string,string> DNS zone labels as key:value pairs. |
zone | string DNS zone suffix. |
private_visibility | PrivateVisibility Privately visible zone settings. Specifies whether records within the zone are visible from a VPC networks only. |
public_visibility | PublicVisibility Publicly visible zone settings. Indicates whether records within the zone are publicly visible. |
deletion_protection | bool Prevents accidental zone removal. |
PrivateVisibility
Field | Description |
---|---|
network_ids[] | string Network IDs. The number of elements must be in the range 0-100. The string length in characters for each value must be equal to 20. |
PublicVisibility
Empty.
Create
Creates a DNS zone in the specified folder.
rpc Create (CreateDnsZoneRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:CreateDnsZoneMetadata
Operation.response:DnsZone
CreateDnsZoneRequest
Field | Description |
---|---|
folder_id | string Required. ID of the folder to create DNS zones in. To get a folder ID, make a yandex.cloud.resourcemanager.v1.FolderService.List request. The maximum string length in characters is 50. |
name | string Name of the DNS zone. The name must be unique within the folder. Value must match the regular expression |[a-z]([-a-z0-9]{0,61}[a-z0-9])? . |
description | string Description of the DNS zone. The maximum string length in characters is 256. |
labels | map<string,string> DNS zone labels as key:value pairs. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression [-_./\\@0-9a-z]* . The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]* . |
zone | string Required. DNS zone suffix. The maximum string length in characters is 255. Value must match the regular expression [.]|[a-z0-9][-a-z0-9.]*\\. . |
private_visibility | PrivateVisibility Privately visible zone settings. At least one of two visibility fields must be set. |
public_visibility | PublicVisibility Publicly visible zone settings. At least one of two visibility fields must be set. |
deletion_protection | bool Prevents accidental zone removal. |
PrivateVisibility
Field | Description |
---|---|
network_ids[] | string Network IDs. The number of elements must be in the range 0-100. The string length in characters for each value must be equal to 20. |
PublicVisibility
Empty.
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
CreateDnsZoneMetadata
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone that is being created. |
DnsZone
Field | Description |
---|---|
id | string ID of the DNS zone. Generated at creation time. |
folder_id | string ID of the folder that the DNS zone belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp. |
name | string Name of the DNS zone. The name is unique within the folder. |
description | string Description of the DNS zone. |
labels | map<string,string> DNS zone labels as key:value pairs. |
zone | string DNS zone suffix. |
private_visibility | PrivateVisibility Privately visible zone settings. Specifies whether records within the zone are visible from a VPC networks only. |
public_visibility | PublicVisibility Publicly visible zone settings. Indicates whether records within the zone are publicly visible. |
deletion_protection | bool Prevents accidental zone removal. |
Update
Updates the specified DNS zone.
rpc Update (UpdateDnsZoneRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateDnsZoneMetadata
Operation.response:DnsZone
UpdateDnsZoneRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to update. To get the DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
update_mask | google.protobuf.FieldMask Field mask specifying which fields of the DNS zone resource are going to be updated. |
name | string New name for the DNS zone. The name must be unique within the folder. Value must match the regular expression |[a-z]([-a-z0-9]{0,61}[a-z0-9])? . |
description | string New description of the DNS zone. The maximum string length in characters is 256. |
labels | map<string,string> DNS zone labels as key:value pairs. Existing set of labels is completely replaced by the provided set, so if you just want to add or remove a label:
[-_./\\@0-9a-z]* . The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]* . |
private_visibility | PrivateVisibility Change network IDs for private visibility. |
public_visibility | PublicVisibility Public visibility configuration. |
deletion_protection | bool Prevents accidental zone removal. |
PrivateVisibility
Field | Description |
---|---|
network_ids[] | string Network IDs. The number of elements must be in the range 0-100. The string length in characters for each value must be equal to 20. |
PublicVisibility
Empty.
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateDnsZoneMetadata
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone that is being updated. |
DnsZone
Field | Description |
---|---|
id | string ID of the DNS zone. Generated at creation time. |
folder_id | string ID of the folder that the DNS zone belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp. |
name | string Name of the DNS zone. The name is unique within the folder. |
description | string Description of the DNS zone. |
labels | map<string,string> DNS zone labels as key:value pairs. |
zone | string DNS zone suffix. |
private_visibility | PrivateVisibility Privately visible zone settings. Specifies whether records within the zone are visible from a VPC networks only. |
public_visibility | PublicVisibility Publicly visible zone settings. Indicates whether records within the zone are publicly visible. |
deletion_protection | bool Prevents accidental zone removal. |
Delete
Deletes the specified DNS zone.
rpc Delete (DeleteDnsZoneRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:DeleteDnsZoneMetadata
Operation.response:google.protobuf.Empty
DeleteDnsZoneRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to delete. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
DeleteDnsZoneMetadata
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone that is being deleted. |
GetRecordSet
Returns the specified record set.
rpc GetRecordSet (GetDnsZoneRecordSetRequest) returns (RecordSet)
GetDnsZoneRecordSetRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to get record set from. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
name | string Required. Name of the record set. The maximum string length in characters is 255. |
type | string Required. Type of the record set. The maximum string length in characters is 10. |
RecordSet
Field | Description |
---|---|
name | string Domain name. The string length in characters must be 1-254. |
type | string Record type. The string length in characters must be 1-20. |
ttl | int64 Time to live in seconds. Acceptable values are 0 to 2147483647, inclusive. |
data[] | string Data of the record set. The number of elements must be in the range 1-100. The string length in characters for each value must be 1-255. |
ListRecordSets
Retrieves the list of record sets in the specified folder.
rpc ListRecordSets (ListDnsZoneRecordSetsRequest) returns (ListDnsZoneRecordSetsResponse)
ListDnsZoneRecordSetsRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to list record sets in. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than page_size , the service returns a ListDnsZoneRecordSetsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
page_token | string Page token. To get the next page of results, set page_token to the ListDnsZoneRecordSetsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 1000. |
filter | string A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by AND operator: <condition1> [AND <condition2> [<...> AND <conditionN>]] . Each condition has the form <field> <operator> <value> , where:
= or != ), the value is a string in double (" ) or single (' ) quotes. C-style escape sequences are supported (\" turns to " , \' to ' , \\ to backslash). 3.2. In case of a list of values condition (IN or NOT IN ), the value is (<string1>, <string2>, .., <stringN>) , where <string> is a string in double (" ) or single (' ) quotes. Examples of a filter: name="my-record-set" , type IN ("MX","A") AND name="works.on.my.machine." . The maximum string length in characters is 1000. |
ListDnsZoneRecordSetsResponse
Field | Description |
---|---|
record_sets[] | RecordSet List of record sets in the specified DNS zone. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListDnsZoneRecordSetsRequest.page_size, use next_page_token as the value for the ListDnsZoneRecordSetsRequest.page_token parameter in the next list request. Each subsequent page will have its own next_page_token to continue paging through the results. |
RecordSet
Field | Description |
---|---|
name | string Domain name. The string length in characters must be 1-254. |
type | string Record type. The string length in characters must be 1-20. |
ttl | int64 Time to live in seconds. Acceptable values are 0 to 2147483647, inclusive. |
data[] | string Data of the record set. The number of elements must be in the range 1-100. The string length in characters for each value must be 1-255. |
UpdateRecordSets
Method with strict control for changing zone state. Returns error when:
- Deleted record is not found.
- Found record with matched type and name but different TTL or value.
- Attempted to add record with existing name and type.
rpc UpdateRecordSets (UpdateRecordSetsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateRecordSetsMetadata
Operation.response:RecordSetDiff
UpdateRecordSetsRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to update record sets in. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
deletions[] | RecordSet List of record sets to delete. The maximum number of elements is 1000. |
additions[] | RecordSet List of record sets to add. The maximum number of elements is 1000. |
RecordSet
Field | Description |
---|---|
name | string Domain name. The string length in characters must be 1-254. |
type | string Record type. The string length in characters must be 1-20. |
ttl | int64 Time to live in seconds. Acceptable values are 0 to 2147483647, inclusive. |
data[] | string Data of the record set. The number of elements must be in the range 1-100. The string length in characters for each value must be 1-255. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateRecordSetsMetadata
Empty.
RecordSetDiff
Field | Description |
---|---|
additions[] | RecordSet List of record sets that were added |
deletions[] | RecordSet List of record sets that were deleted |
UpsertRecordSets
Method without strict control for changing zone state. Nothing happens if deleted record doesn't exist. Deletes records that match all specified fields which allows to delete only specified records from a record set.
rpc UpsertRecordSets (UpsertRecordSetsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpsertRecordSetsMetadata
Operation.response:RecordSetDiff
UpsertRecordSetsRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to upsert record sets to. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
deletions[] | RecordSet Delete only specified records from corresponding record sets. The maximum number of elements is 1000. |
replacements[] | RecordSet Entirely replace specified record sets. The maximum number of elements is 1000. |
merges[] | RecordSet Replace specified records or add new ones if no such record sets exists. The maximum number of elements is 1000. |
RecordSet
Field | Description |
---|---|
name | string Domain name. The string length in characters must be 1-254. |
type | string Record type. The string length in characters must be 1-20. |
ttl | int64 Time to live in seconds. Acceptable values are 0 to 2147483647, inclusive. |
data[] | string Data of the record set. The number of elements must be in the range 1-100. The string length in characters for each value must be 1-255. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpsertRecordSetsMetadata
Empty.
RecordSetDiff
Field | Description |
---|---|
additions[] | RecordSet List of record sets that were added |
deletions[] | RecordSet List of record sets that were deleted |
ListOperations
Lists operations for the specified DNS zone.
rpc ListOperations (ListDnsZoneOperationsRequest) returns (ListDnsZoneOperationsResponse)
ListDnsZoneOperationsRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone to list operations for. To get a DNS zone ID, make a DnsZoneService.List request. The string length in characters must be equal to 20. |
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than page_size , the service returns a ListDnsZoneOperationsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 1000, inclusive. |
page_token | string Page token. To get the next page of results, set page_token to the ListDnsZoneOperationsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 1000. |
filter | string A filter expression that filters DNS zones listed in the response. The expression must specify:
name=my-dns-zone . The maximum string length in characters is 1000. |
ListDnsZoneOperationsResponse
Field | Description |
---|---|
operations[] | operation.Operation List of operations for the specified DNS zone. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListDnsZoneOperationsRequest.page_size, use next_page_token as the value for the ListDnsZoneOperationsRequest.page_token parameter in the next list request. Each subsequent page will have its own next_page_token to continue paging through the results. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty |
ListAccessBindings
Lists existing access bindings for the specified DNS zone.
rpc ListAccessBindings (ListAccessBindingsRequest) returns (ListAccessBindingsResponse)
ListAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource to list access bindings for. To get the resource ID, use a corresponding List request. For example, use the yandex.cloud.resourcemanager.v1.CloudService.List request to get the Cloud resource ID. The maximum string length in characters is 50. |
page_size | int64 The maximum number of results per page that should be returned. If the number of available results is larger than page_size , the service returns a ListAccessBindingsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100. The maximum value is 1000. |
page_token | string Page token. Set page_token to the ListAccessBindingsResponse.next_page_token returned by a previous list request to get the next page of results. The maximum string length in characters is 100. |
ListAccessBindingsResponse
Field | Description |
---|---|
access_bindings[] | AccessBinding List of access bindings for the specified resource. |
next_page_token | string This token allows you to get the next page of results for list requests. If the number of results is larger than ListAccessBindingsRequest.page_size, use the next_page_token as the value for the ListAccessBindingsRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
SetAccessBindings
Sets access bindings for the specified DNS zone.
rpc SetAccessBindings (SetAccessBindingsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:SetAccessBindingsMetadata
Operation.response:google.protobuf.Empty
SetAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource for which access bindings are being set. To get the resource ID, use a corresponding List request. The maximum string length in characters is 50. |
access_bindings[] | AccessBinding Required. Access bindings to be set. For more information, see Access Bindings. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
SetAccessBindingsMetadata
Field | Description |
---|---|
resource_id | string ID of the resource for which access bindings are being set. |
UpdateAccessBindings
Updates access bindings for the specified DNS zone.
rpc UpdateAccessBindings (UpdateAccessBindingsRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateAccessBindingsMetadata
Operation.response:google.protobuf.Empty
UpdateAccessBindingsRequest
Field | Description |
---|---|
resource_id | string Required. ID of the resource for which access bindings are being updated. The maximum string length in characters is 50. |
access_binding_deltas[] | AccessBindingDelta Required. Updates to access bindings. The number of elements must be greater than 0. |
AccessBindingDelta
Field | Description |
---|---|
action | enum AccessBindingAction Required. The action that is being performed on an access binding.
|
access_binding | AccessBinding Required. Access binding. For more information, see Access Bindings. |
AccessBinding
Field | Description |
---|---|
role_id | string Required. ID of the yandex.cloud.iam.v1.Role that is assigned to the subject . The maximum string length in characters is 50. |
subject | Subject Required. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier. |
Subject
Field | Description |
---|---|
id | string Required. ID of the subject. It can contain one of the following values:
type is system .
type is userAccount , federatedUser or serviceAccount . The maximum string length in characters is 50. |
type | string Required. Type of the subject. It can contain one of the following values:
For more information, see Subject to which the role is assigned. The maximum string length in characters is 100. |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateAccessBindingsMetadata
Field | Description |
---|---|
resource_id | string ID of the resource for which access bindings are being updated. |
UpdatePrivateNetworks
Atomically updates zone private networks
rpc UpdatePrivateNetworks (UpdateDnsZonePrivateNetworksRequest) returns (operation.Operation)
Metadata and response of Operation:
Operation.metadata:UpdateDnsZonePrivateNetworksMetadata
Operation.response:DnsZone
UpdateDnsZonePrivateNetworksRequest
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone which private networks will be updated |
private_network_id_additions[] | string Network IDs to remove |
private_network_id_deletions[] | string Network IDs to add |
Operation
Field | Description |
---|---|
id | string ID of the operation. |
description | string Description of the operation. 0-256 characters long. |
created_at | google.protobuf.Timestamp Creation timestamp. |
created_by | string ID of the user or service account who initiated the operation. |
modified_at | google.protobuf.Timestamp The time when the Operation resource was last modified. |
done | bool If the value is false , it means the operation is still in progress. If true , the operation is completed, and either error or response is available. |
metadata | google.protobuf.Any Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any. |
result | oneof: error or response The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true , exactly one of error or response is set. |
error | google.rpc.Status The error result of the operation in case of failure or cancellation. |
response | google.protobuf.Any if operation finished successfully. |
UpdateDnsZonePrivateNetworksMetadata
Field | Description |
---|---|
dns_zone_id | string ID of the DNS zone which private networks was updated |
DnsZone
Field | Description |
---|---|
id | string ID of the DNS zone. Generated at creation time. |
folder_id | string ID of the folder that the DNS zone belongs to. |
created_at | google.protobuf.Timestamp Creation timestamp. |
name | string Name of the DNS zone. The name is unique within the folder. |
description | string Description of the DNS zone. |
labels | map<string,string> DNS zone labels as key:value pairs. |
zone | string DNS zone suffix. |
private_visibility | PrivateVisibility Privately visible zone settings. Specifies whether records within the zone are visible from a VPC networks only. |
public_visibility | PublicVisibility Publicly visible zone settings. Indicates whether records within the zone are publicly visible. |
deletion_protection | bool Prevents accidental zone removal. |
PrivateVisibility
Field | Description |
---|---|
network_ids[] | string Network IDs. The number of elements must be in the range 0-100. The string length in characters for each value must be equal to 20. |
PublicVisibility
Empty.