Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Authentication: Basic authentication

Authorization: Any user allowed using Reports, see:

Code Block
curl -u username:password https://<dpod hostname>/op/api/v2/reports/{{productView}}

Status
colourGreen
titleGET
Retrieve All Reports

...

title/op/api/v2/reports/{{productView}}

URL:

GET - https://{{dpodHostname}}/op/api/v2/reports/{{productView}}

Request - None.

Parameters:

...

Parameter

...

Value

...

Description

...

Parameter Type

...

Data Type

...

productView

...

required

...

Product view APIC / IDG

...

path

...

APIC / IDG

Authorization:

...

Authentication Type

...

Required Permissions

...

More info

...

Basic Auth

...

  1. View or Edit report

  2. Access permissions for required product

...

See roles information here: Role Based Access Control

Response:

...

Response Type

...

Value

...

Description

...

Successful

...

languagejson

...

Available report actions via APIs

Get / Create / Update / Execute / Delete reports

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:

Code Block
curl -u username:password https://<dpod hostname>/op/api/v2/reports/{{productView}}

APIs List:

Status
colourGreen
titleGET
Retrieve All Reports

Authorization:

Response:

{ "resultCode": "SUCCESS", "resultMessage": "Report retrieved successfully", "result": {
Expand
title/op/api/v2/reports/{{productView}}

URL:

GET - https://{{dpodHostname}}/op/api/v2/reports/{{productView}}

Request - None.

Parameters:

Parameter

Value

Description

Parameter Type

Data Type

productView

required

Product view APIC / IDG

path

APIC / IDG

Authorization:

Authentication Type

Required Permissions

More info

Basic Auth

  1. View or Edit report

  2. Access permissions for required product

See roles information here: Role Based Access Control

Response:

Expand
title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

URL:

GET - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

Request - None.

Parameters:

Parameter

Value

Description

Parameter Type

Data Type

productView

required

Product view APIC / IDG

path

APIC / IDG

reportApiReferenceId

required

The report apiReferenceId (can be retrieved from “Retrieved all reports” response)

path

UUID

Authentication Type

Required Permissions

More info

Basic Auth

  1. View or Edit report

  2. Access permissions for required product related to the report

See roles information here: Role Based Access Control

Response Type

Value

Description

Successful

Code Block
languagejson

Response Type

Value

Description

Successful

Code Block
languagejson
{
    "resultCode": "SUCCESS",
    "resultMessage": "Reports retrieved successfully",
    "result": {
        "reports": [{
                "name": "API Latency Report",
                "esHeadersDictionarydescription": "API Latency",
              }  "productView": "APIC",
            {....}
    "apiReference": "1B1925B3-EAE0-4E4A-97B6-78AD13EDE856",
       ]     }
}

Status code: 200

resultCode → SUCCESS

resultMessage → “Reports retrieved successfully”

result → list of all reports and their data. For report parameters info click here:Reports REST API - Message Structure

Status
colourGreen
titleGET
Get Specific Report Details

    "indexSets": "apic-log",
                "documentType": "APIC_LOGICAL_TRANS",
                "jsonQuery": "{\"query\":{\"bool\":{\"must\":{\"match_all\":{}},... }",
                "schedule": "",
                "recipients": [],
                "adHocFilterTypes": ["TIME", "DEVICE",....],
                "
name
filtersParameters": { "
<report name>",
timeRangeType": "recent",.....},
        
"description":
 
"<report
 
description>",
      
"
productView
lastUpdateTimeInMillis": 
"<report product view>"
1646655197926,
        
"apiReference":
 
"<report uuid>",
       
"
indexSets
lastUpdateUserName": "
<report indexSet>
admin",
     
"documentType":
 
"<report
 
documentType>",
         "
jsonQuery
esHeadersDictionary": 
"{\"query\":{\"bool\
"
:{\
"
must\":{\"match_all\":{}},...

}",
         
"schedule": "",
   },
     
"recipients":
 
[],
      
"adHocFilterTypes": ["TIME", "DEVICE",....], "filtersParameters": { "timeRangeType": "recent",.....},
{....}
        
"lastUpdateTimeInMillis": 1644768927839,
]
    
"lastUpdateUserName": "Installer", "esHeadersDictionary": ""
}
}

Status code: 200

resultCode → SUCCESS

resultMessage

“Report

“Reports retrieved successfully”

result

The report

list of all reports and their data. For report parameters info click here:Reports REST API - Message Structure

