discoverInstancesRevision

Discovers the increasing revision associated with an instance.

Samples


fun main() { 
   //sampleStart 
   // Discovers the instances revision in a shared namespace by specifying the OwnerAccount parameter,
// useful when working with shared namespaces.
val resp = serviceDiscoveryClient.discoverInstancesRevision {
    namespaceName = "example-shared-namespace"
    serviceName = "shared-service"
    ownerAccount = "123456789012"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // The following example discovers the revision ID for a registered instance.
val resp = serviceDiscoveryClient.discoverInstancesRevision {
    namespaceName = "example-namespace"
    serviceName = "example-service"
} 
   //sampleEnd
}