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

GMP doc: add OBSERVERS/GROUP to CREATE_TASK #2227

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

mattmundell
Copy link
Contributor

What

Add GROUP to CREATE_TASK/OBSERVERS in the GMP doc.

Why

Element was missing.

Example

Create task with two GROUP observers.

$ o m m '<create_task> <name>group obs test 2</name> <target id="0de4c2b4-987d-4a3b-9eba-fe92b3eaa8b2"/> <config id="d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663"/> <observers><group id="986c1365-0435-4cec-aaa0-ed0922aef8e0"/><group id="50e15244-0f7c-4d0d-8a2e-266fa043110c"/></observers> </create_task>'
<create_task_response status="201" status_text="OK, resource created" id="8f068524-687d-4886-a64f-a78dfa8a5526" />

See that permission was created for groups.

o m m '<get_permissions filter="subject_type=group"/>'
<get_permissions_response status="200" status_text="OK">
  <permission id="c1217fe1-f355-424b-acf9-ede5c1e2b89b">
    <name>get_tasks</name>
    <resource id="8f068524-687d-4886-a64f-a78dfa8a5526">
    <subject id="986c1365-0435-4cec-aaa0-ed0922aef8e0">
      <name>test1</name>
      <type>group</type>

@mattmundell mattmundell requested a review from a team as a code owner June 17, 2024 00:35
Copy link

Conventional Commits Report

😢 No conventional commits found.

👉 Learn more about the conventional commits usage at Greenbone.

@a-h-abdelsalam a-h-abdelsalam merged commit 41c1c57 into main Jun 17, 2024
11 checks passed
@a-h-abdelsalam a-h-abdelsalam deleted the gmp-doc-create-task-obs branch June 17, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants