discovered_services
Creates, updates, deletes, gets or lists a discovered_services
resource.
Overview
Name | discovered_services |
Type | Resource |
Id | google.apphub.discovered_services |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}" |
serviceProperties | object | Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable. (id: ServiceProperties) |
serviceReference | object | Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable. (id: ServiceReference) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}" |
serviceProperties | object | Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable. (id: ServiceProperties) |
serviceReference | object | Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable. (id: ServiceReference) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , discoveredServicesId | Gets a Discovered Service in a host project and location. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists Discovered Services that can be added to an Application in a host project and location. |
lookup | exec | projectsId , locationsId | uri | Lists a Discovered Service in a host project and location, with a given resource URI. |
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 |
---|---|---|
discoveredServicesId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
uri | string |
SELECT
examples
- get
- list
Gets a Discovered Service in a host project and location.
SELECT
name,
serviceProperties,
serviceReference
FROM google.apphub.discovered_services
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND discoveredServicesId = '{{ discoveredServicesId }}' -- required;
Lists Discovered Services that can be added to an Application in a host project and location.
SELECT
name,
serviceProperties,
serviceReference
FROM google.apphub.discovered_services
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
Lifecycle Methods
- lookup
Lists a Discovered Service in a host project and location, with a given resource URI.
EXEC google.apphub.discovered_services.lookup
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@uri='{{ uri }}';