Skip to main content

roles

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

Overview

Nameroles
TypeResource
Idgoogle.servicenetworking.roles

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
addINSERTservicesIdService producers can use this method to add roles in the shared VPC host project. Each role is bound to the provided member. Each role must be selected from within an allowlisted set of roles. Each role is applied at only the granularity specified in the allowlist.

INSERT example

Use the following StackQL query and manifest file to create a new roles resource.

/*+ create */
INSERT INTO google.servicenetworking.roles (
servicesId,
policyBinding,
consumerNetwork
)
SELECT
'{{ servicesId }}',
'{{ policyBinding }}',
'{{ consumerNetwork }}'
;