The protocols data type describes the protocols resource for default namespaces.
Note: For HCPnamespaces, the protocols resource is superseded by the .../protocols/http resource, which has a data type of httpProtocol.
Properties
The table below describes the properties included in the protocols data type.
| Property | Data type | Description |
|---|---|---|
| httpEnabled | Boolean |
Specifies whether the HTTP protocol is enabled for the namespace. Valid values are: The default is false. |
| httpsEnabled | Boolean |
Specifies whether the HTTPS protocol is enabled for the namespace. Valid values are: The default is true. |
| ipSettings | ipSettings | Specifies which IP addresses can and cannot access the namespace through the HTTP and HTTPS protocols. |
Example
Here’s an XML example of the protocols data type:
<protocols>
<httpEnabled>false</httpEnabled>
<httpsEnabled>true</httpsEnabled>
<ipSettings>
<allowAddresses>
<ipAddress>192.168.140.10</ipAddress>
<ipAddress>192.168.140.14</ipAddress>
<ipAddress>192.168.140.15</ipAddress>
<ipAddress>192.168.149.0/24</ipAddress>
</allowAddresses>
<allowIfInBothLists>false</allowIfInBothLists>
<denyAddresses>
<ipAddress>192.168.149.5</ipAddress>
</denyAddresses>
</ipSettings>
</protocols>