service_bindings
Creates, updates, deletes, gets or lists a service_bindings
resource.
Overview
Name | service_bindings |
Type | Resource |
Id | google.networkservices.service_bindings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name . |
description | string | Optional. A free-text description of the resource. Max length 1024 characters. |
createTime | string | Output only. The timestamp when the resource was created. |
labels | object | Optional. Set of label tags associated with the ServiceBinding resource. |
service | string | Required. The full Service Directory Service name of the format projects//locations//namespaces//services/ |
serviceId | string | Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, serviceBindingsId | Gets details of a single ServiceBinding. |
list | SELECT | locationsId, projectsId | Lists ServiceBinding in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new ServiceBinding in a given project and location. |
delete | DELETE | locationsId, projectsId, serviceBindingsId | Deletes a single ServiceBinding. |
SELECT
examples
Lists ServiceBinding in a given project and location.
SELECT
name,
description,
createTime,
labels,
service,
serviceId,
updateTime
FROM google.networkservices.service_bindings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new service_bindings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networkservices.service_bindings (
locationsId,
projectsId,
name,
description,
service,
labels
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ service }}',
'{{ labels }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: service
value: string
- name: serviceId
value: string
- name: labels
value: object
DELETE
example
Deletes the specified service_bindings
resource.
/*+ delete */
DELETE FROM google.networkservices.service_bindings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceBindingsId = '{{ serviceBindingsId }}';