Update Service Associated to a Specific Plugin
PATCH {{gateway}}/plugins/:pluginId/service
Update Service Associated to a Specific Plugin konghq
Attributes | Mandatory | Type | Description |
---|
plugin id | required | path | The unique identifier of the Plugin associated to the Service to be updated |
Request Body
Attributes | Mandatory | Description |
---|
name | optional | The Service name |
retries | optional | The number of retries to execute upon failure to proxy. Defaults to 5 |
protocol | required | The protocol used to communicate with the upstream. Accepted values are: "grpc", "grpcs", "http", "https", "tcp", "tls". Defaults to "http" |
host | required | The host of the upstream server |
port | required | The upstream server port. Defaults to 80 |
path | optional | The path to be used in requests to the upstream server. |
connect_timeout | optional | The timeout in milliseconds for establishing a connection to the upstream server. Defaults to 60000. |
write_timeout | optional | The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server. Defaults to 60000. |
read_timeout | optional | The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server. Defaults to 60000. |
tags | optional | An optional set of strings associated with the Service, for grouping and filtering. |
client_certificate | optional | Certificate to be used as client certificate while TLS handshaking to the upstream server. With form-encoded, the notation is client_certificate.id=. With JSON, use “"client_certificate":{"id":""}. |
url | required | Shorthand attribute to set protocol, host, port and path at once. This attribute is write-only (the Admin API never “returns” the url). |
Key | Datatype | Required | Description |
---|
Content-Type | string | | |