Pular para o conteúdo principal
GET
/
policies
/
{policyId}
Obter uma política
curl --request GET \
  --url https://api.altostrat.io/policies/{policyId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
  "name": "Política Corporativa Padrão",
  "slug": "default-corporate-policy-a1b2c3d4e5",
  "default": true,
  "custom_input_rules": true,
  "trusted_networks": [
    "10.0.0.0/8"
  ],
  "winbox": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "ssh": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "http": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "https": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "telnet": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "ftp": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "api": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "api_ssl": {
    "enabled": true,
    "port": 8291,
    "networks": [
      "198.51.100.0/24"
    ]
  },
  "sites": [
    "d290f1ee-6c54-4b01-90e6-d701748f0851"
  ],
  "created_at": "2025-10-29T01:00:00Z",
  "updated_at": "2025-10-29T02:30:00Z"
}

Authorizations

Authorization
string
header
required

Insira seu token bearer JWT.

Path Parameters

policyId
string<uuid>
required

O identificador único para a política.

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

Response

O objeto de política.

id
string<uuid>

O identificador único para a política.

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

name
string

Um nome legível para a política.

Example:

"Política Corporativa Padrão"

slug
string

Um identificador único e amigável para URL para a política.

Example:

"default-corporate-policy-a1b2c3d4e5"

default
boolean

Se esta é a política padrão para o workspace.

Example:

true

custom_input_rules
boolean

Se regras de entrada personalizadas estão sendo usadas.

Example:

true

trusted_networks
string[]

Uma lista de redes CIDR que são consideradas confiáveis em todos os serviços nesta política.

winbox
object
ssh
object
http
object
https
object
telnet
object
ftp
object
api
object
api_ssl
object
sites
string<uuid>[]

Uma lista de UUIDs de sites aos quais esta política é aplicada.

Example:
["d290f1ee-6c54-4b01-90e6-d701748f0851"]
created_at
string<date-time>

O timestamp de quando a política foi criada.

Example:

"2025-10-29T01:00:00Z"

updated_at
string<date-time>

O timestamp da última atualização da política.

Example:

"2025-10-29T02:30:00Z"