deliveryservices_regexes

GET

Retrieves routing regular expressions for all Delivery Services.

Auth. Required:

Yes

Roles Required:

None[1]

Response Type:

Array

Request Structure

No parameters available

Response Structure

dsName:

The name of the Delivery Service represented by this object

regexes:

An array of objects that represent various routing regular expressions used by dsName

pattern:

The actual regular expression - \s are escaped

setNumber:

The order in which the regular expression is evaluated against requests

type:

The type of regular expression - determines that against which it will be evaluated

#324 Response Example
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 18 Nov 2019 17:40:54 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: +2MI+Q/NJqTizlMR/MhPAL+yu6/z/Yqvo5fDO8F593RMOmK6dX/Al4wARbEG+HQaJNgSCRPsiLVATusrmnnCMA==
X-Server-Name: traffic_ops_golang/
Date: Tue, 27 Nov 2018 19:22:59 GMT
Content-Length: 110

{ "response": [
    {
        "regexes": [
            {
                "type": "HOST_REGEXP",
                "setNumber": 0,
                "pattern": ".*\\.demo1\\..*"
            }
        ],
        "dsName": "demo1"
    }
]}