Import Grants From Provider
Import Grants From Provider
Request Body required
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
grants object[]
Timestamp when the grant is revoked
Creation time of the grant
Last update time of the grant
resource object
Resource unique identifier
Type of the provider that manages this resource
Unique resource urn
Type of the resource. Depends on the provider type. For example, for BigQuery, it can be dataset, table, view, etc.
Unique resource urn
Additional information of the resource that can be updated from Guardian
labels object
Resource creation timestamp
Resource last update timestamp
Whether the resource is deleted or not
Parent resource id
children object[]
List of child resources
appeal object
options object
labels object
resource object
Resource unique identifier
Type of the provider that manages this resource
Unique resource urn
Type of the resource. Depends on the provider type. For example, for BigQuery, it can be dataset, table, view, etc.
Unique resource urn
Additional information of the resource that can be updated from Guardian
labels object
Resource creation timestamp
Resource last update timestamp
Whether the resource is deleted or not
Parent resource id
children object[]
List of child resources
approvals object[]
Approval creation timestamp
Approval last update timestamp
Creation time of the appeal
Last update time of the appeal
grant object
{
"grants": [
{
"id": "string",
"status": "string",
"accountId": "string",
"accountType": "string",
"resourceId": "string",
"role": "string",
"permissions": [
"string"
],
"expirationDate": "2023-10-24T20:41:02.784Z",
"appealId": "string",
"revokedBy": "string",
"revokedAt": "2023-01-01T00:00:00Z",
"revokeReason": "string",
"createdBy": "string",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"resource": {
"id": "f4b7a3c0-9f9b-4b9b-9b0a-9e4b1a1b1b1b",
"providerType": "bigquery",
"providerUrn": "my-bq",
"type": "table",
"urn": "string",
"name": "string",
"details": {},
"labels": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z",
"isDeleted": true,
"parentId": "string",
"children": [
{}
]
},
"appeal": {
"id": "string",
"resourceId": "string",
"policyId": "string",
"policyVersion": 0,
"status": "string",
"accountId": "string",
"role": "string",
"options": {
"expirationDate": "2023-10-24T20:41:02.784Z",
"duration": "string"
},
"labels": {},
"resource": {
"id": "f4b7a3c0-9f9b-4b9b-9b0a-9e4b1a1b1b1b",
"providerType": "bigquery",
"providerUrn": "my-bq",
"type": "table",
"urn": "string",
"name": "string",
"details": {},
"labels": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z",
"isDeleted": true,
"parentId": "string",
"children": [
{}
]
},
"approvals": [
{
"id": "string",
"name": "string",
"appealId": "string",
"status": "string",
"actor": "string",
"policyId": "string",
"policyVersion": 0,
"approvers": [
"string"
],
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z",
"reason": "string"
}
],
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"details": {},
"accountType": "string",
"createdBy": "string",
"creator": {},
"permissions": [
"string"
],
"grant": {},
"description": "string"
},
"isPermanent": true,
"source": "string",
"statusInProvider": "string",
"owner": "string"
}
]
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}