Description
The editDataInterfaceHttpsPort operation handles configuration related to DataInterfaceHttpsPort model.
HTTP request
PUT /api/fdm/v6/devicesettings/default/datainterfacehttpsport/{objId}
Data Parameters
Parameter | Required | Type | Description | |||
---|---|---|---|---|---|---|
version | False | string | ||||
name | False | string | Name given to this entity that is always set to a default value and is not editable | |||
httpsPort | True | integer | An integer indicating the HTTPS port of the FDM server on the data interface, 1-65535, with the exception of port 22. The default is 443. You cannot configure the same port number that is used for remote access VPN. Field level constraints: cannot be null, must be between 1 and 65535 (inclusive). (Note: Additional constraints might exist) |
|||
id | False | string | Field level constraints: must match pattern ^((?!;).)*$. (Note: Additional constraints might exist) |
|||
type | True | string |
Path Parameters
Parameter | Required | Type | Description | |||
---|---|---|---|---|---|---|
objId | True | string |
Example
curl -X PUT \
--header "Accept: application/json" \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"httpsPort": 0,
"id": "string",
"name": "string",
"type": "datainterfacehttpsport",
"version": "string"
}' \
"https://${HOST}:${PORT}/api/fdm/v6/devicesettings/default/datainterfacehttpsport/{objId}"
from bravado.requests_client import RequestsClient
from bravado.client import SwaggerClient
def get_client(host, token):
http_client = RequestsClient()
http_client.ssl_verify = False
http_client.set_api_key(
host,
"Bearer {}".format(token),
param_name="Authorization",
param_in="header"
)
return SwaggerClient.from_url(
"https://{}/apispec/ngfw.json".format(host),
http_client=http_client,
config={
"validate_responses": False,
"validate_swagger_spec": False
}
)
def edit_data_interface_https_port(client, obj_id, body):
return client.DataInterfaceManagementAccess.editDataInterfaceHttpsPort(
objId=obj_id,
body=body
).response().result
if __name__ == "__main__":
host = "ftd.example.com"
token = "access_token"
client = get_client(host, token)
obj_id = "string"
body = {'httpsPort': 0,
'id': 'string',
'name': 'string',
'type': 'datainterfacehttpsport',
'version': 'string'}
edit_data_interface_https_port(client, obj_id, body)