RolesApi


Get all Roles

Get a list of available roles.

URL

http://apis.wso2.com/api/appm/publisher/v1.1/roles

HTTP Method

GET

Scope

appm:create

CURL Example

curl -X GET -H "Authorization: Bearer 303c73b076f1aeeb16ebee6b96bd250e" "http://localhost:9763/api/appm/publisher/v1.1/roles"

Sample Response

{"roleIds": ["admin","Application/app_11_04_001", "Application/app_11_04_002","Application/app_11_04_011"]}

Parameters

Type Name Description Schema Default
Header

Accept

optional

Media types acceptable for the response. Default is JSON.

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource.

String

Responses

HTTP Code Description Schema

200

OK. List of roles is returned.

RoleIdList

400

Bad Request. Invalid request or validation error.

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. The resource to be updated does not exist.

Error