roles
Creates, updates, deletes, gets or lists a roles
resource.
Overview
Name | roles |
Type | Resource |
Id | google.servicenetworking.roles |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add | INSERT | servicesId | Service 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.servicenetworking.roles (
servicesId,
policyBinding,
consumerNetwork
)
SELECT
'{{ servicesId }}',
'{{ policyBinding }}',
'{{ consumerNetwork }}'
;
- name: your_resource_model_name
props:
- name: policyBinding
value:
- - name: member
value: string
- name: role
value: string
- name: consumerNetwork
value: string