Retrieve archive settings
GET/v2/archive/settings/:id
Retrieves an archiving settings by the ID of the settings. Please ensure to change the region in the URL to match your account's region.
Request
Path Parameters
ID of the archive settings.
Responses
- 200
successful operation
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
Unique ID of the archive settings.
settings object
Possible values: [S3
, BLOB
]
Specifies the storage provider. If S3
, the amazonS3StorageSettings
are relevant. If BLOB
, the azureBlobStorageSettings
are relevant.
Default value: true
If true
, archiving is currently enabled.
Default value: true
If true
, logs are compressed before they are archived.
amazonS3StorageSettings object
Applicable settings when the storageType
is S3
.
Possible values: [IAM
, KEYS
]
Specifies which credentials will be used for authentication. The options are either KEYS
with s3SecretCredentials
, or IAM
with s3IamCredentials
.
Specify a path to the root of the S3 bucket. (Currently, archiving to a sub-bucket is supported, but not restoring from one.) Unique buckets - It is important to archive each account/sub-account to a separate S3 bucket.
s3SecretCredentials object
Authentication with S3 Secret Credentials is supported for backward compatibility. IAM roles are strongly recommended.
s3IamCredentials object
Amazon Resource Name (ARN) to uniquely identify the S3 bucket.
azureBlobStorageSettings object
Applicable settings when the storageType
is Blob
.
Azure Directory (tenant) ID. The Tenant ID of the AD app. Go to Azure Active Directory > App registrations and select the app to see it.
Azure application (client) ID. The Client ID of the AD app, found under the App Overview page. Go to Azure Active Directory > App registrations and select the app to see it.
Azure client secret. Password of the Client secret, found in the app's Certificates & secrets page. Go to Azure Active Directory > App registrations and select the app. Then select Certificates & secrets to see it.
Azure Storage account name. Name of the storage account that holds the container where the logs will be archived.
Name of the container in the Storage account. This is where the logs will be archived.
Optional virtual sub-folder specifiying a path within the container. Logs will be archived under the path “{container-name}/{virtual sub-folder}”. Avoid leading and trailing slashes (/). For example, the prefix “region1” is good, but “/region1/” is not.
{
"id": 323,
"settings": {
"storageType": "S3",
"enabled": true,
"compressed": true,
"amazonS3StorageSettings": {
"credentialsType": "IAM",
"path": "string",
"s3SecretCredentials": {
"accessKey": "string",
"secretKey": "string"
},
"s3IamCredentials": {
"arn": "string"
}
},
"azureBlobStorageSettings": {
"tenantId": "string",
"clientId": "string",
"clientSecret": "string",
"accountName": "string",
"containerName": "string",
"path": "string"
}
}
}