You're here: Reference > REST Interface > Application Mapping REST Interface

previous topic  next topic

Application Mapping REST Interface

Data

Application mapping is a list of dictionary entries. Each entry specifies one particular mapping:

▪application_uuid
The internal UUID of the mapped application.
▪hosts
A list of all hosts assigned in the particular mapping.
▪prefixes
A list of all prefixes assigned in the particular mapping.

Expand /Collapse All Subsections

Getting the configured customer keys

Request:

Method:

GET

URL:

/application-mapping/

Arguments:

–

 

Response:

Return code

Arguments

Meaning

200

{ ..., "customer_keys": [""]}

dictionary containing all customer keys that are available

Note:  An underscore stands for the empty “[Default Customer Key]”.

401

–

no login

403

–

not enough rights

500

–

internal server error

Getting the application mapping for a specific customer key

Request:

Method:

GET

URL:

/application-mapping/customer_key

Note:  The empty “[Default Customer Key]” needs to be addressed as “_” (underscore).

Arguments:

–

 

Response:

Return code

Arguments

Meaning

200

{ ..., "mapping": [] }

dictionary containing the application mapping for the specified customer key

401

–

no login

403

–

not enough rights

404

–

no application mapping exists for the given customer key

500

–

internal server error

 

Example:

The following request retrieves the application mapping for the the empty [Default Customer Key].

$  curl -n https://something.com:8087/api/af/latest/application-mapping/_

{

   "__name": "_",

   "__path": "/api/af/latest/application-mapping/_/",

   "__subnodes": [],

   "customer_key": "",

   "mapping": [

     {

       "application_uuid": "6b35f8fb2d65288d-5dbded6e7c4389a81c1b28d43eea8628",

       "hosts": [

         "api.something.de"

       ],

       "prefixes": [

         ""

       ]

     },

     {

     ...

Adding application mapping

Request:

Method:

POST

URL:

/application-mapping/

Arguments:

{

"customer_key":

key, "mapping":

[] }

 

Response:

Return code

Arguments

Meaning

200

{ "customer_key": key, "mapping": [] }

application mapping was successfully created

401

–

no login

403

–

not enough rights

409

–

missing or malformed data, or mapping already exists (note that customer key must be unique)

500

–

internal server error

Changing an application mapping

Request:

Method:

PUT

URL:

/application-mapping/customer_key

Note:  The empty “[Default Customer Key]” needs to be addressed as “_” (underscore).

Arguments:

{ "mapping": [] }

 

Response:

Return code

Arguments

Meaning

200

–

application mapping successfully updated

401

–

no login

403

–

not enough rights

404

 

mapping wasn’t found (invalid customer key or mapping doesn’t exist)

409

 

conflicting or malformed mapping data

500

–

internal server error

Deleting an application mapping

Request:

Method:

DELETE

URL:

/application-mapping/customer_key

Note:  The empty “[Default Customer Key]” needs to be addressed as “_” (underscore).

Arguments:

 

 

Response:

Return code

Arguments

Meaning

200

–

application mapping successfully removed

401

–

no login

403

–

not enough rights

404

 

mapping wasn’t found (invalid customer key or mapping doesn’t exist)

500

–

internal server error

REST Interface

Application Mapping, Paths, Preconditions

Editing Application Mapping

Rulesets REST Interface

©  Riverbed Technology, all rights reserved   previous topic  next topic