Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title/op/api/v2/apicPayloadCaptures/

URL:

GET - https://{{dpodHostname}}/op/api/v2/apicPayloadCaptures/

Request - None.

Authorization:

Required Permissions

More info

  1. Access permissions for API-C product view

  2. Access permissions for payload capture

  3. Access permissions for investigate

See roles information here: Role Based Access Control

Response:

Response Type

Example value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": "API-C payload captures retrieved successfully",
    "result": {
        "apicPayloadCaptures": [
            {
                "id": 14,
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "montiercatalog",
                "startTimeInMillis": 1681899542395,
                "contextId": "f739411f-25bc-4ad0-8447-c9ed9349f080",
                "userName": "admin",
                "collectionObjectName": "montierorg10_montiercatalog_collection"
            },
            {
                "id": 13,
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "bankcatalog",
                "startTimeInMillis": 1681899541941,
                "contextId": "9f244857-34ee-4e6f-92cf-b020a1d6f8ac",
                "userName": "admin",
                "collectionObjectName": "montierorg10_bankcatalog_collection"
            }
        ]
    }
}

Status code: 200

resultCode → SUCCESS

resultMessage → “API-C payload captures retrieved successfully"

...

Expand
title/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}

URL:

GET - https://{{dpodHostname}}/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}

Request - None.

URL Parameters:

Name

Is required

Description

Parameter Type

payloadCaptureId

True

The payload capture id (can be retrieved from “Retrieved all API-C payload captures” response)

Number

Authorization:

Required Permissions

More info

  1. Access permissions for API-C product view

  2. Access permissions for payload capture

  3. Access permissions for investigate

See roles information here: Role Based Access Control

Response:

Response Type

Example value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": "API-C payload capture retrieved successfully",
    "result": {
        "id": 14,
        "deviceName": "apic10_5_idg7",
        "domainName": "APIMgmt_C777777777",
        "catalogName": "montiercatalog",
        "startTimeInMillis": 1681899542395,
        "contextId": "f739411f-25bc-4ad0-8447-c9ed9349f080",
        "userName": "admin",
        "collectionObjectName": "montierorg10_montiercatalog_collection"
    }
}

Status code: 200

resultCode → SUCCESS

resultMessage → “API-C payload capture retrieved successfully”

Failure

Code Block
languagejson
{
    "resultCode": "ERROR",
    "resultErrorCode": "NOT_FOUND",
    "resultMessage": "API-C payload capture not found"
}

Status code: 200

resultCode → ERROR

resultErrorCode → NOT_FOUND

resultMessage → “API-C payload capture not found”

...

Expand
title/op/api/v2/apicPayloadCaptures/

URL:

POST - https://{{dpodHostname}}/op/api/v2/apicPayloadCaptures/

Authorization:

Required Permissions

More info

  1. Access permissions for API-C product view

  2. Access permissions for payload capture

  3. Access permissions for investigate

See roles information here: Role Based Access Control

Request body:

Type

Parameters

Example Json

Description

Required

  1. List<String>deviceNames

  2. String deviceNamesOperator

  3. List<String>domainNames

  4. String domainNamesOperator

  5. List<String> catalogNames

  6. String catalogNamesOperator

Code Block
languagejson
{
    "deviceNames": [
        "apic10_5_idg7"
    ],
    "deviceNamesOperator": "eq",
    "domainNames": [
        "APIMgmt_C777777777"
    ],
    "domainNamesOperator": "eq",
    "catalogNames": [
        "bankcatalog",
        "montiercatalog"
    ],
    "catalogNamesOperator": "eq"
}
  1. deviceNames/, domainNames and cataloNames→ support wildcards.

  2. deviceNamesOperator, domainNamesOperator and catalogNamesOperator must be eq.

Response:

Response Type

Example value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": "All subscriptions created successfully",
    "result": {
        "apicPayloadCaptures": [
            {
                "id": 13,
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "bankcatalog",
                "startTimeInMillis": 1681899541941,
                "contextId": "9f244857-34ee-4e6f-92cf-b020a1d6f8ac",
                "userName": "admin",
                "collectionObjectName": "montierorg10_bankcatalog_collection",
                "resultCode": "SUCCESS",
                "resultMessage": "Subscription created successfully"
            },
            {
                "id": 14,
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "montiercatalog",
                "startTimeInMillis": 1681899542395,
                "contextId": "f739411f-25bc-4ad0-8447-c9ed9349f080",
                "userName": "admin",
                "collectionObjectName": "montierorg10_montiercatalog_collection",
                "resultCode": "SUCCESS",
                "resultMessage": "Subscription created successfully"
            }
        ]
    }
}

Status code: 200

resultCode → SUCCESS

resultMessage → “All subscriptions created successfully”

Partial success

Code Block
languagejson
{
  "resultCode": "WARNING",
  "resultErrorCode": "SOME_SUBSCRIPTIONS_FAILED",
  "resultMessage": "Some subscriptions created successfully",
  "result": {
    "apicPayloadCaptures": [
      {
        "deviceName": "apic10_5_idg7",
        "domainName": "APIMgmt_C777777777",
        "catalogName": "bankcatalog",
        "resultCode": "ERROR",
        "resultErrorCode": "DUPLICATE_SUBSCRIPTION",
        "resultMessage": "Duplicate subscription exists."
      },
      {
        "id": 12,
        "deviceName": "apic10_5_idg7",
        "domainName": "APIMgmt_C777777777",
        "catalogName": "montiercatalog",
        "startTimeInMillis": 1681899378577,
        "contextId": "a90820a5-5640-4922-86db-8199c3bce59e",
        "userName": "admin",
        "collectionObjectName": "montierorg10_montiercatalog_collection",
        "resultCode": "SUCCESS",
        "resultMessage": "Subscription created successfully"
      }
    ]
  }
}

Status code: 200

resultCode → WARNING

resultErrorCode → SOME_SUBSCRIPTIONS_FAILED

resultMessage → “Some subscriptions created successfully”

Failure

Code Block
languagejson
{
    "resultCode": "ERROR",
    "resultErrorCode": "ALL_SUBSCRIPTIONS_FAILED",
    "resultMessage": "All subscriptions failed",
    "result": {
        "apicPayloadCaptures": [
            {
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "bankcatalog",
                "resultCode": "ERROR",
                "resultErrorCode": "DUPLICATE_SUBSCRIPTION",
                "resultMessage": "Duplicate subscription exists."
            },
            {
                "deviceName": "apic10_5_idg7",
                "domainName": "APIMgmt_C777777777",
                "catalogName": "montiercatalog",
                "resultCode": "ERROR",
                "resultErrorCode": "DUPLICATE_SUBSCRIPTION",
                "resultMessage": "Duplicate subscription exists."
            }
        ]
    }
}

Status code: 200

resultCode → ERROR

resultErrorCode → ALL_SUBSCRIPTIONS_FAILED

resultMessage → “All subscriptions failed”

...

Expand
title/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}

URL:

DELETE - https://{{dpodHostname}}/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}

Request - None.

URL Parameters:

Name

Is required

Description

Parameter Type

payloadCaptureId

True

The payload capture id (can be retrieved from “Retrieved all API-C payload captures” response)

Number

Authorization:

Required Permissions

More info

  1. Access permissions for API-C product view

  2. Access permissions for payload capture

  3. Access permissions for investigate

See roles information here: Role Based Access Control

Response:

Response Type

Example value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": "Payload capture stopped successfully"
}

Status code: 200

resultCode → SUCCESS

resultMessage → “Payload capture stopped successfully”

Expand
title/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}/forceDelete

URL:

POST - https://{{dpodHostname}}/op/api/v2/apicPayloadCapture/{{payloadCaptureId}}/forceDelete

URL Parameters:

Name

Is required

Description

Parameter Type

payloadCaptureId

True

The payload capture id (can be retrieved from “Retrieved all API-C payload captures” response)

Number

Authorization:

Required Permissions

More info

  1. Access permissions for API-C product view

  2. Access permissions for payload capture

  3. Access permissions for investigate

See roles information here: Role Based Access Control

Response:

Response Type

Example value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": ": Payload capture deleted successfully"
}

Status code: 200

resultCode → SUCCESS

resultMessage → “Payload capture deleted successfully”

...