v1
latestOpenAPI 3.0.02026-08-064311,0881.3 MBaccessKeyManagement
Create an access key.
Creates a new access ID and key pair. The new access key can be used from the domains specified in corsHeaders field. Whether Sumo Logic accepts or rejects an API request depends on whether it contains an ORIGIN header and the entries in the allowlist. Sumo Logic will reject:
- Requests with an ORIGIN header but the allowlist is empty.
- Requests with an ORIGIN header that don't match any entry in the allowlist.
post/v1/accessKeys
Request body
Example request
{
"label": "automation access key",
"corsHeaders": [
"https://my-app.com",
"https://mail.my-app.com"
],
"scopes": [
"manageUsersAndRoles",
"viewCollectors"
]
}Response
Access key created successfully.
Example response
{
"id": "su0w3Q37CBzHUM",
"label": "collector access key",
"corsHeaders": [
"https://my-app.com",
"https://mail.my-app.com"
],
"createdAt": "2018-10-16T09:10:00Z",
"createdBy": "0000000006743FDD",
"modifiedAt": "2018-10-16T09:10:00Z",
"modifiedBy": "0000000006743FDD",
"serviceAccountId": "0000000006743FDA",
"lastUsed": "2018-10-16T09:10:00Z",
"scopes": [
"manageUsersAndRoles",
"viewCollectors"
],
"effectiveScopes": [
"manageUsersAndRoles",
"viewCollectors"
],
"key": "F9GZvb4fISxUZHM7pqHCsGXGWf4OArgmt9Tz8ewZ"
}