HTTP URL redirect enables the system to redirect the HTTP requests accessing a virtual service with the specified URL to a new URL.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service | asso | |
| default | name | string | |
| default | priority | int | |
| default | orig_host | string | Sets the string used to match the value of the Host header in the request. |
| default | path_regex | string | Sets the string used to match the path part of the HTTP request line. |
| default | new_protocol | enum | Sets the protocol in the Location header value of the redirect response.Available values:
|
| default | new_host | string | Sets the host in the Location header value of the redirect response. |
| default | path_replacement | string | Sets the path in the Location header value of the redirect response. |
| default | response_code | enum | Sets the status code in the redirect response.Available values:
|
{
"HTTPRedirectURL": {
"meta": {
"abstract": false,
"verbose_name": HTTP URL Redirect,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| service | asso | |
| name | string | |
| priority | int | |
| orig_host | string | Sets the string used to match the value of the Host header in the request. |
| path_regex | string | Sets the string used to match the path part of the HTTP request line. |
| new_protocol | enum | Sets the protocol in the Location header value of the redirect response.Available values:
|
| new_host | string | Sets the host in the Location header value of the redirect response. |
| path_replacement | string | Sets the path in the Location header value of the redirect response. |
| response_code | enum | Sets the status code in the redirect response.Available values:
|
{
"HTTPRedirectURL": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HTTPRedirectURL": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: service, name, priority, orig_host, path_regex, new_protocol, new_host, path_replacement, response_code, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service | asso | |
| default | name | string | |
| default | priority | int | |
| default | orig_host | string | Sets the string used to match the value of the Host header in the request. |
| default | path_regex | string | Sets the string used to match the path part of the HTTP request line. |
| default | new_protocol | enum | Sets the protocol in the Location header value of the redirect response.Available values:
|
| default | new_host | string | Sets the host in the Location header value of the redirect response. |
| default | path_replacement | string | Sets the path in the Location header value of the redirect response. |
| default | response_code | enum | Sets the status code in the redirect response.Available values:
|
{
"HTTPRedirectURL": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HTTPRedirectURL": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HTTPRedirectURL": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HTTPRedirectURL": {
"instance_id":<instance_id>,
"service":<value>
}
}