consul.getDatacenters
The consul.getDatacenters
data source returns the list of all knwown Consul
datacenters.
Using getDatacenters
function getDatacenters(opts?: InvokeOptions): Promise<GetDatacentersResult>
def get_datacenters(opts: Optional[InvokeOptions] = None) -> GetDatacentersResult
func GetDatacenters(ctx *Context, opts ...InvokeOption) (*GetDatacentersResult, error)
> Note: This function is named GetDatacenters
in the Go SDK.
public static class GetDatacenters
{
public static Task<GetDatacentersResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatacentersResult> getDatacenters(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: consul:index/getDatacenters:getDatacenters
arguments:
# arguments dictionary
getDatacenters Result
The following output properties are available:
- Datacenters List<string>
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- Id string
The provider-assigned unique ID for this managed resource.
- Datacenters []string
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- Id string
The provider-assigned unique ID for this managed resource.
- datacenters List<String>
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- id String
The provider-assigned unique ID for this managed resource.
- datacenters string[]
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- id string
The provider-assigned unique ID for this managed resource.
- datacenters Sequence[str]
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- id str
The provider-assigned unique ID for this managed resource.
- datacenters List<String>
The list of datacenters known. The datacenters will be sorted in ascending order based on the estimated median round trip time from the server to the servers in that datacenter.
- id String
The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- HashiCorp Consul pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
consul
Terraform Provider.