Update an existing integration configuration
In this step, we will update the parameters of an existing integration configuration. You might need to update an integration configuration if the connection details of the external service change, or if you need to add or remove parameters. The docker scout integration configure
command can also be used to update existing configurations.
To update an existing integration, you use the same command as when creating it, providing the name and organization of the integration you want to modify. You can then add, modify, or remove parameters using the --param
flag. If you provide a parameter with a key that already exists, its value will be updated. If you provide a parameter with a new key, it will be added.
Let's update the url
parameter of our my-vulnerability-scanner
integration to https://new-scanner.example.com
and add a new parameter timeout
with the value 60
.
Open your terminal in the ~/project
directory and run the following command:
docker scout integration configure --name my-vulnerability-scanner --organization my-org --param url=https://new-scanner.example.com --param timeout=60
After running this command, the url
parameter of the my-vulnerability-scanner
integration will be updated, and the timeout
parameter will be added. You should see output confirming the update.
To confirm the update, you can list the integrations and inspect the parameters. Run the following command:
docker scout integration list --format "{{.Name}}: {{.Parameters}}"
You should see output similar to this, showing the updated url
and the new timeout
parameter:
my-vulnerability-scanner: map[api-key:your-api-key timeout:60 url:https://new-scanner.example.com]
This confirms that you have successfully updated the existing integration configuration.