Saltar al contenido
NimbusNexus

Grupos de direcciones

Un grupo de direcciones es un conjunto de bloques CIDR, con nombre y modificable, al que puedes hacer referencia desde las reglas de los grupos de seguridad. En lugar de pegar la misma lista de permitidos en diez grupos de seguridad, creas un grupo de direcciones (office-cidrs) y haces referencia a él desde cada regla. Añade o quita un CIDR del grupo y todas las reglas que hacen referencia a él se actualizan al instante.

El caso de uso típico: los CIDRs de la VPN corporativa, que cambian con el tiempo. Mantener la lista directamente en cada grupo de seguridad te obliga a ir buscándola por todas partes cuando cambia un CIDR; mantenerla en un único grupo de direcciones te permite actualizarla en un solo sitio.

Próximos pasos

  • Grupos de seguridad — donde se hace referencia a los grupos de direcciones.
  • Redes y Subredes — la capa de red dentro de la que se aplican los grupos de direcciones.

Reference

GET/api/v1/address_group/

List Address Groups

Lists address groups visible to the project.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
namequerystring | null—
descriptionquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/address_group/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/address_group/

Create Address Group

Creates an address group that can be referenced by security group rules.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
name*string—
descriptionstring | null—
addressesarray of string | null—
project_idstring | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/address_group/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
GET/api/v1/address_group/{address_group_id}

Get Address Group

Returns the details of a single address group by ID.

Parameters

NameInTypeDescription
address_group_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/address_group/<address_group_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PUT/api/v1/address_group/{address_group_id}

Update Address Group

Updates the name or description of an existing address group.

Parameters

NameInTypeDescription
address_group_id*pathstring—

Request body

FieldTypeDescription
namestring | null—
descriptionstring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PUT "https://api.nimbusnexus.net/api/v1/address_group/<address_group_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/address_group/{address_group_id}

Delete Address Group

Deletes an address group by ID.

Parameters

NameInTypeDescription
address_group_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation Error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/address_group/<address_group_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PUT/api/v1/address_group/{address_group_id}/add_addresses

Add Addresses

Adds CIDR addresses to an existing address group.

Parameters

NameInTypeDescription
address_group_id*pathstring—

Request body

FieldTypeDescription
addresses*array of string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PUT "https://api.nimbusnexus.net/api/v1/address_group/<address_group_id>/add_addresses" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "addresses": [
      "example"
    ]
  }'
PUT/api/v1/address_group/{address_group_id}/remove_addresses

Remove Addresses

Removes CIDR addresses from an existing address group.

Parameters

NameInTypeDescription
address_group_id*pathstring—

Request body

FieldTypeDescription
addresses*array of string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PUT "https://api.nimbusnexus.net/api/v1/address_group/<address_group_id>/remove_addresses" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "addresses": [
      "example"
    ]
  }'

Need to make a real call? Try these endpoints in the live Swagger UI →