Skip to end of metadata
Go to start of metadata

Updates the PAC file settings of the specified customer.

Method: PATCH

Fields

Name

Type

Description

INPUT

customer_id

(Mandatory)

Integer

The customer ID number

proxy_bypass

JSON List[{

address_type: [integer], address_value: [string]

}]

This field indicates the list of address types and values that will be bypassed by the proxy.

For Address type: ip_v4_address, ip_v4_range, ip_v6_address, ip_v6_range, hostname

excluded_dcs

List[integer]

This field indicates the list of data centers that will be excluded from providing a service to the customer

OUTPUT

pac_file_url

Pac file URL

This field indicates the PAC file URL

proxy_bypass

JSON List[{

address_type: [integer], address_value: [string]

}]

This field indicates the list of address types and values that will be bypassed by the proxy.

For Address type: ip_v4_address, ip_v4_range, ip_v6_address, ip_v6_range, hostname

excluded_dcs

List[integer]

This field indicates the list of data centers that will be excluded from providing a service to the customer

Request Example
http -a <admin_email>:<admin_password> PATCH https://<host>/api/settings/pac_file/<customer_id>/proxy_bypass:='[{"address_type": "ip_v4_range", "address_value":"3.3.3.3-4.4.4.4"}]' excluded_dcs:=[6,11]
Response Example
Code:  200 OK
Content: {
"pac_file_url": "https://.../pac_gen/proxy.pac",
"proxy_bypass": [{
	"address_type": 2,
	"address_value": "3.3.3.3-4.4.4.4"}
],
"excluded_dcs": [6, 11]
}


  • No labels