roles
Creates, updates, deletes, gets or lists a roles
resource.
Overview
Name | roles |
Type | Resource |
Id | google.servicenetworking.roles |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional 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. |
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 |
---|---|---|
servicesId | string |
INSERT
examples
- add
- Manifest
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 INTO google.servicenetworking.roles (
data__consumerNetwork,
data__policyBinding,
servicesId
)
SELECT
'{{ consumerNetwork }}',
'{{ policyBinding }}',
'{{ servicesId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: roles
props:
- name: servicesId
value: string
description: Required parameter for the roles resource.
- name: consumerNetwork
value: string
description: >
Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is a project number, as in '12345' {network} is a network name.
- name: policyBinding
value: array
description: >
Required. List of policy bindings to add to shared VPC host project.