Description

The addFirepowerAnalyticsCenter operation handles configuration related to FirepowerAnalyticsCenter model. 

HTTP request

POST /api/fdm/v6/object/firepoweranalyticscenter

Data Parameters

Parameter Required Type Description
name True string Firepower Analytics Center's object display name
Field level constraints: cannot be null, cannot be blank or empty, length must be between 0 and 128 (inclusive), must match pattern ^[a-zA-Z0-9_][a-zA-Z0-9_.+-]*. (Note: Additional constraints might exist)
host True string Firepower Analytics Center's canonical host name or IP Address
Field level constraints: cannot be null, cannot be blank or empty, length must be between 0 and 255 (inclusive), must match pattern ([0-9a-zA-Z]([0-9a-zA-Z-]{0,62}.)([0-9a-zA-Z-]{1,63}.)*[0-9a-zA-Z]{1,63})|(([0-9a-fA-F]{0,4}:){0,6}(([0-9a-fA-F]{0,4}:[0-9a-fA-F]{0,4})|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}))). (Note: Additional constraints might exist)
type True string firepoweranalyticscenter

Example

curl -X POST \
    --header "Accept: application/json" \
    --header "Authorization: Bearer ${ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    -d '{
        "host": "string",
        "id": "string",
        "name": "string",
        "type": "firepoweranalyticscenter",
        "version": "string"
    }' \
    "https://${HOST}:${PORT}/api/fdm/v6/object/firepoweranalyticscenter"
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_firepower_analytics_center(client, body):
    return client.FACRegistration.addFirepowerAnalyticsCenter(
        body=body
    ).response().result


if __name__ == "__main__":
    host = "ftd.example.com"
    token = "access_token"
    client = get_client(host, token)

    body = {'host': 'string',
 'name': 'string',
 'type': 'firepoweranalyticscenter'}

    add_firepower_analytics_center(client, body)