This page provides an API reference for the HCP Consul Central API, a RESTful API for the hosted management plane service available through HCP Consul. HCP Consul Central is an interface that centralizes management operations across all of your Consul clusters. It provides global visibility and control for both HashiCorp-managed and self-managed Consul clusters, even when you deploy services in multiple cloud environments and regions.
Refer to the HCP Consul Central API Overview for more information and instructions on how to authenticate and interact with the API.
List Clusters
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ consul/ {parent_resource_name}/ clusters
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Query param filter: state
of the cluster. This can be combination of creating
, 'pending', running
, disconnected
.
Query param filter: type
of the cluster. This can be combination of self_managed
, hcp-managed
.
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
ClusterConfig holds the configuration for a Consul cluster.
ConsulConfig
exposes user settable configurations for a Consul cluster.
NetworkConfig configures the network of the Consul cluster.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
Get Cluster
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {resource_name}
ClusterConfig holds the configuration for a Consul cluster.
ConsulConfig
exposes user settable configurations for a Consul cluster.
NetworkConfig configures the network of the Consul cluster.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
List Nodes
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ consul/ {project_resource_name}/ nodes
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Sorts the nodes based on a field. Allowed fields: name
, partition
, created_at
, updated_at
The value needs to be of the format <Field Name> {asc/desc}
For example: name
, partition asc
, name desc
.
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
Get Node
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {parent_resource_name}/ node/ {node_name}
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
List Cluster Nodes
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {parent_resource_name}/ nodes
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Sorts the nodes based on a field. Allowed fields: name
, partition
, created_at
, updated_at
. The value needs to be of the format <{name/partition/created_at/updated_at} {asc/desc}>
For example: partition asc
, name desc
.
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
List Services
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ consul/ {project_resource_name}/ services
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Sorts the services based on a field. Allowed fields: name
, health
. The value needs to be of the format <Field Name> {asc/desc}
For example: name
, name asc
, name desc
.
Query param filter: status
of the service. This can be combination of passing
, warning
, critical
, none
.
Query param filter: kind
of the service. This can be combination of typical
, connect-proxy
, destination
, api_gateway
, ingress_gateway
, terminating_gateway
, mesh_gateway
.
Query param filter: whether the service is in the service mesh or not. Possible values: true
or false
.
Search query to filter by. Searches across service name
, cluster_id
, partition
, namespace
, sameness_group
, tags
.
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
Get Service
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {cluster_resource_name}/ service/ {service_name}
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
List Cluster Services
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {cluster_resource_name}/ services
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Sorts the services based on a field. Allowed fields: name
, health
. The value needs to be of the format <{name/health} {asc/desc}> For example: name asc
, health desc
.
Query param filter: status
of the service. This can be combination of passing
, warning
, critical
, none
.
Query param filter: kind
of the service. This can be combination of typical
, connect-proxy
, destination
, api-gateway
, ingress-gateway
, terminating-gateway
, mesh-gateway
.
Query param filter: whether the service is in the service mesh or not. Possible values: true
or false
.
Search query to filter by. Searches across service name
, cluster_id
, partition
, namespace
, sameness_group
, tags
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
Get Service Instance
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {cluster_resource_name}/ node/ {node}/ service/ {service_name}/ instance/ {instance_id}
Cluster resource name will be of the form consul/project/<project_id>/cluster/<cluster_id>
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.
List Service Instances
https:/ / api.cloud.hashicorp.com/ 2023-10-10/ {cluster_resource_name}/ service/ {service_name}/ instances
The maximum number of results per page to return. If the number
of available results is larger than page_size
, a next_page_token
is
returned, which you can use to get the next page of results in subsequent
requests. A value of zero causes page_size
to be defaulted.
Specifies a page token to use to retrieve the next page. Set this parameter to the
next_page_token
returned by previous list requests to get the next page of
results. If set, previous_page_token
must not be set.
Specifies a page token to use to retrieve the previous page. Set this parameter to
the previous_page_token
returned by previous list requests to get the
previous page of results. If set, next_page_token
must not be set.
Query param filter: status
of the service. This can be combination of passing
, warning
, critical
, none
.
PaginationResponse is the response holding the page tokens for a paginated list response.
This token allows you to get the previous page of results for list
requests. If the number of results is larger than page_size
, use the
previous_page_token
as a value for the query parameter
previous_page_token
in the next request. The value becomes empty when
there are no more pages.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
An arbitrary serialized message. Visit the protobufAny documentation for more information.