| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service | asso | |
| default | redirect_https | boolean | |
| default | redirect_url_rules | asso | Redirects HTTP requests to another URL. |
| default | redirect_error_rules | asso | Redirects the requests to the specified URL when the specified error code is generated. |
{
"HTTPRedirectSettings": {
"meta": {
"abstract": false,
"verbose_name": Per Virtual Service HTTP Redirect Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| redirect_https | boolean |
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HTTPRedirectSettings": [
{
"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, redirect_https, redirect_url_rules, redirect_error_rules, 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 | redirect_https | boolean | |
| default | redirect_url_rules | asso | Redirects HTTP requests to another URL. |
| default | redirect_error_rules | asso | Redirects the requests to the specified URL when the specified error code is generated. |
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: redirect_https, |
| Field Name | Type | Description |
|---|---|---|
| redirect_https | boolean |
All configuration fields and their values are replied:
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
"redirect_url_rules":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| 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>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HTTPRedirectSettings": {
"instance_id":<instance_id>,
"redirect_error_rules":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| error_code | string | |
| redirect_url | url | Sets the URL to which the requests will be redirected. |
| prefix | string | Sets the name of the URL query used to indicate the original URL in the new URL. For example, if this field is set to "abc", the new URL will be "redirec_url?abc=orginal_url". If this filed is not specified, original URL will not be included. |
| encoding_mode | enum | Sets the encoding mode of the original URL in the new URL.Available values:
|
{
"HTTPRedirectError": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}