Origin¶
/api/1.3/origins¶
GET /api/1.3/origins
Get Origins.
Authentication Required: Yes
Role(s) Required: None
Request Query Parameters
Name Required Description cachegroupno Filter Origins by cachegroup ID. coordinateno Filter Origins by coordinate ID. deliveryserviceno Filter Origins by deliveryservice ID. idno Filter Origins by ID. nameno Filter Origins by name. profileIdno Filter Origins by profile ID. primaryno Filter Origins by isPrimary. tenantno Filter Origins by tenant ID. Response Properties
Parameter Type Description cachegroupstring Name of the Origin’s cachegroup cachegroupIdint ID of the Origin’s cachegroup coordinatestring Name of the Origin’s coordinate coordinateIDint ID of the Origin’s coordinate deliveryServicestring XML_ID of the Origin’s delivery service deliveryServiceIdint ID of the Origin’s delivery service fqdnstring The FQDN of the Origin idint Local unique identifier for the Origin ip6Addressstring IPv6 address of the Origin ipAddressstring IPv4 address of the Origin isPrimaryboolean Whether or not this is the primary Origin for the delivery service lastUpdatedstring The Time / Date this entry was last updated namestring The name of the Origin portint The TCP port on which the Origin listens profilestring The profile name of the Origin profileIdint The profile ID of the Origin protocolstring The protocol of the Origin’s URL (http or https) tenantstring The tenant name of the Origin tenantIdint The tenant ID of the Origin Response Example
{ "response": [ { "cachegroup": "cg1", "cachegroupId": 1, "coordinate": "coordinate1", "coordinateId": 1, "deliveryService": "myds", "deliveryServiceId": 1, "fqdn": "example.com", "id": 1, "ip6Address": "cafe:dead:d0d0::42", "ipAddress": "10.2.3.4", "isPrimary": false, "lastUpdated": "2018-05-08 19:33:18+00", "name": "my-origin", "port": 443, "profile": "my-origins", "profileId": 1, "protocol": "https", "tenant": "tenantA", "tenantId": 3 }, { "cachegroup": null, "cachegroupId": null, "coordinate": null, "coordinateId": null, "deliveryService": null, "deliveryServiceId": null, "fqdn": "foo.example.com", "id": 2, "ip6Address": null, "ipAddress": null, "isPrimary": false, "lastUpdated": "2018-05-08 19:35:12+00", "name": "origin2", "port": null, "profile": null, "profileId": null, "protocol": "http", "tenant": null, "tenantId": null } ] }
POST /api/1.3/origins
Create Origin.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Parameters
Name Required Description cachegroupIdno ID of the Origin’s cachegroup coordinateIDno ID of the Origin’s coordinate deliveryServiceIdyes ID of the Origin’s delivery service fqdnyes The FQDN of the Origin ip6Addressno IPv6 address of the Origin ipAddressno IPv4 address of the Origin nameyes The name of the Origin portno The TCP port on which the Origin listens profileIdno The profile ID of the Origin protocolyes The protocol of the Origin’s URL (http or https) tenantIdno The tenant ID of the Origin Request Example
{ "cachegroupId": 1, "coordinateId": 1, "deliveryServiceId": 1, "fqdn": "foo.example.com", "ip6Address": "cafe:dead:d0d0::42", "ipAddress": "10.2.3.4", "name": "origin1", "port": 443, "profileId": 1, "protocol": "https", "tenantId": 1 }Response Properties
Parameter Type Description cachegroupstring Name of the Origin’s cachegroup cachegroupIdint ID of the Origin’s cachegroup coordinatestring Name of the Origin’s coordinate coordinateIDint ID of the Origin’s coordinate deliveryServicestring XML_ID of the Origin’s delivery service deliveryServiceIdint ID of the Origin’s delivery service fqdnstring The FQDN of the Origin idint Local unique identifier for the Origin ip6Addressstring IPv6 address of the Origin ipAddressstring IPv4 address of the Origin isPrimaryboolean Whether or not this is the primary Origin for the delivery service lastUpdatedstring The Time / Date this entry was last updated namestring The name of the Origin portint The TCP port on which the Origin listens profilestring The profile name of the Origin profileIdint The profile ID of the Origin protocolstring The protocol of the Origin’s URL (http or https) tenantstring The tenant name of the Origin tenantIdint The tenant ID of the Origin alertsarray A collection of alert messages. >levelstring Success, info, warning or error. >textstring Alert message. Response Example
{ "alerts": [ { "level": "success", "text": "origin was created." } ], "response": { "cachegroup": null, "cachegroupId": 1, "coordinate": null, "coordinateId": 1, "deliveryService": null, "deliveryServiceId": 1, "fqdn": "foo.example.com", "id": 1, "ip6Address": "cafe:dead:d0d0::42", "ipAddress": "10.2.3.4", "isPrimary": false, "lastUpdated": "2018-05-08 20:30:27+00", "name": "origin1", "port": 443, "profile": null, "profileId": 1, "protocol": "https", "tenant": null, "tenantId": 1 } }
PUT /api/1.3/origins
Update origin.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Query Parameters
Name Required Description id yes The id of the coordinate to edit. Request Parameters
Name Required Description cachegroupIdno ID of the Origin’s cachegroup coordinateIDno ID of the Origin’s coordinate deliveryServiceIdyes ID of the Origin’s delivery service fqdnyes The FQDN of the Origin idyes The ID of the Origin ip6Addressno IPv6 address of the Origin ipAddressno IPv4 address of the Origin nameyes The name of the Origin portno The TCP port on which the Origin listens profileIdno The profile ID of the Origin protocolyes The protocol of the Origin’s URL (http or https) tenantIdno The tenant ID of the Origin Request Example
{ "cachegroupId": 1, "coordinateId": 1, "deliveryServiceId": 1, "fqdn": "foo.example.com", "id": 1, "ip6Address": "cafe:dead:d0d0::42", "ipAddress": "10.2.3.4", "name": "origin1", "port": 443, "profileId": 1, "protocol": "https", "tenantId": 1 }Response Properties
Parameter Type Description cachegroupstring Name of the Origin’s cachegroup cachegroupIdint ID of the Origin’s cachegroup coordinatestring Name of the Origin’s coordinate coordinateIDint ID of the Origin’s coordinate deliveryServicestring XML_ID of the Origin’s delivery service deliveryServiceIdint ID of the Origin’s delivery service fqdnstring The FQDN of the Origin idint Local unique identifier for the Origin ip6Addressstring IPv6 address of the Origin ipAddressstring IPv4 address of the Origin isPrimaryboolean Whether or not this is the primary Origin for the delivery service lastUpdatedstring The Time / Date this entry was last updated namestring The name of the Origin portint The TCP port on which the Origin listens profilestring The profile name of the Origin profileIdint The profile ID of the Origin protocolstring The protocol of the Origin’s URL (http or https) tenantstring The tenant name of the Origin tenantIdint The tenant ID of the Origin alertsarray A collection of alert messages. >levelstring Success, info, warning or error. >textstring Alert message. Response Example
{ "alerts": [ { "level": "success", "text": "origin was updated." } ], "response": { "cachegroup": null, "cachegroupId": 1, "coordinate": null, "coordinateId": 1, "deliveryService": null, "deliveryServiceId": 1, "fqdn": "foo.example.com", "id": 1, "ip6Address": "cafe:dead:d0d0::42", "ipAddress": "10.2.3.4", "isPrimary": false, "lastUpdated": "2018-05-08 20:30:27+00", "name": "origin1", "port": 443, "profile": null, "profileId": 1, "protocol": "https", "tenant": null, "tenantId": 1 } }
DELETE /api/1.3/origin
Delete origin.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Query Parameters
Name Required Description id yes The id of the origin to delete. Response Properties
Parameter Type Description alertsarray A collection of alert messages. >levelstring Success, info, warning or error. >textstring Alert message. Response Example
{ "alerts": [ { "level": "success", "text": "origin was deleted" } ] }