Create Grant
POST/projects/:projectId/providers/Aruba.Database/dbaas/:dbaasId/databases/:databaseName/grants
Create Grant
Request
Path Parameters
projectId stringrequired
Unique identifier of the project CMP.
dbaasId stringrequired
DBaaS instance to create the database user in.
databaseName stringrequired
The name of the database to assign the grants to.
Query Parameters
api-version string
The requested API version
Default value:
1- application/json
- text/json
- application/*+json
Body
The creation parameters.
user
object
usernamestring
The user's username.
role
object
namestring
The role's name-
Body
The creation parameters.
user
object
usernamestring
The user's username.
role
object
namestring
The role's name-
Body
The creation parameters.
user
object
usernamestring
The user's username.
role
object
namestring
The role's name-
Responses
- 201
- 400
- 404
- 500
Created
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
user
object
usernamestringnullable
database
object
namestringnullable
role
object
namestringnullable
creationDatedate-timenullable
createdBystringnullable
{
"user": {
"username": "string"
},
"database": {
"name": "string"
},
"role": {
"name": "string"
},
"creationDate": "2024-07-29T15:51:28.071Z",
"createdBy": "string"
}
- Schema
- Example (from schema)
Schema
user
object
usernamestringnullable
database
object
namestringnullable
role
object
namestringnullable
creationDatedate-timenullable
createdBystringnullable
{
"user": {
"username": "string"
},
"database": {
"name": "string"
},
"role": {
"name": "string"
},
"creationDate": "2024-07-29T15:51:28.071Z",
"createdBy": "string"
}
- Schema
- Example (from schema)
Schema
user
object
usernamestringnullable
database
object
namestringnullable
role
object
namestringnullable
creationDatedate-timenullable
createdBystringnullable
{
"user": {
"username": "string"
},
"database": {
"name": "string"
},
"role": {
"name": "string"
},
"creationDate": "2024-07-29T15:51:28.071Z",
"createdBy": "string"
}
Bad Request
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Not Found
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
typestringnullable
titlestringnullable
statusint32nullable
detailstringnullable
instancestringnullable
property name*any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Internal Server Error