Skip to main content

Consul.NET

.NET client library for the Consul HTTP API

Downloads
NuGet
CI
License
Contributors
Contribute with GitPod
.NET Framework: >= 4.6.1
.NET Core: >= 2.0.0
dotnet add package Consul

Curious about what's next? try the โšก preview version

Easy to Use

Consul.NET was designed by humans, for humans. It's meant to be intuitive, simple and easy to use.

Open-Source

Consul.NET is open-source and free to use. It's developed by the community and for the community.

Production Ready

Consul.NET is used in production by many companies and is battle-tested.

Supported APIs

Consul API: 1.7.14

This version indicates the version of Consul API that is fully supported. Recent versions may still work, but with some missing features.

โœ… supported ยท ๐Ÿšง in progress ยท โŒ not supported

GroupEndpointRouteStatus
ACLsBootstrap ACLsPUT v1/acl/bootstrapโœ…
Check ACL ReplicationGET v1/acl/replicationโœ…
Login to Auth MethodPOST v1/acl/loginโœ…
Logout from Auth MethodPOST v1/acl/logoutโœ…
OIDC Authorization URL RequestPOST v1/acl/oidc/auth-urlโŒ
OIDC CallbackPOST v1/acl/oidc/callbackโŒ
ACL-TokensCreate a TokenPUT v1/acl/tokenโœ…
Read a TokenGET v1/acl/token/:AccessorIDโœ…
Read Self TokenGET v1/acl/token/selfโœ…
Update a TokenPUT v1/acl/token/:AccessorIDโœ…
Clone a TokenPUT v1/acl/token/:AccessorID/cloneโœ…
Delete a TokenDELETE v1/acl/token/:AccessorIDโœ…
List TokensGET v1/acl/tokensโœ…
ACL-PoliciesCreate a PolicyPUT v1/acl/policyโœ…
Read a PolicyGET v1/acl/policy/:idโœ…
Read a Policy by NameGET v1/acl/policy/name/:nameโœ…
Update a PolicyPUT v1/acl/policy/:idโœ…
Delete a PolicyDELETE v1/acl/policy/:idโœ…
List PoliciesGET v1/acl/policiesโœ…
ACL-Templated PoliciesRead a templated policy by nameGET v1/acl/templated-policy/name/:nameโœ…
Preview a templated policyPOST v1/acl/templated-policy/preview/:nameโœ…
List templated policiesGET v1/acl/templated-policiesโœ…
ACL-RolesCreate a RolePUT v1/acl/roleโœ…
Read a RoleGET v1/acl/role/:idโœ…
Read a Role by NameGET v1/acl/role/name/:nameโœ…
Update a RolePUT v1/acl/role/:idโœ…
Delete a RoleDELETE v1/acl/role/:idโœ…
List RolesGET v1/acl/rolesโœ…
ACL-Auth MethodsCreate an Auth MethodPUT v1/acl/auth-methodโœ…
Read an Auth MethodGET v1/acl/auth-method/:nameโœ…
Update an Auth MethodPUT v1/acl/auth-method/:nameโœ…
Delete an Auth MethodDELETE v1/acl/auth-method/:nameโœ…
List Auth MethodsGET v1/acl/auth-methodsโœ…
ACL-Binding RulesCreate a Binding RulePUT v1/acl/binding-ruleโœ…
Read a Binding RuleGET v1/acl/binding-rule/:idโœ…
Update a Binding RulePUT v1/acl/binding-rule/:idโœ…
Delete a Binding RuleDELETE v1/acl/binding-rule/:idโœ…
List Binding RulesGET v1/acl/binding-rulesโœ…
Admin PartitionCreate a PartitionPUT v1/partitionโŒ
Read a PartitionGET v1/partition/:nameโŒ
Update a PartitionPUT v1/partition/:nameโŒ
Delete a PartitionDELETE v1/partition/:nameโŒ
List all PartitionsGET v1/partitionsโŒ
AgentRetrieve host informationGET v1/agent/hostโœ…
Retrieve version informationGET v1/agent/versionโœ…
List MembersGET v1/agent/membersโœ…
Read ConfigurationGET v1/agent/selfโœ…
Reload AgentPUT v1/agent/reloadโœ…
Enable Maintenance ModePUT v1/agent/maintenanceโœ…
View MetricsGET v1/agent/metricsโœ…
Stream LogsGET v1/agent/monitorโœ…
Join AgentPUT v1/agent/join/:addressโœ…
Graceful Leave and ShutdownPUT v1/agent/leaveโœ…
Force Leave and ShutdownPUT v1/agent/force-leave/:nodeโœ…
Update ACL TokensPUT v1/agent/token/defaultโŒ
Update ACL TokensPUT v1/agent/token/agentโŒ
Update ACL TokensPUT v1/agent/token/agent_recoveryโŒ
Update ACL TokensPUT v1/agent/token/replicationโŒ
Update ACL TokensPUT v1/agent/token/agent_master๐Ÿ›‘ (Deprecated in 1.11)
Update ACL TokensPUT v1/agent/token/acl_token๐Ÿ›‘ (Deprecated in 1.4.3)
Update ACL TokensPUT v1/agent/token/acl_agent_token๐Ÿ›‘ (Deprecated in 1.4.3)
Update ACL TokensPUT v1/agent/token/acl_agent_master_token๐Ÿ›‘ (Deprecated in 1.4.3)
Update ACL TokensPUT v1/agent/token/acl_replication_token๐Ÿ›‘ (Deprecated in 1.4.3)
Agent-ChecksList ChecksGET v1/agent/checksโœ…
Register CheckPUT v1/agent/check/registerโœ…
Deregister CheckPUT v1/agent/check/deregister/:check_idโœ…
TTL Check PassPUT v1/agent/check/pass/:check_idโœ…
TTL Check WarnPUT v1/agent/check/warn/:check_idโœ…
TTL Check FailPUT v1/agent/check/fail/:check_idโœ…
TTL Check UpdatePUT /agent/check/update/:check_idโœ…
Agent-ServicesList ServicesGET v1/agent/servicesโœ…
Get Service ConfigurationGET v1/agent/service/:service_idโœ…
Get local service healthGET v1/agent/health/service/name/:service_nameโœ…
Get local service health by IDGET v1/agent/health/service/id/:service_idโœ…
Register ServicePUT v1/agent/service/registerโœ…
Deregister ServicePUT v1/agent/service/deregister/:service_idโœ…
Enable Maintenance ModePUT v1/agent/service/maintenance/:service_idโœ…
ConnectAuthorizePOST v1/agent/connect/authorizeโœ…
Certificate Authority (CA) RootsGET v1/agent/connect/ca/rootsโœ…
Service Leaf CertificateGET v1/agent/connect/ca/leaf/:serviceโœ…
CatalogRegister EntityPUT v1/catalog/registerโœ…
Deregister EntityPUT v1/catalog/deregisterโœ…
List DatacentersGET v1/catalog/datacentersโœ…
List NodesGET v1/catalog/nodesโœ…
List ServicesGET v1/catalog/servicesโœ…
List Nodes for ServiceGET v1/catalog/service/:serviceโœ…
List Nodes for Mesh-capable ServiceGET v1/catalog/connect/:serviceโœ…
Retrieve Map of Services for a NodeGET v1/catalog/node/:nodeโœ…
List Services for NodeGET v1/catalog/node-services/:nodeโœ…
List Services for GatewayGET v1/catalog/gateway-services/:gatewayโœ…
Cluster PeeringGenerate a Peering TokenPOST v1/peering/tokenโœ…
Establish a Peering ConnectionPOST v1/peering/establishโŒ
Read a Peering ConnectionGET v1/peering/:nameโœ…
Delete a Peering ConnectionDELETE v1/peering/:nameโœ…
List all PeeringsGET v1/peeringsโœ…
ConfigApply ConfigurationPUT v1/configโœ…
Get ConfigurationGET v1/config/:kind/:nameโœ…
List ConfigurationsGET v1/config/:kind/:nameโœ…
Delete ConfigurationDELETE v1/config/:kind/:nameโœ…
ConnectList CA Root CertificatesGET v1/connect/ca/rootsโœ…
Get CA ConfigurationGET v1/connect/ca/configurationโœ…
Update CA ConfigurationPUT v1/connect/ca/configurationโœ…
Upsert Intention by NamePUT v1/connect/intentions/exactโœ…
Create Intention with IDPOST v1/connect/intentions๐Ÿ›‘ (Deprecated in 1.9.0)
Update Intention by IDPUT v1/connect/intentions/:uuid๐Ÿ›‘ (Deprecated in 1.9.0)
Read Specific Intention by NameGET v1/connect/intentions/exactโœ…
Read Specific Intention by IDGET v1/connect/intentions/:uuid๐Ÿ›‘ (Deprecated in 1.9.0)
List IntentionsGET v1/connect/intentionsโœ…
Delete Intention by NameDELETE v1/connect/intentions/exactโœ…
Delete Intention by IDDELETE v1/connect/intentions/:uuid๐Ÿ›‘ (Deprecated in 1.9.0)
Check Intention ResultGET v1/connect/intentions/checkโœ…
List Matching IntentionsGET v1/connect/intentions/matchโœ…
CoordinateRead WAN CoordinatesGET v1/coordinate/datacentersโœ…
Read LAN Coordinates for all nodesGET v1/coordinate/nodesโœ…
Read LAN Coordinates for a nodeGET v1/coordinate/node/:nodeโœ…
Update LAN Coordinates for a nodePUT v1/coordinate/updateโœ…
Discovery ChainRead Compiled Discovery ChainGET v1/discovery-chain/:serviceโœ…
POST v1/discovery-chain/:servicePOST v1/discovery-chain/:serviceโœ…
EventsFire EventPUT v1/event/fire/:nameโœ…
List EventsGET v1/event/listโœ…
Exported ServicesList Exported ServicesGET v1/exported-servicesโœ…
HealthList Checks for NodeGET v1/health/node/:nodeโœ…
List Checks for ServiceGET v1/health/checks/:serviceโœ…
List Nodes for ServiceGET v1/health/service/:serviceโœ…
List Nodes for Connect-capable ServiceGET v1/health/connect/:serviceโœ…
List Nodes for Ingress Gateways Associated to a ServiceGET v1/health/ingress/:serviceโœ…
List Checks in StateGET v1/health/state/:stateโœ…
KV StoreRead KeyGET v1/kv/:keyโœ…
Create/Update KeyPUT v1/kv/:keyโœ…
Delete KeyDELETE v1/kv/:keyโœ…
Operator-AreaCreate Network AreaPOST v1/operator/areaโœ…
List Network AreasGET v1/operator/areaโœ…
Update Network AreaPUT v1/operator/area/:uuidโœ…
List Specific Network AreaGET v1/operator/area/:uuidโœ…
Delete Network AreaDELETE v1/operator/area/:uuidโœ…
Join Network AreaPUT v1/operator/area/:uuid/join๐Ÿšง
List Network Area MembersGET v1/operator/area/:uuid/membersโŒ
Autopilot OperatorRead ConfigurationGET v1/operator/autopilot/configurationโœ…
Update ConfigurationPUT v1/operator/autopilot/configurationโœ…
Read HealthGET v1/operator/autopilot/healthโœ…
Read the Autopilot StateGET v1/operator/autopilot/stateโœ…
Keyring OperatorList Gossip Encryption KeysGET v1/operator/keyringโœ…
Add New Gossip Encryption KeyPOST v1/operator/keyringโœ…
Change Primary Gossip Encryption KeyPUT v1/operator/keyringโœ…
Delete Gossip Encryption KeyDELETE v1/operator/keyringโœ…
License - OperatorGetting the Consul LicenseGET v1/operator/licenseโœ…
Updating the Consul LicensePUT v1/operator/license๐Ÿ›‘ (Deprecated in 1.10.0)
Resetting the Consul LicenseDELETE v1/operator/license๐Ÿ›‘ (Deprecated in 1.10.0)
Raft OperatorRead ConfigurationGET v1/operator/raft/configurationโœ…
Delete Raft PeerDELETE v1/operator/raft/peerโœ…
Transfer Raft LeadershipPOST v1/operator/raft/transfer-leaderโœ…
Network Segments - OperatorList Network SegmentsGET v1/operator/segmentโœ…
Operator-UtilizationGenerate utilization bundleGET v1/operator/utilizationโœ…
NamespaceCreate a NamespacePUT v1/namespaceโœ…
Read a NamespaceGET v1/namespace/:nameโœ…
Update a NamespacePUT v1/namespace/:nameโœ…
Delete a NamespaceDELETE v1/namespace/:nameโœ…
List all NamespacesGET v1/namespacesโœ…
Prepared QueryCreate Prepared QueryPOST v1/queryโœ…
List Prepared QueriesGET v1/queryโœ…
Update Prepared QueryPUT v1/query/:uuidโœ…
Read Prepared QueryGET v1/query/:uuidโœ…
Delete Prepared QueryDELETE v1/query/:uuidโœ…
Execute Prepared QueryGET v1/query/:uuid/executeโœ…
Explain Prepared QueryGET v1/query/:uuid/explainโœ…
SessionCreate SessionPUT v1/session/createโœ…
Delete SessionPUT v1/session/destroy/:uuidโœ…
Read SessionGET v1/session/info/:uuidโœ…
List Sessions for NodeGET v1/session/node/:nodeโœ…
List SessionsGET v1/session/listโœ…
Renew SessionPUT v1/session/renew/:uuidโœ…
SnapshotGenerate SnapshotGET v1/snapshotโœ…
Restore SnapshotPUT v1/snapshotโœ…
StatusGet Raft LeaderGET v1/status/leaderโœ…
List Raft PeersGET v1/status/peersโœ…
TransactionsCreate TransactionPUT v1/txnโœ