service_bindings
Creates, updates, deletes, gets or lists a service_bindings
resource.
Overview
Name | service_bindings |
Type | Resource |
Id | google.networkservices.service_bindings |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/ . |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. |
description | string | Optional. A free-text description of the resource. Max length 1024 characters. |
labels | object | Optional. Set of label tags associated with the ServiceBinding resource. |
service | string | Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/* . This field is for Service Directory integration which will be deprecated soon. |
serviceId | string | Output only. The unique identifier of the Service Directory Service against which the ServiceBinding 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. This field is for Service Directory integration which will be deprecated soon. |
updateTime | string (google-datetime) | Output only. The timestamp when the resource was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/ . |
createTime | string (google-datetime) | Output only. The timestamp when the resource was created. |
description | string | Optional. A free-text description of the resource. Max length 1024 characters. |
labels | object | Optional. Set of label tags associated with the ServiceBinding resource. |
service | string | Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/* . This field is for Service Directory integration which will be deprecated soon. |
serviceId | string | Output only. The unique identifier of the Service Directory Service against which the ServiceBinding 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. This field is for Service Directory integration which will be deprecated soon. |
updateTime | string (google-datetime) | Output only. The timestamp when the resource was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , serviceBindingsId | Gets details of a single ServiceBinding. | |
list | select | projectsId , locationsId | pageSize , pageToken | Lists ServiceBinding in a given project and location. |
create | insert | projectsId , locationsId | serviceBindingId | Creates a new ServiceBinding in a given project and location. |
patch | update | projectsId , locationsId , serviceBindingsId | updateMask | Updates the parameters of a single ServiceBinding. |
delete | delete | projectsId , locationsId , serviceBindingsId | Deletes a single ServiceBinding. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
serviceBindingsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
serviceBindingId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets details of a single ServiceBinding.
SELECT
name,
createTime,
description,
labels,
service,
serviceId,
updateTime
FROM google.networkservices.service_bindings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND serviceBindingsId = '{{ serviceBindingsId }}' -- required;
Lists ServiceBinding in a given project and location.
SELECT
name,
createTime,
description,
labels,
service,
serviceId,
updateTime
FROM google.networkservices.service_bindings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
INSERT
examples
- create
- Manifest
Creates a new ServiceBinding in a given project and location.
INSERT INTO google.networkservices.service_bindings (
data__name,
data__description,
data__service,
data__labels,
projectsId,
locationsId,
serviceBindingId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ service }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ serviceBindingId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: service_bindings
props:
- name: projectsId
value: string
description: Required parameter for the service_bindings resource.
- name: locationsId
value: string
description: Required parameter for the service_bindings resource.
- name: name
value: string
description: >
Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/*/serviceBindings/`.
- name: description
value: string
description: >
Optional. A free-text description of the resource. Max length 1024 characters.
- name: service
value: string
description: >
Optional. The full Service Directory Service name of the format `projects/*/locations/*/namespaces/*/services/*`. This field is for Service Directory integration which will be deprecated soon.
- name: labels
value: object
description: >
Optional. Set of label tags associated with the ServiceBinding resource.
- name: serviceBindingId
value: string
UPDATE
examples
- patch
Updates the parameters of a single ServiceBinding.
UPDATE google.networkservices.service_bindings
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__service = '{{ service }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceBindingsId = '{{ serviceBindingsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single ServiceBinding.
DELETE FROM google.networkservices.service_bindings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceBindingsId = '{{ serviceBindingsId }}' --required;