Retrieve NAR File

post

/v1/nodeManagers/{id}/nars/view

Retrieves NAR records from the specified file on the given Node Manager.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
The schema that defines the search parameters for filtering NARs.
Show Source
Nested Schema : value
Type: array
The list of values to match against the specified filter key.
Show Source
Back to Top

Response

Supported Media Types

200 Response

The NAR records were retrieved successfully.
Body ()
Root Schema : NARResponse
Type: object
Show Source
Nested Schema : records
Type: array
The list of NAR record items retrieved.
Show Source
Nested Schema : NARItem
Type: object
Show Source
Nested Schema : attributes
Type: array
The list of attributes associated with the NAR.
Show Source
Nested Schema : filterPath
Type: array
The list of path indexes for matched attributes.
Show Source
Nested Schema : NARAttribute
Type: object
The schema that defines the details of a record attribute.
Show Source
Nested Schema : values
Type: array
The list of nested NAR attributes.
Show Source
Nested Schema : items
Type: array
Show Source

400 Response

The request could not be understood or was missing required parameters.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

The client does not have the correct privileges.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

The request was not authorized.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

The requested resource cannot be found.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

This method is not allowed.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

The request could not be processed due to a conflict with the existing state of the resource.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

The system has encountered an internal server error.
Body ()
Root Schema : Error
Type: object
Used when an API encounters an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to search and filter through NAR records by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

The -d option specifies the file to attach as the request body.

curl -X POST 'http://host:port/nodeManagers/{id}/nars/view?filePath=%2Fhome%2Focomcuser%2Finstall%2Focomc%2Ftest.arch&includeNarOffset=true&offset=0&limit=200' -d @sampleFilterCriteria.json

Example of Request Body

The following is an example of the contents of the sampleFilterCriteria.json file sent as the request body.

{
    "key": "OriginatingIOI",
    "value": ["nigel", "com"]
}

Example of Response Body

If successful, the response code 200 is displayed with the following response body.
{
    "hasMore": false,
    "limit": 200,
    "offset": 0,
    "records": [
        {
            "attributes": [
                {
                    "key": "SIP-Response-Timestamp",
                    "length": 9,
                    "type": "Bytes",
                    "value": "05 01 28 08 50 54 2b 00 00 "
                },
                {
                    "key": "InterOperatorIdentifiers",
                    "length": 264,
                    "type": "List",
                    "values": [
                        {
                            "key": "OriginatingIOI",
                            "length": 9,
                            "type": "String",
                            "value": "nigel.com"
                        }
                    ]
                }
            ],
            "filterPath": [[3, 0, 0]],
            "narOffset": 0
        }
    ],
    "recordsCount": 1
}
Back to Top