Get an endpoint rule
get
/admin/endpointRules/{id}
Request
Path Parameters
-
id(required): string
The id of the Endpoint Rule
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Nested Schema : outlier-detection
Type:
Show Source
object
-
base-ejection-time: string
Pattern:
^([1-9]\d*h)?([1-9]\d*m)?([1-9]\d*s)?$
This field captures the amount of time for which a host should be ejected from the pool of available hosts once it has been identified as an outlier. The value of this field is multiplied by the number of consecutive 5xx errors to calculate the total ejection time.Example:10s
-
consecutive-5xx-errors: number
Minimum Value:
1
Multiple Of:1
This field captures the number of consecutive 5xx HTTP responses received from a host before it is considered an outlier and is ejected from the pool of available hosts. -
interval: string
Pattern:
^([1-9]\d*h)?([1-9]\d*m)?([1-9]\d*s)?$
This field captures the amount of time during which consecutive 5xx errors are counted. For example, if the interval is set to "30s", then any consecutive 5xx errors received from a host within 30 seconds will be counted towards its ejection.Example:30m
Match One Schema
Show Source
400 Response
Bad Request
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
401 Response
Unauthorized
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
403 Response
Forbidden
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
404 Response
Not Found
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
500 Response
Internal Server Error
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
Examples
The following example shows how to get an endpoint rule by submitting a get request on the REST resource using cURL.
cURL Command
curl --<username:password> --request GET
'{FABRIC_HOST}/admin/endpointRules/{id}' --header 'Authorization: Bearer
<accessToken> --header 'Content-Type: application/json'
Example of Response Body
The following shows an example of the response body in JSON format.
[ { "host": "fa-wrpv-pintlabfadev.fa.ocs.oc-test.com", "outlier-detection": { "consecutive-5xx-errors": 5, "interval": "30s", "base-ejection-time": "60s" }, "id": "fa-wrpv-pintlabfadev-fa-ocs-oc-test-com" } ]