Azure Blob

Permite a configuração de um Blob storage da Azure para receber os arquivos gerados a partir das mensagens trafegadas.

Parâmetros

Parâmetros aceitos para esse tipo de sindicância de destino:

Requisição

curl --location '<HOST>/v1/configs' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: <ACCESS-TOKEN>' \
  --data '{
    "output": {
      "type": "AZURE_BLOB",
      "azure_blob": {
        "container": "CONTAINER",
        "credential": {
          "storage_account": "STORAGE_ACCOUNT",
          "storage_connection_string": "STORAGE_CONNECTION_STRING",
          "storage_access_key": "STORAGE_ACCESS_KEY",
          "storage_sas_token": "STORAGE_SAS_TOKEN"
        },
        "file": {
          "path": "folder/file.csv",
          "extension": "csv",
          "separator": ";",
          "max_size_mb": 100
        }
      }
    }
  }'

Resposta

A resposta desse endpoint será no seguinte formato:

{
  "id": "FIREHOSE-ID",
  "output": {
    "type": "AZURE_BLOB",
    "azure_blob": {
      "container": "CONTAINER",
      "credential": {
        "storage_account": "STORAGE_ACCOUNT",
        "storage_connection_string": "*",
        "storage_access_key": "*",
        "storage_sas_token": "*"
      },
      "file": {
        "path": "folder/file.csv",
        "extension": "csv",
        "separator": ";",
        "max_size_mb": 100
      }
    }
  }
}

Last updated