- Created by Sara Weisz on Apr 19, 2023
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Current »
Available API-C Analytics payload capture actions via APIs
Get / Create / Delete / Force Delete API-C payload captures
Authorization:
Authentication: Basic authentication
Roles: it is recommended to read Role Based Access Control page for understanding build-in and custom roles permissions.
From CLI (example):
curl -u username:password https://<dpod hostname>/op/api/v2/apicPayloadCaptures
GET Retrieve All API-C Payload Captures
URL:
GET - https://{{dpodHostname}}
/op/api/v2/apicPayloadCaptures
/
Request - None.
Authorization:
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|---|---|
Successful | { "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"
|
GET Get Specific API-C Payload Capture Details
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 |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|---|---|
Successful | { "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 | { "resultCode": "ERROR", "resultErrorCode": "NOT_FOUND", "resultMessage": "API-C payload capture not found" } | Status code: 200 resultCode → ERROR resultMessage → “API-C payload capture not found” |
POST Add API-C Payload Capture
URL:
POST - https://{{dpodHostname}}
/op/api/v2/apicPayloadCaptures/
Authorization:
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Request body:
Type | Parameters | Example Json | Description |
---|---|---|---|
Required |
| { "deviceNames": [ "apic10_5_idg7" ], "deviceNamesOperator": "eq", "domainNames": [ "APIMgmt_C777777777" ], "domainNamesOperator": "eq", "catalogNames": [ "bankcatalog", "montiercatalog" ], "catalogNamesOperator": "eq" } |
|
Response:
Response Type | Example value | Description |
---|---|---|
Successful | { "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 | { "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 resultMessage → “Some subscriptions created successfully” |
Failure |
{ "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 resultMessage → “All subscriptions failed” |
DELETE Delete API-C Payload Capture
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 |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|---|---|
Successful | { "resultCode": "SUCCESS", "resultMessage": "Payload capture stopped successfully" } | Status code: 200 resultCode → SUCCESS resultMessage → “Payload capture stopped successfully” |
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 |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description |
---|---|---|
Successful | { "resultCode": "SUCCESS", "resultMessage": ": Payload capture deleted successfully" } | Status code: 200 resultCode → SUCCESS resultMessage → “Payload capture deleted successfully” |
- No labels