Pular para o conteúdo principal
GET
/
v1
/
organizations
/
{organization_id}
/
microservices
Listar microserviços de uma organização
curl --request GET \
  --url https://api.flexxible.net/v1/organizations/{organization_id}/microservices \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.flexxible.net/v1/organizations/{organization_id}/microservices"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.flexxible.net/v1/organizations/{organization_id}/microservices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flexxible.net/v1/organizations/{organization_id}/microservices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.flexxible.net/v1/organizations/{organization_id}/microservices"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.flexxible.net/v1/organizations/{organization_id}/microservices")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.flexxible.net/v1/organizations/{organization_id}/microservices")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "has_next": false,
  "data": [
    {
      "id": "65f0d9f2b3c4d5e6f7080911",
      "organization_id": "507f1f77bcf86cd799439011",
      "name": "Antivirus Scan",
      "description": "Escaneo programado de antivirus",
      "category": "security",
      "created_at": "2026-05-15T10:00:00Z",
      "archived_at": null,
      "type": "standard",
      "context": "organization",
      "is_ai_enhanced": false,
      "enabled": true,
      "enabled_configuration": {
        "enabled_at": "2026-05-15T10:30:00Z",
        "efficiency": 95,
        "workspace_group_execution": "l1",
        "individual_execution": "l3",
        "end_user_execution_workspace_group_ids": [
          "65f0d9f2b3c4d5e6f7080931",
          "65f0d9f2b3c4d5e6f7080932"
        ]
      }
    },
    {
      "id": "65f0d9f2b3c4d5e6f7080912",
      "organization_id": "507f1f77bcf86cd799439011",
      "name": "Patch Baseline",
      "description": "Control de parches pendientes",
      "category": "maintenance",
      "created_at": "2026-05-16T12:00:00Z",
      "archived_at": null,
      "type": "standard",
      "context": "organization",
      "is_ai_enhanced": true,
      "enabled": false,
      "enabled_configuration": null
    }
  ]
}
{
"error": {
"message": "Formato de filtros inválido",
"code": "bad_request",
"details": "El parámetro filters debe ser una cadena JSON válida."
}
}
{
"error": {
"message": "No autorizado",
"code": "unauthorized"
}
}
{
"error": {
"message": "No encontrado",
"code": "not_found"
}
}
{
"error": {
"message": "Error interno del servidor",
"code": "internal_error"
}
}

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cabeçalhos

Accept-Language
string
padrão:es-ES

Idioma para resolver os campos multilíngue da resposta para um único valor por campo.

Maximum string length: 10

Parâmetros de caminho

organization_id
string
obrigatório

Identificador da organização alvo sobre a qual se consulta o catálogo; a habilitação é verificada contra este mesmo identificador.

Required string length: 24
Pattern: ^[0-9a-f]{24}$

Parâmetros de consulta

page
integer
padrão:1

Número da página.

Intervalo obrigatório: x >= 1
per_page
integer
padrão:100

Quantidade de elementos por página.

Intervalo obrigatório: 1 <= x <= 100
fields
string

Campos de resposta a serem incluídos, separados por vírgulas.

Maximum string length: 2048
filters
string

Expressão JSON de filtros sobre campos filtráveis do recurso.

Maximum string length: 5120

Resposta

Microserviços recuperados corretamente.

has_next
boolean
obrigatório

Indica se existe uma próxima página.

data
object[]
obrigatório