Add API for listing audit events amazon_s3_configurations for a group
What does this MR do and why?
Add GraphQL API for listing audit events amazon_s3_configurations for a group.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Visit GraphiQL explorer https://gdk.test:3000/-/graphql-explorer
- Create a new
AuditEvents::AmazonS3Configuration
by running the following mutation
mutation createAmazonS3Configuration {
amazonS3ConfigurationCreate(
input: {groupPath: "flightjs", awsRegion: "us-east-1", accessKeyXid: "AKIA1231dsdsdsdsds23", secretAccessKey: "TOPSECRET", bucketName: "TEST"}
) {
amazonS3Configuration {
id
name
accessKeyXid
bucketName
awsRegion
}
errors
}
}
- Run the following mutation to list
AuditEvents::AmazonS3Configuration
for a group.
query listAmazonS3Configuration {
group(fullPath: "flightjs") {
id
amazonS3Configurations {
nodes {
id,
name,
accessKeyXid,
awsRegion,
bucketName
}
}
}
}
- You should see response similar to the one in the screenshot below
{
"data": {
"group": {
"id": "gid://gitlab/Group/31",
"amazonS3Configurations": {
"nodes": [
{
"id": "gid://gitlab/AuditEvents::AmazonS3Configuration/9",
"name": "AWS S3 Sandbox",
"accessKeyXid": "AKIARANDOM123",
"awsRegion": "ap-southeast-2",
"bucketName": "audit-logs-gitlab"
}
]
}
}
}
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #423229 (closed)
Edited by Huzaifa Iftikhar