Class GetService
Inheritance
System.Object
GetService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Consul
Assembly: Pulumi.Consul.dll
Syntax
public static class GetService
Methods
View SourceInvokeAsync(GetServiceArgs, InvokeOptions)
consul..Service provides details about a specific Consul service in a
given datacenter. The results include a list of nodes advertising the specified
service, the node's IP address, port number, node ID, etc. By specifying a
different datacenter in the query_options it is possible to retrieve a list of
services from a different WAN-attached Consul datacenter.
This data source is different from the consul..getServices (plural) data
source, which provides a summary of the current Consul services.
{{% examples %}} {{% /examples %}}
Declaration
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServiceArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServiceResult> |