Logo
Akamai APIs API Documentation

Activate a stream

POST https://{{host}}/datastream-config-api/v2/log/streams/:streamId/activate

Activates the latest version of a stream. Activating a stream takes approximately an hour. Once a stream is active, and the DataStream behavior is enabled in Property Manager, it replaces the previous active version which is deactivated by default, starts collecting data and sending log files to a destination. If you want to stop receiving the logs, you can deactivate the stream at any time. See the Deactivate a stream operation.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "collectMidgress": true, "contractId": "C-0N7RAC7", "createdBy": "alfulani", "createdDate": "2022-02-05T13:31:30Z", "datasetFields": [ { "datasetFieldId": 1000, "datasetFieldJsonKey": "cp", "datasetFieldName": "CP code" }, { "datasetFieldId": 1002, "datasetFieldJsonKey": "reqId", "datasetFieldName": "Request ID" }, { "datasetFieldId": 1023, "datasetFieldJsonKey": "cookie", "datasetFieldName": "Cookie" } ], "deliveryConfiguration": { "fieldDelimiter": "SPACE", "format": "STRUCTURED", "frequency": { "intervalInSeconds": 30 }, "uploadFilePrefix": "logs", "uploadFileSuffix": "ds" }, "destination": { "bucket": "datastream.akamai.com", "compressLogs": true, "destinationType": "S3", "displayName": "S3Destination", "path": "ds2-logs", "region": "ap-south-1" }, "groupId": 32145, "latestVersion": 1, "modifiedBy": "alfulani", "modifiedDate": "2022-02-05T13:31:30Z", "notificationEmails": [ "useremail1@domain.com", "useremail2@domain.com" ], "productId": "Dynamic_Site_Accelerator", "properties": [ { "propertyId": 349772, "propertyName": "example.com" }, { "propertyId": 349770, "propertyName": "example.akamai.com" } ], "streamId": 7050, "streamName": "diagnostics-log-stream", "streamStatus": "ACTIVATING", "streamVersion": 1 }



Curl
curl -X POST 'https://undefined/datastream-config-api/v2/log/streams/:streamId/activate' -H 'Accept: application/json'

ENDPOINTS