Update proxy server, port, username, and password parameters
PATCH /network/http-proxy/{uuid}
Introduced In: 9.7
Updates the proxy server, port, username, and password parameters. Important notes:
- 
IPv6 must be enabled if IPv6 family addresses are specified in the "server" field.
 - 
The server and the port combination specified using the "server" and "port" fields is validated during this operation. The validation will fail in the following scenarios:
- 
The HTTP proxy service is not configured on the server.
 - 
The HTTP proxy service is not running on the specified port.
 - 
The server is unreachable.
 
 - 
 
Related ONTAP commands
- 
vserver http-proxy modify 
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
uuid  | 
string  | 
path  | 
True  | 
HTTP proxy UUID  | 
Request Body
| Name | Type | Description | 
|---|---|---|
authentication_enabled  | 
boolean  | 
Specifies whether or not authentication with the HTTP proxy server is enabled.  | 
password  | 
string  | 
Password to authenticate with the HTTP proxy server when authentication_enabled is set to "true".  | 
port  | 
integer  | 
The port number on which the HTTP proxy service is configured on the proxy server.  | 
scope  | 
string  | 
Set to “svm” for HTTP proxy owned by an SVM. Otherwise, set to "cluster".  | 
server  | 
string  | 
Fully qualified domain name (FQDN) or IP address of the HTTP proxy server.  | 
username  | 
string  | 
Username to authenticate with the HTTP proxy server when authentication_enabled is set to "true".  | 
uuid  | 
string  | 
The UUID that uniquely identifies the HTTP proxy.  | 
Example request
{
  "password": "string",
  "port": 3128,
  "scope": "string",
  "server": "string",
  "username": "string",
  "uuid": "string"
}
Response
Status: 200, Ok
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description | 
|---|---|
26214473  | 
The HTTP proxy configuration is not valid.  | 
23724130  | 
Cannot use an IPv6 name server address because there are no IPv6 interfaces.  | 
26214481  | 
Username and password cannot be empty when HTTP proxy authentication is enabled.  | 
26214482  | 
Username and password cannot be specified when HTTP proxy authentication is disabled.  | 
Definitions
See Definitions
href
| Name | Type | Description | 
|---|---|---|
href  | 
string  | 
_links
ipspace
Applies to both SVM and cluster-scoped objects. Either the UUID or name is supplied on input. This is mutually exclusive with SVM during POST and PATCH.
| Name | Type | Description | 
|---|---|---|
name  | 
string  | 
IPspace name  | 
uuid  | 
string  | 
IPspace UUID  | 
svm
This is mutually exclusive with IPspace during POST and PATCH.
| Name | Type | Description | 
|---|---|---|
name  | 
string  | 
The name of the SVM. This field cannot be specified in a PATCH method.  | 
uuid  | 
string  | 
The unique identifier of the SVM. This field cannot be specified in a PATCH method.  | 
network_http_proxy
| Name | Type | Description | 
|---|---|---|
authentication_enabled  | 
boolean  | 
Specifies whether or not authentication with the HTTP proxy server is enabled.  | 
password  | 
string  | 
Password to authenticate with the HTTP proxy server when authentication_enabled is set to "true".  | 
port  | 
integer  | 
The port number on which the HTTP proxy service is configured on the proxy server.  | 
scope  | 
string  | 
Set to “svm” for HTTP proxy owned by an SVM. Otherwise, set to "cluster".  | 
server  | 
string  | 
Fully qualified domain name (FQDN) or IP address of the HTTP proxy server.  | 
username  | 
string  | 
Username to authenticate with the HTTP proxy server when authentication_enabled is set to "true".  | 
uuid  | 
string  | 
The UUID that uniquely identifies the HTTP proxy.  | 
error_arguments
| Name | Type | Description | 
|---|---|---|
code  | 
string  | 
Argument code  | 
message  | 
string  | 
Message argument  | 
returned_error
| Name | Type | Description | 
|---|---|---|
arguments  | 
array[error_arguments]  | 
Message arguments  | 
code  | 
string  | 
Error code  | 
message  | 
string  | 
Error message  | 
target  | 
string  | 
The target parameter that caused the error.  |