Credentials
List credentials
GET
/v1/organizations/credentials/list
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
QueryString
org_id
string
The Organization ID
action=list_credentials
string
The action (will not be needed soon)
Response
{
"status": 200,
"credentials": [
{
"type": "azure|aws|gcp",
"id": "string",
"name": "string",
"comments": "string",
"resources": 0-1000,
"last_time": "string"
}
]
}
Create a new credential
POST
/v1/organizations/credentials/create?action=add_credential
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
org_id
string
The Organization ID
type
string
aws / azure / gap
name
string
Credential Name
specific
Dict(string)
AWS: {"role": ""} Azure: {"tenant": "", "clientId": "", "key": ""} GCP: {"project": ""}
comments
string
Descriptive comments
Response
{
"status": 200,
"response": "Credential created"
}
Remove credential
POST
/
/v1/organizations/credentials/delete?action=remove_credential
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
org_id
string
The Organization ID
credential_id
string
Credential ID
comments
string
Remove comments
Response
{
"status": 200,
"response": "Credential removed"
}
Credential update
POST
/v1/organizations/credentials/update?action=update_credential
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
org_id
string
The Organization ID
credential_id
string
data
Dict
reason
string
data:
name
string
comments
string
specific
Dict(string)
AWS: {"role": ""} Azure: {"clientId": "", "key": ""} GCP: {"project": ""}
Response
{
"status": 200,
"response": "Credential updated"
}
Last updated