Security Requirements and Controls
API Stability Short-Term

The blockIngest() GraphQL mutation is used to block ingest to a specified repository for a number of seconds. The maximum is one year.

For more information on blocking and unblocking ingesting data, see the Blocking and Unblocking Ingestion documentation page.

Syntax

Below is the syntax for the blockIngest() mutation:

graphql
blockIngest(
     repositoryName: string!
     seconds: integer!
   ): BlockIngestMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  blockIngest(repositoryName: "humio", seconds: 10)
  {repository {timeOfLatestIngest, ingestBlock} }
}
Example Responses
Show:
json
{
  "data": {
    "blockIngest": {
      "repository": {
        "timeOfLatestIngest": "2024-11-15T06:34:16.311Z",
        "ingestBlock": "2024-11-15T06:35:05.947Z"
      }
    }
  }
}

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, BlockIngestMutation. There is one parameter and many sub-parameter for it. Click on the link below to the sub-parameters table to see more.

Table: BlockIngestMutation

ParameterTypeRequiredDefaultStabilityDescription
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
repositoryRepositoryyes Short-TermThe repository for which to block the query. See Repository.

The returned datatype has its own special datatypes. You can click on the links below for more information on its parameters: