Skip to content

Latest commit

 

History

History
76 lines (65 loc) · 3.17 KB

federations_id_deliveryservices_id.rst

File metadata and controls

76 lines (65 loc) · 3.17 KB

federations/{{ID}}/deliveryservices/{{dsID}}

DELETE

Removes a :term:`Delivery Service` from a federation. A :term:`Delivery Service` cannot be removed from a federation if it is the only :term:`Delivery Service` assigned to said federation

Auth. Required:Yes
Roles Required:"admin"
Permissions Required:FEDERATION:UPDATE, DELIVERY-SERVICE:UPDATE, FEDERATION:READ, DELIVERY-SERVICE:READ
Response Type:undefined

Request Structure

Request Path Parameters
Name Description
ID The integral, unique identifier of the federation from which the :term:`Delivery Service` identified by dsID will be removed
dsID The integral, unique identifier of the :term:`Delivery Service` which will be removed from the federation identified by ID
DELETE /api/5.0/federations/1/deliveryservices/1 HTTP/1.1
Host: trafficops.infra.ciab.test
User-Agent: curl/7.62.0
Accept: */*
Cookie: mojolicious=...

Response Structure

HTTP/1.1 200 OK
access-control-allow-credentials: true
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept
access-control-allow-methods: POST,GET,OPTIONS,PUT,DELETE
access-control-allow-origin: *
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-type: application/json
date: Wed, 05 Dec 2018 01:06:51 GMT
X-Server-Name: traffic_ops_golang/
set-cookie: mojolicious=...; expires=Wed, 05 Dec 2018 05:06:51 GMT; path=/; HttpOnly
vary: Accept-Encoding
whole-content-sha512: NqAZuZYlF1UWOaazbj/j4gWX7ye0kGGakRRFEkK6ShxqXvCxE0dCTyu75qiLPN2wSgr3FGQnp2Sq345sE7In9g==
content-length: 98

{ "alerts": [
        {
                "level": "success",
                "text": "federation deliveryservice was deleted."
        }
]}