Skip to main content

discovered_services

Creates, updates, deletes, gets or lists a discovered_services resource.

Overview

Namediscovered_services
TypeResource
Idgoogle.apphub.discovered_services

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"
servicePropertiesobjectOutput only. Properties of an underlying compute resource that can comprise a Service. These are immutable. (id: ServiceProperties)
serviceReferenceobjectOutput 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, discoveredServicesIdGets a Discovered Service in a host project and location.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Discovered Services that can be added to an Application in a host project and location.
lookupexecprojectsId, locationsIduriLists 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.

NameDatatypeDescription
discoveredServicesIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
uristring

SELECT examples

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;

Lifecycle Methods

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 }}';