Profiles¶
/api/1.2/profiles¶
GET /api/1.2/profiles
Authentication Required: Yes
Role(s) Required: None
Request Query Parameters
Name Required Description paramno Used to filter profiles by parameter ID. cdnno Used to filter profiles by CDN ID. Response Properties
Parameter Type Description idstring Primary key namestring The name for the profile descriptionstring The description for the profile cdnint The CDN ID cdnNamestring The CDN name typestring Profile type routingDisabledbool Traffic router routing disabled - defaults to false. lastUpdatedarray The Time / Date this server entry was last updated Response Example
{ "response": [ { "id": "8", "name": "EDGE_27_PROFILE", "description": "A profile with all the Foo parameters" "cdn": 1 "cdnName": "cdn1" "type": "ATS_PROFILE" "routingDisabled": false "lastUpdated": "2012-10-08 19:34:45", } ] }
GET /api/1.2/profiles/trimmed
Authentication Required: Yes
Role(s) Required: None
Response Properties
Parameter Type Description namestring The name for the profile Response Example
{ "response": [ { "name": "EDGE_27_PROFILE" } ] }
GET /api/1.2/profiles/:id
Authentication Required: Yes
Role(s) Required: None
Request Route Parameters
Parameter Required Description idyes The ID of the profile. Response Properties
Parameter Type Description idstring Primary key namestring The name for the profile descriptionstring The description for the profile cdnint The CDN ID cdnNamestring The CDN name typestring Profile type routingDisabledbool Traffic router routing disabled lastUpdatedarray The Time / Date this server entry was last updated Response Example
{ "response": [ { "id": "8", "name": "EDGE_27_PROFILE", "description": "A profile with all the Foo parameters" "cdn": 1 "cdnName": "cdn1" "type": "ATS_PROFILE" "routingDisabled": true "lastUpdated": "2012-10-08 19:34:45", } ] }
- POST /api/1.2/profiles
Create a new empty profile.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Properties
Parameter Type Required Description namestring yes Profile name descriptionstring yes Profile description cdnint no CDN ID typestring yes Profile type routingDisabledbool no Traffic router routing disabled. Defaults to false. Request Example
{ "name": "EDGE_28_PROFILE", "description": "EDGE_28_PROFILE description", "cdn": 1, "type": "ATS_PROFILE", "routingDisabled": false }
Response Properties
Parameter Type Description idstring Profile ID namestring Profile name descriptionstring Profile description cdnint CDN ID typestring Profile type routingDisabledbool Traffic router routing disabled Response Example
{ "response": [ { "id": "66", "name": "EDGE_28_PROFILE", "description": "EDGE_28_PROFILE description", "cdn": 1, "type": "ATS_PROFILE", "routingDisabled": false } ] }
- POST /api/1.2/profiles/name/:profile_name/copy/:profile_copy_from
Copy profile to a new profile. The new profile name must not exist.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Route Parameters
Name Required Description profile_nameyes The name of profile to copy profile_copy_fromyes The name of profile copy from Response Properties
Parameter Type Description idstring Id of the new profile namestring The name of the new profile profileCopyFromstring The name of profile to copy idCopyFromstring The id of profile to copy descriptionstring new profile’s description (copied) Response Example
{ "response": [ { "id": "66", "name": "CCR_COPY", "profileCopyFrom": "CCR1", "description": "CCR_COPY description", "idCopyFrom": "3" } ] }
PUT /api/1.2/profiles/{:id}
Allows user to edit a profile.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Route Parameters
Name Required Description idyes profile id. Request Properties
Parameter Type Required Description namestring yes Profile name descriptionstring yes Profile description cdnint no CDN ID - must use the same ID as any servers assigned to the profile. typestring yes Profile type routingDisabledbool no Traffic router routing disabled. When not present, value defaults to false. Request Example
{ "name": "EDGE_28_PROFILE", "description": "EDGE_28_PROFILE description", "cdn": 1, "type": "ATS_PROFILE", "routingDisabled": false }
Response Properties
Parameter Type Description idstring Profile ID namestring Profile name descriptionstring Profile description cdnint CDN ID typestring Profile type routingDisabledbool Traffic router routing disabled Response Example
{ "response":{ "id": "219", "name": "EDGE_28_PROFILE", "description": "EDGE_28_PROFILE description" "cdn": 1 "type": "ATS_PROFILE", "routingDisabled": false } "alerts":[ { "level": "success", "text": "Profile was updated: 219" } ] }
DELETE /api/1.2/profiles/{:id}
Allows user to delete a profile.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Route Parameters
Name Required Description idyes profile id. Response Properties
Parameter Type Description alertsarray A collection of alert messages. >levelstring success, info, warning or error. >textstring Alert message. versionstring Response Example
{ "alerts": [ { "level": "success", "text": "Profile was deleted." } ] }