Status
colour

...

Green
title

...

GET
Get Specific Report Details

Expand
title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}/executeAsync

URL:

POST

GET - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

/executeAsync

Request - None.

Parameters:

Parameter

Value

Description

Parameter Type

Data Type

productView

required

Product view APIC / IDG

path

APIC / IDG

reportApiReferenceId

required

The report apiReferenceId

you wish to execute

(

id

can be retrieved from “Retrieved all reports” response)

path

UUID

Authorization:

Authentication Type

Required Permissions

More info

Basic Auth

  1. View or Edit report

  2. Access permissions for required product related to the report

See roles information here: Role Based Access Control

Request

Response:

Response Type

Parameters

Value

Example Json

Description

Required

  • List<String> recipients

  • Map<String, String>filtersParameters

    Successful

    Code Block
    languagejson
    {
        "
    recipients
    resultCode"
    :[]
    : "SUCCESS",
        "resultMessage": "
    filtersParameters
    Report retrieved successfully",
        "result": {
    } }
    1. recipients → recipients' email address. Array can be sent empty.

    2. filtersParameters→ list of filters. List can be sent empty.

    For report parameters info click here:Reports REST API - Message Structure

    Additional parameter

    Available filters:

    Code Block
    languagejson
    {
    
            "name": "<report name>",
        
    "recipients" :[“address1@mail.com“...],
        "description": "
    filtersParameters
    <report description>",
    
    :
     
    {
           "
    deviceNameOp
    productView": "
    eq
    <report product view>",
            "
    deviceName
    apiReference": "
    a8a68da7e070
    <report uuid>",
            "
    timeRangeType
    indexSets": "
    recent
    <report indexSet>",
            "
    timeRangePeriod
    documentType": "
    600000"
    <report documentType>",
           
    } }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    { "resultCode": "SUCCESS", "resultMessage": "Report executed successfully",
     "jsonQuery": "{\"query\":{\"bool\":{\"must\":{\"match_all\":{}},... }",
            "schedule": "",
            "
    result
    recipients": 
    {
    [],
            "
    executionId
    adHocFilterTypes": 
    <ID>
    ["TIME", "DEVICE",....],
            "filtersParameters": { "timeRangeType": "recent",.....},
            "lastUpdateTimeInMillis": 1644768927839,
            "lastUpdateUserName": "Installer",
            "esHeadersDictionary": ""
        }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report

    executed

    retrieved successfully”

    result

    executionId → the report execution id (integer).

    The report data. For report parameters info click here:Reports REST API - Message Structure

    Status
    colour

    ...

    Yellow
    title

    ...

    POST
    Execute (Async) Report

    Expand
    title/op/api/v2/reportexecutionreport/{{productView}}/{{executionIdreportApiReferenceId}}/executeAsync

    URL:

    GET

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

    reportexecution

    report/{{productView}}/{{

    executionId

    reportApiReferenceId}}

    Request - None.

    /executeAsync

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Relevant product

    Product view APIC / IDG

    path

    APIC / IDG

    executionId

    reportApiReferenceId

    required

    The report

    execution ID (

    apiReferenceId you wish to execute ( id can be retrieved from

    “execute report” api

    “Retrieved all reports” response)

    path

    ID

    UUID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. View or Edit report

    2. Access permissions for required product related to the report

    See roles information here: Role Based Access Control

    Response

    Request:

    Response

    Type

    Value

    Parameters

    Example Json

    Description

    Successful

    Required

    1. List<String> recipients

    2. Map<String, String>filtersParameters

    Code Block
    languagejson
    {
        "
    resultCode
    recipients"
    : "SUCCESS"
     :[], 
       
    "resultMessage":
     "
    Report execution retrieved successfully", "result": {
    filtersParameters" : {}
    }
    1. recipients → recipients' email address. Array can be sent empty.

    2. filtersParameters→ list of filters. List can be sent empty.

    For report parameters info click here:Reports REST API - Message Structure

    Additional parameter

    Available filters:

    Code Block
    languagejson
    {
        "recipients" :[“address1@mail.com“...],
        
    "
    executionId
    filtersParameters" : 
    7,
    {
          
    "
    recipients
    deviceNameOp":
    "eq", 
          
    "
    filters
    deviceName":
    "a8a68da7e070",
     
          "
    executingUserName
    timeRangeType":
    "
    admin
    recent",
          
    "
    status
    timeRangePeriod":
    "
    OK
    600000"
    ,
     
        }
    }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    {
        "
    requestTimeInMillis
    resultCode": 
    1646827094043
    "SUCCESS",
        "resultMessage": "Report executed successfully",
        "
    executionTimeInMillis
    result": 
    1646827094948,
    {
            "
    completionTimeInMillis
    executionId": 
    1646827101507
    <ID>
        }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report

    execution retrieved

    executed successfully”

    result

    executionId

  • recipients

  • filters

  • executingUserName

  • status

  • requestTimeInMillis

  • executionTimeInMillis

  • completionTimeInMillis

  • the report execution id (integer).

    Status
    colourGreen
    titleGET

    ...

    Get Report Execution Details

    Expand
    title/op/api/v2/reportexecution/{{productView}}/{{executionId}}/download

    URL:

    GET - https://{{dpodHostname}}/op/api/v2/reportexecution/{{productView}}/{{executionId}}

    /download

    Request - None.

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Relevant product view APIC / IDG

    path

    APIC / IDG

    executionId

    required

    The report execution ID (can be retrieved from “execute report” api response)

    path

    ID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. View or Edit report

    2. Access permissions for required product related to the report

    See roles information here: Role Based Access Control

    Response:

    Status

    Response Type

    Value

    Description

    Successful

    xls file type

    Code Block
    : 200

    ...

    Authorization:

    Response:

    {
    Expand
    title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}/duplicate

    URL:

    POST - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}/duplicate

    Request - None.

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    reportApiReferenceId

    required

    The report apiReferenceId you wish to duplicate ( id can be retrieved from “Retrieved all reports” response)

    path

    UUID

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for required product related to the report you wish to duplicate

    See roles information here: Role Based Access Control

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    language

    ...

    colourYellow
    titlePOST
    json
    {
        "resultCode": "SUCCESS",
        "resultMessage": "Report execution retrieved successfully",
        "result": {
            "executionId": 7,
            "recipients": "",
            "
    resultCode
    filters": "
    SUCCESS
    ",
            "
    resultMessage
    executingUserName": "admin"
    Report
    ,
      
    duplicated
     
    successfully",
         "
    result
    status": 
    {
    "OK",
            "
    name
    requestTimeInMillis": 
    "<source report name> Copy"
    1646827094043,
            "
    description
    executionTimeInMillis": 
    "<source report description>"
    1646827094948,
            "
    productView
    completionTimeInMillis": 
    "<source
    1646827101507
    
    report
     
    productView>",
       
    "apiReference": "<New unique report uuid>", "indexSets": "<source report indexSet>", "documentType": "<source report documentType>", "jsonQuery": "<source report query>", "schedule": "", "recipients": [], "adHocFilterTypes": ["TIME", "DEVICE",....], "filtersParameters": { "timeRangeType": "recent",.....}, "lastUpdateTimeInMillis": 1646826210928, "lastUpdateUserName": "<current userName>", "esHeadersDictionary": "" } }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report duplicated successfully”

    result → The report data. For report parameters info click here:Reports REST API - Message Structure

    Status
    colourYellow
    titlePOST
    Add Report

    APIC / IDG
    Expand
    title/op/api/v2/reports/{{productView}}

    URL:

    POST - https://{{dpodHostname}}/op/api/v2/reports/{{productView}}

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report execution retrieved successfully”

    result

    • executionId

    • recipients

    • filters

    • executingUserName

    • status

    • requestTimeInMillis

    • executionTimeInMillis

    • completionTimeInMillis

    Status
    colourGreen
    titleGET
    Download Report Execution

    Expand
    title/op/api/v2/reportexecution/{{productView}}/{{executionId}}/download

    URL:

    GET - https://{{dpodHostname}}/op/api/v2/reportexecution/{{productView}}/{{executionId}}/download

    Request - None.

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Relevant product view APIC / IDG

    path

    APIC / IDG

    executionId

    required

    The report execution ID (can be retrieved from “execute report” api response)

    path

    ID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. View or Edit report

    2. Access permissions for

    product view of new
    1. required product related to the report

    See roles information here: Role Based Access Control

    Request

    Response:

    Response Type

    Parameters

    Value

    Example Json

    Description

    Required

    1. String name

    2. String description

    3. String productView

    4. String indexSets

    5. String documentType

    6. String jsonQuery

    7. String jsonParameters

    8. String schedule

    9. List<String>recipients

    10. List<String>adHocFilterTypes

    11. Map<String, String>filtersParameters

    12. String serviceNameFieldOverride

    13. String esHeadersDictionary

    Code Block
    languagejson
    { "name": "<new report name>", "description": "<new report description>", "productView": "<new report productView type>", "indexSets": "<new report indexSet>

    Successful

    xls file type

    Status code: 200

    Status
    colourYellow
    titlePOST
    Duplicate Report

    { ....
    Expand
    title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}/duplicate

    URL:

    POST - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}/duplicate

    Request - None.

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    reportApiReferenceId

    required

    The report apiReferenceId you wish to duplicate ( id can be retrieved from “Retrieved all reports” response)

    path

    UUID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for required product related to the report you wish to duplicate

    See roles information here: Role Based Access Control

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    {
        "resultCode": "SUCCESS",
        "resultMessage": "Report duplicated successfully",
        "result": {
      
    "documentType
          "name": "
    <new
    <source report 
    documentType>
    name> Copy",
            "
    jsonQuery
    description": "
    <new
    <source report 
    query>
    description>",
            "
    schedule
    productView": "<source report productView>",
            "
    recipients
    apiReference":
    []
     "<New unique report uuid>",
            "
    adHocFilterTypes
    indexSets": 
    [...]
    "<source report indexSet>",
            "
    filtersParameters
    documentType":
    {...}
     "<source report documentType>",
            "
    esHeadersDictionary
    jsonQuery": "<source report query>",
        
    }
    1. recipients → recipients' email address. Array can be sent empty.

    2. filtersParameters→ list of filters. List can be sent empty.

    For report parameters info click here:Reports REST API - Message Structure

    Additional parameter

    Available adHocFilterTypes:

    Code Block
    languagejson
        "schedule": "",
            
    "
    adHocFilterTypes
    recipients": [],
            
    "adHocFilterTypes": ["TIME", "DEVICE",....],
            "filtersParameters": { "timeRangeType": "
    DEVICE
    recent",.....},
            
    "
    DOMAIN
    lastUpdateTimeInMillis"
    , "APIC_CATALOG"
    : 1646826210928,
            
    "APIC_SPACE", "APIC_PRODUCT", "APIC_PLAN"
    "lastUpdateUserName": "<current userName>",
            
    "APIC_API", "APIC_API_VERSION",
    "esHeadersDictionary": ""
        
    "APIC_CONSUMER_APP" ], .... }

    TODO - add all available filters and their description.

    Additional parameter

    Available filtersParameters:

    Code Block
    languagejson
    {
          ....
            "filtersParameters": {
                "timeRangeType": "recent",
                "timeRangePeriod": "86400000"
            },
          ....
    }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    { "resultCode": "SUCCESS", "resultMessage": "Report added successfully", "result": {
    }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report duplicated successfully”

    result → The report data. For report parameters info click here:Reports REST API - Message Structure

    Status
    colourYellow
    titlePOST
    Add Report

    Authorization:

    Request:

    {
    Expand
    title/op/api/v2/reports/{{productView}}

    URL:

    POST - https://{{dpodHostname}}/op/api/v2/reports/{{productView}}

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for product view of new report

    See roles information here: Role Based Access Control

    Request:

    Type

    Parameters

    Example Json

    Description

    Required

    1. String name

    2. String description

    3. String productView

    4. String indexSets

    5. String documentType

    6. String jsonQuery

    7. String jsonParameters

    8. String schedule

    9. List<String>recipients

    10. List<String>adHocFilterTypes

    11. Map<String, String>filtersParameters

    12. String serviceNameFieldOverride

    13. String esHeadersDictionary

    Code Block
    languagejson
    {
            "name": "<new report name>",
            "description": "<new report description>",
            "productView": "<new report productView 
    productView>
    type>",
            "
    apiReference
    indexSets": "
    <New unique
    <new report 
    uuid>
    indexSet>",
            "
    indexSets
    documentType": "<new report 
    indexSet>
    documentType>",
            "
    documentType
    jsonQuery": "<new report 
    documentType>
    query>",
            "
    jsonQuery
    schedule": "
    <new report query>"
    ",
           
    "schedule":
     "
    ", "
    recipients": [],
            "adHocFilterTypes": [
    "TIME", "DEVICE",
    ...
    .
    ],
            "filtersParameters": {
    "timeRangeType": "recent",.
    ...
    .
    }
    , "lastUpdateTimeInMillis": 1646826210928
    ,
            
    "lastUpdateUserName
    "
    : "<current userName>", "
    esHeadersDictionary": ""
        }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report added successfully”

    result → The report data.
    Expand
    title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    URL:

    PUT - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    reportApiReferenceId

    required

    The report apiReferenceId you wish to edit ( id can be retrieved from “Retrieved all reports” response)

    path

    UUID

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for product view of new report

    See roles information here: Role Based Access Control

    Type

    Parameters

    Example Json

    Description

    Required

    1. String name

    2. String description

    3. String productView

    4. String indexSets

    5. String documentType

    6. String jsonQuery

    7. String jsonParameters

    8. String schedule

    9. List<String>recipients

    10. List<String>adHocFilterTypes

    11. Map<String, String>filtersParameters

    12. String serviceNameFieldOverride

    13. String esHeadersDictionary

    Code Block
    languagejson
    1. recipients → recipients' email address. Array can be sent empty.

    2. filtersParameters→ list of filters. List can be sent empty.

    For report parameters info click here:Reports REST API - Message Structure

    Status
    colourBlue
    titlePUT
    Edit Report

    Additional parameter

    Available adHocFilterTypes:

    Code Block
    languagejson
    {
          ....
            "adHocFilterTypes": [
                "TIME",
                "DEVICE",
                "DOMAIN",
                "APIC_CATALOG",
                "APIC_SPACE",
                "APIC_PRODUCT",
                "APIC_PLAN",
                "APIC_API",
                "APIC_API_VERSION",
                "APIC_CONSUMER_APP"
            ],
          ....
    }

    TODO - add all available filters and their description.

    Additional parameter

    Available filtersParameters:

    Code Block
    languagejson
    {
          ....
            "filtersParameters": {
                "timeRangeType": "recent",
                "timeRangePeriod": "86400000"
            },
          ....
    }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    {
        "resultCode": "SUCCESS",
        "resultMessage": "Report added successfully",
        "result": {
             "name": "<new report name>",
            "description": "<new report description>",
            "productView": "<new report productView>",
            "apiReference": "<New unique report uuid>",
            "indexSets": "<new report indexSet>",
            "documentType": "<new report documentType>",
            "jsonQuery": "<new report query>",
            "schedule": "",
            "recipients": [],
            "adHocFilterTypes": ["TIME", "DEVICE",....],
            "filtersParameters": { "timeRangeType": "recent",.....},
            "lastUpdateTimeInMillis": 1646826210928,
            "lastUpdateUserName": "<current userName>",
            "esHeadersDictionary": ""
        }
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report added successfully”

    result → The report data. For report parameters info click here:Reports REST API - Message Structure

    Status
    colourBlue
    titlePUT
    Edit Report

    {
    Expand
    title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    URL:

    PUT - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    reportApiReferenceId

    required

    The report apiReferenceId you wish to edit ( id can be retrieved from “Retrieved all reports” response)

    path

    UUID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for product view of the report

    See roles information here: Role Based Access Control

    Request:

    Type

    Parameters

    Example Json

    Description

    Required

    1. String name

    2. String description

    3. String productView

    4. String indexSets

    5. String documentType

    6. String jsonQuery

    7. String jsonParameters

    8. String schedule

    9. List<String>recipients

    10. List<String>adHocFilterTypes

    11. Map<String, String>filtersParameters

    12. String serviceNameFieldOverride

    13. String esHeadersDictionary

    Code Block
    languagejson
    {
            "name": "<report edited/source name>",
            "description": "<report edited/source description>",
            "productView": "<report edited/source productView>",
            "indexSets": "<report edited/source indexSet>",
            "documentType": "<report edited/source documentType>",
            "jsonQuery": "<report edited/source query>",
            "schedule": "",
            "recipients": [],
            "adHocFilterTypes": [...],
            "filtersParameters": {...},
            "esHeadersDictionary": ""
        }
    1. recipients → recipients' email address. Array can be sent empty.

    2. filtersParameters→ list of filters. List can be sent empty.

    For report parameters info click here:Reports REST API - Message Structure

    Additional parameter

    Available adHocFilterTypes:

    Code Block
    languagejson
    {
          ....
            "adHocFilterTypes": [
                "nameTIME":,
     "<report edited/source name>",         "descriptionDEVICE":,
     "<report edited/source description>",         "productViewDOMAIN":,
     "<report edited/source productView>",         "indexSets": "<report edited/source indexSet>",APIC_CATALOG",
                "documentType": "<report edited/source documentType>",APIC_SPACE",
                "jsonQueryAPIC_PRODUCT":,
    "<report edited/source query>",         "schedule": "APIC_PLAN",
                "recipients": [],APIC_API",
                "adHocFilterTypes": [...],APIC_API_VERSION",
                "filtersParametersAPIC_CONSUMER_APP":
    {...},        ],
    "esHeadersDictionary": ""     }
    recipients → recipients' email address
    .
    Array can be sent empty
    .
    filtersParameters→ list of filters
    .
    List can be sent empty
    .
    For report parameters info click here:Reports REST API - Message Structure
    
    }

    TODO - add all available filters and their description.

    Additional parameter

    Available adHocFilterTypes filtersParameters:

    Code Block
    languagejson
    {
          ....
            "adHocFilterTypes": [
       
            "TIME",filtersParameters": {
                "timeRangeType": "DEVICErecent",
                "DOMAINtimeRangePeriod",: "86400000"
            },
      "APIC_CATALOG",    ....
    }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    {
        
    "resultCode": 
    "
    APIC_SPACE
    SUCCESS",
        "resultMessage": "Report updated successfully",
        "
    APIC_PRODUCT",
    result": {
             "name": "<report 
    "APIC_PLAN
    edited/source name>",
            "description": "<report edited/source 
    description>"
    APIC_API"
    ,
            "productView": "<report edited/source 
    "APIC_API_VERSION"
    productView>",
            "apiReference": "<report 
    "APIC_CONSUMER_APP"
    uuid>",
            
    ],
    "indexSets": "<report edited/source indexSet>",
       
    ....
     
    }

    TODO - add all available filters and their description.

    Additional parameter

    Available filtersParameters:

    Code Block
    languagejson
        "documentType": "<report 
    ....
    edited/source documentType>",
            "
    filtersParameters
    jsonQuery": 
    {
    "<report 
    edited/source query>",
            "
    timeRangeType
    schedule": "
    recent
    ",
            
    "
    timeRangePeriod
    recipients": 
    "86400000"
    [],
            
    },
    "adHocFilterTypes": ["TIME", "DEVICE",....],
        
    ....
     
    }

    TODO - add all available filters and their description.

    Response:

    Response Type

    Value

    Description

    Successful

    Code Block
    languagejson
    {   "filtersParameters": { "resultCodetimeRangeType": "SUCCESS",
        "resultMessage": "Report updated successfully",recent",.....},
             "resultlastUpdateTimeInMillis": {1646826210928,
             "namelastUpdateUserName": "<report edited/source name><current userName>",
            "descriptionesHeadersDictionary": "<report edited/source description>",
            "productView": "<report edited/source productView>",
            "apiReference": "<report uuid>",
            "indexSets": "<report edited/source indexSet>",
            "documentType": "<report edited/source documentType>",
            "jsonQuery": "<report edited/source query>",
            "schedule": "",
            "recipients": [],
            "adHocFilterTypes": ["TIME", "DEVICE",....],
            "filtersParameters": { "timeRangeType": "recent",.....},
            "lastUpdateTimeInMillis": 1646826210928,
            "lastUpdateUserName": "<current userName>",
            "esHeadersDictionary": ""
        }
    }}
    }

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report updated successfully”

    result → The report data. For report parameters info click here:Reports REST API - Message Structure

    Status
    colourRed
    titleDELETE
    Delete Report

    Expand
    title/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    URL:

    DELETE - https://{{dpodHostname}}/op/api/v2/report/{{productView}}/{{reportApiReferenceId}}

    Request - None.

    Parameters:

    Parameter

    Value

    Description

    Parameter Type

    Data Type

    productView

    required

    Product view APIC / IDG

    path

    APIC / IDG

    reportApiReferenceId

    required

    The report apiReferenceId you wish to delete ( id can be retrieved from “Retrieved all reports” response)

    path

    UUID

    Authorization:

    Authentication Type

    Required Permissions

    More info

    Basic Auth

    1. Edit report

    2. Access permissions for required product related to the report you wish to delete

    See roles information here: Role Based Access Control

    Response:

    Response Type

    Value

    Description

    Successful

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

    Status code: 200

    resultCode → SUCCESS

    resultMessage → “Report

    updated successfully”result → The report data. For report parameters info click here:Reports REST API - Message Structure

    ...

    deleted successfully”