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

Export notification channels and import all at once #671

Open
JAAnguloCanovas opened this issue May 9, 2023 · 3 comments
Open

Export notification channels and import all at once #671

JAAnguloCanovas opened this issue May 9, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@JAAnguloCanovas
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

We are trying to export all the notification channels of our OpenSearch, we have used the command:

GET _plugins/_notifications/configs
But we can't import them all at once, we have to go one by one by executing this command:

POST /_plugins/_notifications/configs/
    {
      "config_id" : "hhhhhhhh",
      "config" : {
        "name" : "hhhhhhhhhhhh",
        "description" : "Email account created from the Alerting plugin",
        "config_type" : "smtp_account",
        "is_enabled" : true,
        "smtp_account" : {
          "host" : "hhhhhhhhhhh",
          "port" : 25,
          "method" : "none",
          "from_address" : "hhhhhhhhhhhh"
        }
      }
    }

Describe the solution you'd like
A clear and concise description of what you want to happen.

Please could you give me a possible solution to export all existing notification channels in my OpenSearch and import them into another OpenSearch.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

OpenSearch Version 2.3.0

@JAAnguloCanovas JAAnguloCanovas added enhancement New feature or request untriaged labels May 9, 2023
@dblock dblock transferred this issue from opensearch-project/OpenSearch May 9, 2023
@gaobinlong
Copy link
Collaborator

Just like bulk api, we can also support specifying multiple notification configs when calling the creating notification config api, @JAAnguloCanovas thanks for opening this issue, could you help to make some change and open a PR for it?

@gaobinlong gaobinlong added the good first issue Good for newcomers label Aug 23, 2023
@mintun-myo-2020
Copy link

i would like to try taking this

@SuZhou-Joe
Copy link
Member

@mintun-myo-2020 Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants