OpenDaylight Table of Contents 1 3 1.1 3 1.2 AAA 3 2 4 2.1 4 2.1.1 4 2.1.2 5 2.1.3 5 2.1.4 5 2.2 6 2.2.1 11 2.2.2 11 2.2.3 12 2.2.4 12 2.2.5 13 2.2.6 13 2.2.7 13 Test AAA GET GET GET GET DELETE
2.2.8 14 2.2.9 14 2.2.10 15 2.2.11 15 2.2.12 15 2.2.13 16 2.2.14 16 2.2.15 17 2.2.16 A 17 2.2.17 17 2.2.18 18 2.3 SSSD 18 2.3.1 19 2.3.2 19 2.4 21 2.4.1 21 2.4.2 21 3 21 3.1 MD-SAL 21 GET GET GET DELETE DELETE DELETE
Get Specific Domain Testcase Get a specific domain GET Request: curl -X GET -k -s -H "Accept:application/json" https://<controller>/auth/v1/domains/1 Response: { "description": "", "domainid": "1", "enabled": "true", "name": "R&D" } 200 401,5xx Update Specific Domain Testcase Update a specific domain PUT Request: curl -X PUT -s -H --data-binary @domain.json https://<controller>/auth/v1/domains/1 Contents of domain.json: { "domainid": "1", "name":"R&D", "enabled":"true" } Response: { "description": "", "domainid": "1", "enabled": "true", "name": "R&D" } 200 401,5xx Delete Specific Domain Testcase Delete a specific domain Request: curl -X -s https://<controller>/auth/v1/domains/1 Response: none 204 401,5xx Get All Users Testcase Get all users GET Request: curl -X GET -k -s -H "Accept:application/json" https://<controller>/auth/v1/users
Delete Specific User Testcase Delete a specific user Request: curl -X -s https://<controller>/auth/v1/users/1 Response: none 204 401,5xx Get All Roles Testcase Get all roles GET Request: curl -X GET -k -s -H "Accept:application/json" https://<controller>/auth/v1/roles Response: { "roles": [ { "description": "A user role with limited access", "name": "user", "roleid": "2" }, { "description": "An admin role with full access", "name": "admin", "roleid": "3" } ] } 200 401,5xx Get Specific Role Testcase Get a specifc role GET Request: curl -X GET -k -s -H "Accept:application/json" https://<controller>/auth/v1/roles/2 Response: { "description": "A user role with limited access", "name": "user", "roleid": "2" } 200 401,5xx
Create Role Testcase Create a new role POST Request: curl -X POST -s -H --data-binary @role.json https://<controller>/auth/v1/roles Contents of role.json { "name":"user", "description":"A user role with limited access" } Response: { "description": "A user role with limited access", "name": "user", "roleid": "2" } 201 401,5xx Update Specific Role Testcase Update a specific role PUT Request: curl -X PUT -s -H --data-binary @role.json https://<controller>/auth/v1/roles/2 Contents of role.json: { "description": "A user role with limited access", "name": "user", "roleid": "2" } Response: { "description": "A user role with limited access", "name": "user", "roleid": "2" } 200 401,5xx Delete Specific Role Testcase Delete a specific role DELETE Request: curl -X DELETE -s https://<controller>/auth/v1/roles/1
Response: none 204 401,5xx Get All Roles To A Domain and User Testcase Get all roles for a domain and user GET Request: curl -X GET -s -H Response: { "roles": [ { "description": "A user role with limited access", "name": "user", "roleid": "2" }, { "description": "An admin role with full access", "name": "admin", "roleid": "3" } ] } 200 401,5xx Grant Role To Domain and User Testcase Grant a role to a domain and user POST Request: curl -X POST -s -H --data-binary @grant.json { "roleid":"2", "description":"role grant" } Response: { "description": "role grant", "domainid": "2", "grantid": "2", 201 401,5xx