Files
paralus/gen/openapi/proto/rpc/sentry/audit_info.swagger.json
Nirav Parikh 1b7a9a1fa3 changes to view auditlogs by project role users (#247)
feat: changes to view audit logs by project and cluster role users
---------

Signed-off-by: niravparikh05 <nir.parikh05@gmail.com>
2023-09-21 11:34:56 +05:30

200 lines
4.3 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "Sentry Audit Information Service",
"version": "2.0",
"contact": {
"name": "Paralus Dev"
}
},
"tags": [
{
"name": "AuditInformationService"
}
],
"schemes": [
"https"
],
"consumes": [
"application/json",
"application/yaml"
],
"produces": [
"application/json",
"application/yaml"
],
"paths": {
"/v2/sentry/auditInfo/cluster": {
"get": {
"operationId": "AuditInformationService_LookupCluster",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/rpcLookupClusterResponse"
}
},
"403": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
}
}
},
"parameters": [
{
"name": "clusterSNI",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"AuditInformationService"
]
}
},
"/v2/sentry/auditInfo/user": {
"get": {
"operationId": "AuditInformationService_LookupUser",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/rpcLookupUserResponse"
}
},
"403": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
}
}
},
"parameters": [
{
"name": "userCN",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"AuditInformationService"
]
}
}
},
"definitions": {
"googlerpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcLookupClusterResponse": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"displayName": {
"type": "string"
},
"project": {
"type": "string"
}
}
},
"rpcLookupUserResponse": {
"type": "object",
"properties": {
"userName": {
"type": "string"
},
"accountID": {
"type": "string"
},
"isSSO": {
"type": "string"
},
"organizationID": {
"type": "string"
},
"partnerID": {
"type": "string"
},
"sessionType": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "X-API-KEYID",
"in": "header"
},
"ApiTokenAuth": {
"type": "apiKey",
"name": "X-API-TOKEN",
"in": "header"
},
"BasicAuth": {
"type": "basic"
}
},
"security": [
{
"ApiKeyAuth": [],
"ApiTokenAuth": [],
"BasicAuth": []
}
]
}