Skip to main content

dns_bind_permission

Creates, updates, deletes, gets or lists a dns_bind_permission resource.

Overview​

Namedns_bind_permission
TypeResource
Idgoogle.vmwareengine.dns_bind_permission

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. 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
principalsarrayOutput 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_dns_bind_permissionselectprojectsId, locationsIdGets 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.
grantexecprojectsId, locationsIdGrants 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.
revokeexecprojectsId, locationsIdRevokes 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring

SELECT examples​

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​

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 }}"
}'
;