diff --git a/src/content/docs/en/pages/observe-journey/data-stream/advanced-configurations/configure-sampling.mdx b/src/content/docs/en/pages/observe-journey/data-stream/advanced-configurations/configure-sampling.mdx index e7f526f5fc..18214888cb 100644 --- a/src/content/docs/en/pages/observe-journey/data-stream/advanced-configurations/configure-sampling.mdx +++ b/src/content/docs/en/pages/observe-journey/data-stream/advanced-configurations/configure-sampling.mdx @@ -44,17 +44,18 @@ Once you enable the Sampling feature, you can only have one active stream. If yo For this section, you'll be creating a stream with an Apache Kafka connector via API. See other connector options in the [Data Stream Endpoints](https://api.azion.com/#04257075-3691-4b5f-b22b-22a5b6653f3f) table. -1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/): +1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "Kafka Connector", "template_id": 2, - "domain_ids": [1656613172], + "workloads": [1656613172], "data_source": "http", "endpoint": { "endpoint_type": "kafka", diff --git a/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/configure-main-settings.mdx b/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/configure-main-settings.mdx index bb9af7de00..a90e50ed59 100644 --- a/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/configure-main-settings.mdx +++ b/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/configure-main-settings.mdx @@ -53,19 +53,21 @@ Check the [Data Stream Properties](https://api.azion.com/#04257075-3691-4b5f-b22 1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. You'll receive a response with all your existing streams. Copy the value of the `` that you want to configure. 3. Run a `PATCH` request to modify the stream as follows: ```bash -curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request PATCH \ + --url https://api.azion.com/v4/data_stream/streams/id \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "My Elasticsearch connector", "template_id": 2, diff --git a/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/set-payload.mdx b/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/set-payload.mdx index 80224eb2e2..0595bbdbf0 100644 --- a/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/set-payload.mdx +++ b/src/content/docs/en/pages/observe-journey/data-stream/edit-stream/set-payload.mdx @@ -39,10 +39,11 @@ In this guide, you'll learn how to configure a payload in NDJSON format. 1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "My HTTPS connector", "template_id": 2, diff --git a/src/content/docs/en/pages/observe-journey/data-stream/integrations/connector-standard-http-https-post.mdx b/src/content/docs/en/pages/observe-journey/data-stream/integrations/connector-standard-http-https-post.mdx index 3334c35294..ac05c823f8 100644 --- a/src/content/docs/en/pages/observe-journey/data-stream/integrations/connector-standard-http-https-post.mdx +++ b/src/content/docs/en/pages/observe-journey/data-stream/integrations/connector-standard-http-https-post.mdx @@ -60,13 +60,14 @@ In the **Destination** configurations: -1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your ``: +1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to create your data stream. ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "HTTPS connector", "template_id": 2, diff --git a/src/content/docs/pt-br/pages/observe-jornada/data-stream/configuracoes-avancadas/configure-sampling.mdx b/src/content/docs/pt-br/pages/observe-jornada/data-stream/configuracoes-avancadas/configure-sampling.mdx index 54b7ec5484..b42c3c313a 100644 --- a/src/content/docs/pt-br/pages/observe-jornada/data-stream/configuracoes-avancadas/configure-sampling.mdx +++ b/src/content/docs/pt-br/pages/observe-jornada/data-stream/configuracoes-avancadas/configure-sampling.mdx @@ -41,17 +41,18 @@ Após ativar a função de Sampling, você só poderá ter um stream ativo. Se v Para esta seção, você estará criando um stream com um conector Apache Kafka via API. Veja outras opções de conectores na tabela [Data Stream Endpoints](https://api.azion.com/#04257075-3691-4b5f-b22b-22a5b6653f3f). -1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/): +1. Execute a seguinte requisição `POST` em seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "Kafka Connector", "template_id": 2, - "domain_ids": [1656613172], + "workloads": [1656613172], "data_source": "http", "endpoint": { "endpoint_type": "kafka", diff --git a/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/adicionar-payload.mdx b/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/adicionar-payload.mdx index 31ed325a0d..1c14a638af 100644 --- a/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/adicionar-payload.mdx +++ b/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/adicionar-payload.mdx @@ -37,10 +37,11 @@ Neste guia, você aprenderá como configurar um payload no formato NDJSON. 1. Execute a seguinte requisição `POST` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/): ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "My HTTPS connector", "template_id": 2, diff --git a/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/configure-main-settings.mdx b/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/configure-main-settings.mdx index 88c6eeb211..e9b8b2e9d2 100644 --- a/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/configure-main-settings.mdx +++ b/src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/configure-main-settings.mdx @@ -51,19 +51,21 @@ Consulte a tabela de [Data Stream Properties](https://api.azion.com/#ed05fed1-9e 1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu ``: ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' +curl --request GET \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' ``` 2. Você receberá uma resposta com todos os seus streams existentes. Copie o valor do `` que deseja configurar. 3. Execute uma requisição `PATCH` para modificar o stream da seguinte forma: ```bash -curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request PATCH \ + --url https://api.azion.com/v4/data_stream/streams/id \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "My Elasticsearch connector", "template_id": 2, diff --git a/src/content/docs/pt-br/pages/observe-jornada/data-stream/integracoes/conector-standard-http-https-post.mdx b/src/content/docs/pt-br/pages/observe-jornada/data-stream/integracoes/conector-standard-http-https-post.mdx index 0bda950480..10da9082cb 100644 --- a/src/content/docs/pt-br/pages/observe-jornada/data-stream/integracoes/conector-standard-http-https-post.mdx +++ b/src/content/docs/pt-br/pages/observe-jornada/data-stream/integracoes/conector-standard-http-https-post.mdx @@ -60,13 +60,14 @@ Nas configurações de **Destination**: -1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token]/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu ``: +1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token]/pt-br/documentacao/produtos/guias/personal-tokens/) para criar seu data stream. ```bash -curl --location 'https://api.azionapi.net/data_streaming/streamings' \ ---header 'Accept: application/json; version=3' \ ---header 'Authorization: Token [TOKEN VALUE]' \ ---header 'Content-Type: application/json' \ +curl --request POST \ + --url https://api.azion.com/v4/data_stream/streams \ + --header 'Accept: application/json' \ + --header 'Authorization: [TOKEN VALUE]' \ + --header 'Content-Type: application/json' \ --data '{ "name": "HTTPS connector", "template_id": 2,