Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add samples to enable / disable frameworks #63

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions graphql-api/policies_querypacks_frameworks/disable_framework.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
meta {
name: disable_framework
type: graphql
seq: 6
}

post {
url: https://{{endpoint}}/query
body: graphql
auth: bearer
}

auth:bearer {
token: {{MONDOO_API_TOKEN}}
}

body:graphql {
mutation ApplyFramework($input: ComplianceFrameworkMutationInput!) {
applyFrameworkMutation(input: $input)
}

}

body:graphql:vars {
{
"input": {
"action": "PREVIEW",
"frameworkMrn": "//policy.api.mondoo.app/frameworks/iso-27001-2022",
"scopeMrn": "{{spaceMrn}}"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: unassign_policy
name: disable_policy
type: graphql
seq: 1
seq: 2
}

post {
Expand Down
32 changes: 32 additions & 0 deletions graphql-api/policies_querypacks_frameworks/enable_framework.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
meta {
name: enable_framework
type: graphql
seq: 5
}

post {
url: https://{{endpoint}}/query
body: graphql
auth: bearer
}

auth:bearer {
token: {{MONDOO_API_TOKEN}}
}

body:graphql {
mutation ApplyFramework($input: ComplianceFrameworkMutationInput!) {
applyFrameworkMutation(input: $input)
}

}

body:graphql:vars {
{
"input": {
"action": "ENABLE",
"frameworkMrn": "//policy.api.mondoo.app/frameworks/iso-27001-2022",
"scopeMrn": "{{spaceMrn}}"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: enable_policy
type: graphql
seq: 2
seq: 1
}

post {
Expand Down
Loading