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
username string
The user's username.
role
object
name string
The role's name-
Body
The creation parameters.
user
object
username string
The user's username.
role
object
name string
The role's name-
Body
The creation parameters.
user
object
username string
The user's username.
role
object
name string
The role's name-
Responses
- 201
- 400
- 404
- 500
Created
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
user
object
username stringnullable
database
object
name stringnullable
role
object
name stringnullable
creationDate date-timenullable
createdBy stringnullable
{
"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
username stringnullable
database
object
name stringnullable
role
object
name stringnullable
creationDate date-timenullable
createdBy stringnullable
{
"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
username stringnullable
database
object
name stringnullable
role
object
name stringnullable
creationDate date-timenullable
createdBy stringnullable
{
"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
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
property name* any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
property name* any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
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
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
property name* any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
property name* any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
property name* any
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Internal Server Error
Loading...