Add Resource
Create a new resource. A resource is a logical entity to group one or more ACL managed entities.
URL: /resource
Type: POST
Parameters
| Param Type | Name | Description | Field Type |
|---|---|---|---|
| Header | sessionId ** | Session Id received after login | string |
| Query | gwkey | Tenant Key. Needed only in case of multitenant installations | string |
| Query | gwsource** | Source from which the request is triggered (for example, web, external) | String |
| Payload | name** | Name of the resource to create. Name cannot be duplicated. | String |
| Payload | description | Description of the resource | String |
** - Mandatory value
Possible Response Message and Code
| HTTP Code | Description | Response Message |
|---|---|---|
| 400 | Bad request | Mandatory field '<field name>' is missing |
| 201 | Created | Resource added successfully |
| 409 | Conflict | Resource with the given name already exists |