Skip to content
NimbusNexus

Network sharing

Networks are normally project-isolated — a network in project acme-prod is invisible to acme-staging. Network sharing punches a controlled hole in that isolation: you share an object your project owns with another project you hold a role on, and the receiving project can use it as if it were their own — attach VMs to a shared network, say.

POST /api/v1/rbac_policy/ does the sharing. It takes the object_type (network, qos_policy, security_group, subnetpool, address_scope or address_group), the object's object_id, an action such as access_as_shared, and the receiving project in target_tenant.

Use cases: a shared services network (databases, caches, internal APIs) that several application projects need to reach. The alternative is exposing the services on public IPs and re-securing them at L7 — possible, but more complex than sharing the L2 segment within the trust boundary of a workspace.

What's next

  • Networks — the resource that gets shared.
  • Projects — the owners and receivers of shared objects.
  • Security groups — what filters traffic on a shared network.

Reference

GET/api/v1/rbac_policy/

List Rbac Policies

Lists networking RBAC policies visible to the project.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
target_tenantquerystring | null—
tenant_idquerystring | null—
object_typequeryRBACObjectType | null—
object_idquerystring | null—
actionquerystring | null—
project_idquerystring | null—
idquerystring | null—

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/rbac_policy/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/rbac_policy/

Create Rbac Policy

Creates a networking RBAC policy that shares a network resource with another project.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
object_type*RBACObjectTypeNeutron object types that support RBAC sharing (see neutron rbac_db_models).
object_id*stringThe ID of the object the RBAC policy applies to.
action*"access_as_shared" | "access_as_external"The action to be enforced by the policy.
target_tenant*stringThe ID of the project to which access is granted

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/rbac_policy/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "object_type": "network",
    "object_id": "<object_id>",
    "action": "access_as_shared",
    "target_tenant": "example"
  }'
PUT/api/v1/rbac_policy/

Update Rbac Policy

Updates an existing networking RBAC policy.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
rbac_policy_id*string—
target_tenant*stringThe new target project ID

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/rbac_policy/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "rbac_policy_id": "<rbac_policy_id>",
    "target_tenant": "example"
  }'
GET/api/v1/rbac_policy/artifacts

Rbac Policy Artifacts

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

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/rbac_policy/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/rbac_policy/{rbac_policy_id}

Show Rbac Policy

Returns a single networking RBAC policy by ID.

Parameters

NameInTypeDescription
rbac_policy_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/rbac_policy/<rbac_policy_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/rbac_policy/{rbac_policy_id}

Delete Rbac Policy

Deletes a networking RBAC policy by ID.

Parameters

NameInTypeDescription
rbac_policy_id*pathstring—

Responses

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

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/rbac_policy/<rbac_policy_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

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