You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/consul/v1.22.x/content/api-docs/agent/service.mdx
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -628,7 +628,12 @@ The `/agent/service/register` endpoint supports camel case and _snake case_ for
628
628
This field takes precedence over the `ns` query parameter,
629
629
one of several [other methods to specify the namespace](#methods-to-specify-namespace).
630
630
631
-
-`Port``(int: 0)` - Specifies the port of the service.
631
+
-`Port``(int: 0)` - Specifies the port of the service. This field is mutually exclusive with the `Ports` field. You can use this field in both service discovery and service mesh use cases.
632
+
633
+
-`Ports``(array<Port>: nil)` - Specifies multiple ports for a service. This field is mutually exclusive with the `Port` field. Consul supports multi-port services for service discovery use cases only. For an example service definition, refer to [Multi-port service definition](#multi-port-service-definition). You can specify the following values:
634
+
-`name``(string: "")` - Specifies a name for the port. This value is addressable with Consul DNS.
635
+
-`port``(int: 0)` - Specifies a numeric port where the service is available.
636
+
-`default``(bool: false)` - Sets a port as the default service when a port is not included.
632
637
633
638
-`Kind``(string: "")` - The kind of service. Defaults to `""`, which is a
634
639
typical Consul service. You can specify the following values:
The /operator/utilization endpoints generate a Consul utilization bundle for license reporting.
6
+
---
7
+
8
+
# Utilization - Operator HTTP API
9
+
10
+
<EnterpriseAlert />
11
+
12
+
The `/operator/utilization` endpoints provide tools to generate a Consul utilization bundle for license reporting.
13
+
14
+
Refer to the [Manual license utilization reporting documentation](/consul/docs/enterprise/license/reporting#manual-license-utilization-reporting) for more information.
15
+
16
+
## Generate utilization bundle
17
+
18
+
This endpoint generates a Consul utilization bundle for license reporting.
0 commit comments