Description
The addSmartAgentConnection operation handles configuration related to SmartAgentConnection model.
HTTP request
POST /api/fdm/v6/license/smartagentconnections
Data Parameters
Parameter | Required | Type | Description | |||
---|---|---|---|---|---|---|
connectionType | True | string | A mandatory enum specifying the License Connection Type of Secure Firewall device manager. The values can be one of the following. REGISTER - Specifies if Secure Firewall device manager is registered mode. EVALUATION - Specifies if Secure Firewall device manager is in Evalaution mode. UNIVERSAL_PLR - Specifies if Secure Firewall device manager is in Universal Permanent Licensing mode. Field level constraints: cannot be null. (Note: Additional constraints might exist) |
|||
token | False | string | A String specifying the token for registering the Secure Firewall device manager with the Cisco Smart Licensing Manager, with a maximum characters length of 140. If the user selects the option as REGISTER, they must provide a token obtained from the Cisco Smart Software Manager Account. The string cannot have HTML tags or SQL characters. Field level constraints: length must be between 0 and 140 (inclusive), must match pattern ^((?!;).)*$. (Note: Additional constraints might exist) |
|||
performanceTier | False | string | A string specifying the performance tier. Applicable only for virtual platforms. Field level constraints: must match pattern ^((?!;).)*$. (Note: Additional constraints might exist) |
|||
type | True | string | A UTF8 string, all letters lower-case, that represents the class-type. This corresponds to the class name. |
Example
curl -X POST \
--header "Accept: application/json" \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"connectionType": "REGISTER",
"id": "string",
"performanceTier": "string",
"token": "string",
"type": "smartagentconnection",
"version": "string"
}' \
"https://${HOST}:${PORT}/api/fdm/v6/license/smartagentconnections"
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 add_smart_agent_connection(client, body):
return client.SmartLicensing.addSmartAgentConnection(
body=body
).response().result
if __name__ == "__main__":
host = "ftd.example.com"
token = "access_token"
client = get_client(host, token)
body = {'connectionType': 'REGISTER',
'performanceTier': 'string',
'token': 'string',
'type': 'smartagentconnection'}
add_smart_agent_connection(client, body)