Creating a Compute Scan Recipe
Create a Compute (host) scan recipe with or without a host agent.
You have the following options for creating a Compute scan recipe:
- To create a recipe without an agent, follow the instructions in this topic.
- To create a recipe with a free OCI agent, see Creating a Compute Scan Recipe with an OCI Agent.
- To create a recipe with a Qualys agent using your Qualys license, see Creating a Compute Scan Recipe with a Qualys Agent.
- Before you begin, review the policies documentation for Vulnerability Scanning. See Required IAM Policies for Scanning.
- After you create an OCI agent or Qualys agent Compute scan recipe, don't change that recipe to change agents. Create another recipe.
To create a Compute scan recipe without an agent, complete the following steps:
After creating a recipe, you can create scan targets and associate them with the recipe. See Creating a Compute Target.
Use the oci vulnerability-scanning host scan recipe create command and required parameters to create a new host scan recipe:
oci vulnerability-scanning host scan recipe create --display-name <name> --compartment-id <compartment_ocid> --agent-settings '{"scanLevel": "<agent_scan_level>"}' --cis-benchmark-settings '{"scanLevel": "<CIS_scan_level>"}' --port-settings '{"scanLevel": "<port_scan_level>"}' --schedule '{"type":"<daily_or_weekly>"}'For example:
oci vulnerability-scanning host scan recipe create --display-name MyRecipe --compartment-id ocid1.compartment.oc1..exampleuniqueID --agent-settings '{"scanLevel": "STANDARD"}' --cis-benchmark-settings '{"scanLevel": "MEDIUM"}' --port-settings '{"scanLevel": "STANDARD"}' --schedule '{"type":"DAILY"}'For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the CreateHostScanRecipe operation to create a new host scan recipe.
Note
The
HostEndpointProtectionSettingshave no effect and are reserved for future use.For information about using the API and signing requests, see REST API documentation and Security Credentials.