Retrieves all Delivery Services
assigned to a specific server.
- Auth. Required
Yes
- Roles Required
None1
- Permissions Required
DELIVERY-SERVICE:READ, SERVER:READ
- Response Type
Array
Name | Description |
---|---|
ID | The integral, unique identifier of the server for which assigned Delivery Services shall be listed |
Name | Required | Description |
---|---|---|
orderby | no | Choose the ordering of the results - must be the name of one of the fields of the objects in the response array |
sortOrder | no | Changes the order of sorting. Either ascending (default or "asc") or descending ("desc") |
limit | no | Choose the maximum number of results to return |
offset | no | The number of results to skip before beginning to return results. Must use in conjunction with limit |
page | no | Return the nth page of results, where "n" is the value of this parameter, pages are limit long and the first page is 1. If offset was defined, this query parameter has no effect. limit must be defined to make use of page . |
GET /api/4.0/servers/10/deliveryservices HTTP/1.1
Host: trafficops.infra.ciab.test
User-Agent: python-requests/2.24.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Cookie: mojolicious=...
- active
A boolean that defines
ds-active
.- anonymousBlockingEnabled
A boolean that defines
ds-anonymous-blocking
- ccrDnsTtl
The
ds-dns-ttl
- named "ccrDnsTtl" for legacy reasons- cdnId
The integral, unique identifier of the
ds-cdn
to which theDelivery Service
belongs- cdnName
Name of the
ds-cdn
to which theDelivery Service
belongs- checkPath
A
ds-check-path
- consistentHashRegex
A
ds-consistent-hashing-regex
- consistentHashQueryParams
An array of
ds-consistent-hashing-qparams
- deepCachingType
The
ds-deep-caching
setting for thisDelivery Service
- displayName
The
ds-display-name
- dnsBypassCname
A
ds-dns-bypass-cname
- dnsBypassIp
A
ds-dns-bypass-ip
- dnsBypassIp6
A
ds-dns-bypass-ipv6
- dnsBypassTtl
The
ds-dns-bypass-ttl
- dscp
A
ds-dscp
to be used within theDelivery Service
- ecsEnabled
A boolean that defines the
ds-ecs
setting on thisDelivery Service
- edgeHeaderRewrite
A set of
ds-edge-header-rw-rules
- exampleURLs
An array of
ds-example-urls
- firstHeaderRewrite
A set of
ds-first-header-rw-rules
- fqPacingRate
The
ds-fqpr
- geoLimit
An integer that defines the
ds-geo-limit
- geoLimitCountries
An array of strings defining the
ds-geo-limit-countries
- geoLimitRedirectUrl
A
ds-geo-limit-redirect-url
- geoProvider
The
ds-geo-provider
- globalMaxMbps
The
ds-global-max-mbps
- globalMaxTps
The
ds-global-max-tps
- httpBypassFqdn
A
ds-http-bypass-fqdn
- id
An integral, unique identifier for this
Delivery Service
- infoUrl
An
ds-info-url
- initialDispersion
The
ds-initial-dispersion
- innerHeaderRewrite
A set of
ds-inner-header-rw-rules
- ipv6RoutingEnabled
A boolean that defines the
ds-ipv6-routing
setting on thisDelivery Service
- lastHeaderRewrite
A set of
ds-last-header-rw-rules
- lastUpdated
The date and time at which this
Delivery Service
was last updated, in :rfc:3339 format
4.0 Prior to API version 4.0, this property used
non-rfc-datetime
.
- logsEnabled
A boolean that defines the
ds-logs-enabled
setting on thisDelivery Service
- longDesc
The
ds-longdesc
of thisDelivery Service
- matchList
The
Delivery Service
'sds-matchlist
- pattern
A regular expression - the use of this pattern is dependent on the
type
field (backslashes are escaped)- setNumber
An integer that provides explicit ordering of
ds-matchlist
items - this is used as a priority ranking by Traffic Router, and is not guaranteed to correspond to the ordering of items in the array.- type
The type of match performed using
pattern
.- maxDnsAnswers
The
ds-max-dns-answers
allowed for thisDelivery Service
- maxOriginConnections
The
ds-max-origin-connections
- midHeaderRewrite
A set of
ds-mid-header-rw-rules
- missLat
The
ds-geo-miss-default-latitude
used by thisDelivery Service
- missLong
The
ds-geo-miss-default-longitude
used by thisDelivery Service
- multiSiteOrigin
A boolean that defines the use of
ds-multi-site-origin
by thisDelivery Service
- orgServerFqdn
The
ds-origin-url
- originShield
A
ds-origin-shield
string- profileDescription
The
profile-description
of theds-profile
with which thisDelivery Service
is associated- profileId
The
profile-id
of theds-profile
with which thisDelivery Service
is associated- profileName
The
profile-name
of theds-profile
with which thisDelivery Service
is associated- protocol
An integral, unique identifier that corresponds to the
ds-protocol
used by thisDelivery Service
- qstringIgnore
An integral, unique identifier that corresponds to the
ds-qstring-handling
setting on thisDelivery Service
- rangeRequestHandling
An integral, unique identifier that corresponds to the
ds-range-request-handling
setting on thisDelivery Service
- regexRemap
A
ds-regex-remap
- regionalGeoBlocking
A boolean defining the
ds-regionalgeo
setting on thisDelivery Service
- remapText
ds-raw-remap
- signed
true
if and only ifsigningAlgorithm
is notnull
,false
otherwise- signingAlgorithm
Either a
ds-signing-algorithm
ornull
to indicate URL/URI signing is not implemented on thisDelivery Service
- rangeSliceBlockSize
An integer that defines the byte block size for the ATS Slice Plugin. It can only and must be set if
rangeRequestHandling
is set to 3.- sslKeyVersion
This integer indicates the
ds-ssl-key-version
- tenantId
The integral, unique identifier of the
ds-tenant
who owns thisDelivery Service
- tlsVersions
A list of explicitly supported
ds-tls-versions
4.0
- topology
The unique name of the
Topology
that thisDelivery Service
is assigned to- trRequestHeaders
If defined, this defines the
ds-tr-req-headers
used by Traffic Router for thisDelivery Service
- trResponseHeaders
If defined, this defines the
ds-tr-resp-headers
used by Traffic Router for thisDelivery Service
- type
The
ds-types
of thisDelivery Service
- typeId
The integral, unique identifier of the
ds-types
of thisDelivery Service
- xmlId
This
Delivery Service
'sds-xmlid
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-Encoding: gzip
Content-Type: application/json
Permissions-Policy: interest-cohort=()
Set-Cookie: mojolicious=...; Path=/; Expires=Tue, 08 Jun 2021 01:15:07 GMT; Max-Age=3600; HttpOnly
Vary: Accept-Encoding
Whole-Content-Sha512: RO4tVfDdqx0rEU9BqlRmvsYXmVgVNkivqr6LhJlMulfR+1bLGivP8z93jy3N9bejcMdQwl1RwJojM3MbwgXcqA==
X-Server-Name: traffic_ops_golang/
Date: Tue, 08 Jun 2021 00:15:07 GMT
Content-Length: 806
{ "response": [{
"active": false,
"anonymousBlockingEnabled": false,
"ccrDnsTtl": 3600,
"cdnId": 2,
"cdnName": "CDN-in-a-Box",
"checkPath": null,
"consistentHashQueryParams": [],
"consistentHashRegex": null,
"deepCachingType": "NEVER",
"displayName": "test",
"dnsBypassCname": null,
"dnsBypassIp": null,
"dnsBypassIp6": null,
"dnsBypassTtl": null,
"dscp": 0,
"ecsEnabled": false,
"edgeHeaderRewrite": null,
"exampleURLs": [
"http://cdn.test.mycdn.ciab.test"
],
"firstHeaderRewrite": null,
"fqPacingRate": null,
"geoLimit": 0,
"geoLimitCountries": null,
"geoLimitRedirectURL": null,
"geoProvider": 0,
"globalMaxMbps": null,
"globalMaxTps": null,
"httpBypassFqdn": null,
"id": 7,
"infoUrl": null,
"initialDispersion": 1,
"innerHeaderRewrite": null,
"ipv6RoutingEnabled": true,
"lastHeaderRewrite": null,
"lastUpdated": "2021-06-08T00:14:04.959292Z",
"logsEnabled": false,
"longDesc": "Apachecon North America 2018",
"matchList": [
{
"type": "HOST_REGEXP",
"setNumber": 0,
"pattern": ".*\\.test\\..*"
}
],
"maxDnsAnswers": null,
"maxOriginConnections": 0,
"maxRequestHeaderBytes": 0,
"midHeaderRewrite": null,
"missLat": 41.881944,
"missLong": -87.627778,
"multiSiteOrigin": false,
"originShield": null,
"orgServerFqdn": "http://origin.infra.ciab.test",
"profileDescription": null,
"profileId": null,
"profileName": null,
"protocol": 0,
"qstringIgnore": 0,
"rangeRequestHandling": 0,
"rangeSliceBlockSize": null,
"regexRemap": null,
"regionalGeoBlocking": false,
"remapText": null,
"routingName": "cdn",
"serviceCategory": null,
"signed": false,
"signingAlgorithm": null,
"sslKeyVersion": null,
"tenant": "root",
"tenantId": 1,
"tlsVersions": null,
"topology": null,
"trResponseHeaders": null,
"trRequestHeaders": null,
"type": "HTTP",
"typeId": 1,
"xmlId": "test"
}]}
Assign an arbitrary number of Delivery Services
to a single server.
- Auth. Required
Yes
- Roles Required
"admin" or "operations"
- Permissions Required
DELIVERY-SERVICE:READ, SERVER:READ, DELIVERY-SERVICE:UPDATE, SERVER:UPDATE
- Response Type
Object
Name | Required | Description |
ID | Yes | The integral, unique identifier of the server that you want to assign delivery services to. |
Name | Required | Description |
replace | Yes | Whether the list of Delivery Services you provide should replace the existing list or be merged with the existing list. Must be a 1, or true, or 0, or false. |
The request body is an array of IDs of Delivery Services
that you want to assign to the server. The array can be empty, but it must be provided.
POST /api/4.0/servers/6/deliveryservices?replace=1 HTTP/1.1
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Cookie: mojolicious=...
Content-Length: 3
[
1
]
- dsIds
An array of integral, unique identifiers for
Delivery Services
which the request added to server. If:replace:
isfalse
,Delivery Services
that are already assigned will remain, though they are not listed by:dsIds:
.- replace
The
:replace:
value you provided in the body of the request, ornull
if none was provided.- serverId
The server's integral, unique identifier
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-Encoding: gzip
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; Expires=Tue, 25 Feb 2020 09:08:32 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: iV+JzAZSsmlxRZsNtIRg3oA9470hAwrMpq5xhcYVi0Y831Trx2YRlsyhYpOPqHg5+QPoXHGF0nx8uso0fuNarw==
X-Server-Name: traffic_ops_golang/
Date: Tue, 25 Feb 2020 08:08:32 GMT
Content-Length: 129
{
"alerts": [
{
"text": "successfully assigned dses to server",
"level": "success"
}
],
"response": {
"serverId": 6,
"dsIds": [
1
],
"replace": true
}
}
Only the
Delivery Services
visible to the requesting user'sTenant
will appear, regardless of theirRole
or theDelivery Services
' actual 'server assignment' status.↩