Skip to content

Openstack Network Rbac Policies

Operations Summary

Method Endpoint Description
GET /api/openstack-network-rbac-policies/ List Openstack Network Rbac Policies
GET /api/openstack-network-rbac-policies/{uuid}/ Retrieve
POST /api/openstack-network-rbac-policies/ Create RBAC policy for the network
PUT /api/openstack-network-rbac-policies/{uuid}/ Update
PATCH /api/openstack-network-rbac-policies/{uuid}/ Partial Update
DELETE /api/openstack-network-rbac-policies/{uuid}/ Delete RBAC policy for the network

List Openstack Network Rbac Policies

1
2
3
4
http \
  GET \
  https://api.example.com/api/openstack-network-rbac-policies/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_list # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_network_rbac_policies_list.sync(client=client)

for item in response:
    print(item)
  1. API Source: openstack_network_rbac_policies_list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { openstackNetworkRbacPoliciesList } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
network string
network_uuid string (uuid)
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
policy_type string Type of access granted - either shared access or external network access


Enum: access_as_external, access_as_shared
target_tenant string
target_tenant_uuid string (uuid)
tenant string
tenant_uuid string (uuid)

200 -

The response body is an array of objects, where each object has the following structure:

Field Type Description
url string (uri)
uuid string (uuid)
network string (uri)
network_name string
target_tenant string (uri)
target_tenant_name string
backend_id string
policy_type any Type of access granted - either shared access or external network access
created string (date-time)

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/openstack-network-rbac-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_network_rbac_policies_retrieve.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: openstack_network_rbac_policies_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { openstackNetworkRbacPoliciesRetrieve } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

200 -

Field Type Description
url string (uri)
uuid string (uuid)
network string (uri)
network_name string
target_tenant string (uri)
target_tenant_name string
backend_id string
policy_type any Type of access granted - either shared access or external network access
created string (date-time)

Create RBAC policy for the network

Create RBAC policy for the network

1
2
3
4
5
6
http \
  POST \
  https://api.example.com/api/openstack-network-rbac-policies/ \
  Authorization:"Token YOUR_API_TOKEN" \
  network="https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  target_tenant="https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.network_rbac_policy_request import NetworkRBACPolicyRequest # (1)
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_create # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = NetworkRBACPolicyRequest(
    network="https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    target_tenant="https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
)
response = openstack_network_rbac_policies_create.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: NetworkRBACPolicyRequest
  2. API Source: openstack_network_rbac_policies_create
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import { openstackNetworkRbacPoliciesCreate } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesCreate({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "network": "https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "target_tenant": "https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required Description
network string (uri)
target_tenant string (uri)
policy_type any Type of access granted - either shared access or external network access
Constraints: default: access_as_shared

201 -

Field Type Description
url string (uri)
uuid string (uuid)
network string (uri)
network_name string
target_tenant string (uri)
target_tenant_name string
backend_id string
policy_type any Type of access granted - either shared access or external network access
created string (date-time)

Update

1
2
3
4
5
6
http \
  PUT \
  https://api.example.com/api/openstack-network-rbac-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN" \
  network="https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
  target_tenant="https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.network_rbac_policy_request import NetworkRBACPolicyRequest # (1)
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = NetworkRBACPolicyRequest(
    network="https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    target_tenant="https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
)
response = openstack_network_rbac_policies_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: NetworkRBACPolicyRequest
  2. API Source: openstack_network_rbac_policies_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import { openstackNetworkRbacPoliciesUpdate } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  body: {
    "network": "https://api.example.com/api/network/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
    "target_tenant": "https://api.example.com/api/target-tenant/a1b2c3d4-e5f6-7890-abcd-ef1234567890/"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
network string (uri)
target_tenant string (uri)
policy_type any Type of access granted - either shared access or external network access
Constraints: default: access_as_shared

200 -

Field Type Description
url string (uri)
uuid string (uuid)
network string (uri)
network_name string
target_tenant string (uri)
target_tenant_name string
backend_id string
policy_type any Type of access granted - either shared access or external network access
created string (date-time)

Partial Update

1
2
3
4
http \
  PATCH \
  https://api.example.com/api/openstack-network-rbac-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_network_rbac_policy_request import PatchedNetworkRBACPolicyRequest # (1)
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_partial_update # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = PatchedNetworkRBACPolicyRequest()
response = openstack_network_rbac_policies_partial_update.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: PatchedNetworkRBACPolicyRequest
  2. API Source: openstack_network_rbac_policies_partial_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { openstackNetworkRbacPoliciesPartialUpdate } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesPartialUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required Description
network string (uri)
target_tenant string (uri)
policy_type any Type of access granted - either shared access or external network access
Constraints: default: access_as_shared

200 -

Field Type Description
url string (uri)
uuid string (uuid)
network string (uri)
network_name string
target_tenant string (uri)
target_tenant_name string
backend_id string
policy_type any Type of access granted - either shared access or external network access
created string (date-time)

Delete RBAC policy for the network

Delete RBAC policy for the network

1
2
3
4
http \
  DELETE \
  https://api.example.com/api/openstack-network-rbac-policies/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.openstack_network_rbac_policies import openstack_network_rbac_policies_destroy # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_network_rbac_policies_destroy.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

print(response)
  1. API Source: openstack_network_rbac_policies_destroy
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { openstackNetworkRbacPoliciesDestroy } from 'waldur-js-client';

try {
  const response = await openstackNetworkRbacPoliciesDestroy({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

204 - No response body