dns_bind_permission
Creates, updates, deletes, gets or lists a dns_bind_permission
resource.
Overview
Name | dns_bind_permission |
Type | Resource |
Id | google.vmwareengine.dns_bind_permission |
Fields
The following fields are returned by SELECT
queries:
- get_dns_bind_permission
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Required. Output only. The name of the resource which stores the users/service accounts having the permission to bind to the corresponding intranet VPC of the consumer project. DnsBindPermission is a global resource and location can only be global. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/dnsBindPermission |
principals | array | Output only. Users/Service accounts which have access for binding on the intranet VPC project corresponding to the consumer project. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_dns_bind_permission | select | projectsId , locationsId | Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global. | |
grant | exec | projectsId , locationsId | Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global. | |
revoke | exec | projectsId , locationsId | Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string |
SELECT
examples
- get_dns_bind_permission
Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global.
SELECT
name,
principals
FROM google.vmwareengine.dns_bind_permission
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
Lifecycle Methods
- grant
- revoke
Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global.
EXEC google.vmwareengine.dns_bind_permission.grant
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"principal": "{{ principal }}",
"requestId": "{{ requestId }}"
}';
Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global.
EXEC google.vmwareengine.dns_bind_permission.revoke
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"principal": "{{ principal }}",
"requestId": "{{ requestId }}"
}';