API Stability |
Preview
|
The gcsConfigureArchiving() GraphQL mutation may be used to configure GCS archiving for a repository (e.g., bucket).
Syntax
Below is the syntax for the gcsConfigureArchiving() mutation field:
graphql
gcsConfigureArchiving(
repositoryName: string!,
bucket: string!,
format: ArchivingFormat!,
tagOrderInName: [string!],
startFromDateTime: datetime
): BooleanResultType!
Below is an example of how this mutation field might be used:
graphql
mutation {
gcsConfigureArchiving(
repositoryName: "humio",
bucket: "pale-1",
format: NDJSON,
tagOrderInName: ["admin", "other"],
)
{ result }
}
json
{
"data": {
"gcsConfigureArchiving": {
"result": true
}
}
}
Given Datatypes
ArchivingFormat is an enumerated list of formats from which to choose. Below is a list of them along with descriptions of each:
Table: ArchivingFormat
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Mar 12, 2025 | |||||
NDJSON | boolean | Preview | Whether the archive format uses the Newline Delimited JSON format. | ||
RAW | boolean | Preview | Whether the archive is in raw data, unformatted. |
Returned Datatypes
BooleanResultType
has
one parameter. It's described here:
Table: BooleanResultType
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 24, 2024 | |||||
results | boolean | yes | Long-Term | Whether the mutation was performed. |