For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

Offboard IBM Cloud

Offboard an IBM Cloud account from Cortex XDR by deleting the cloud instance and removing the Cortex XDR resources from your IBM Cloud account.

Follow this procedure to stop monitoring an IBM Cloud account and remove all Cortex XDR resources from it. You delete the cloud instance in Cortex XDR first, and then remove the service ID, its API keys, custom roles, and access policies from your IBM Cloud account.

Delete the cloud instance before you remove the resources in IBM Cloud. If you remove the resources first, Cortex XDR can no longer authenticate and reports permission errors on the cloud instance until you delete it.

Before you begin

Ensure that you have the following:

  • A Cortex XDR role with Data Sources - View & Edit permissions.

  • The directory where you ran the Terraform template, including the Terraform state file (terraform.tfstate). If you no longer have the state file, see Remove the resources in the IBM Cloud console.

  • An IBM Cloud administrator API key with permission to delete service IDs, custom roles, and access policies in the account.

  • Terraform installed on your machine.

Delete the cloud instance in Cortex XDR

Delete the cloud instance to stop all scanning of the IBM Cloud account.

  1. In Cortex XDR, select Settings → Data Sources & Integrations, and then open the IBM Cloud cloud instances.

  2. Right-click the cloud instance and select Delete.

  3. Confirm the deletion.

Cortex XDR stops scanning the account. Assets from the account are no longer updated.

Remove the resources with Terraform

Use Terraform to remove all the resources that the authentication template created.

  1. Navigate to the directory where you ran the Terraform template:

  2. Set your IBM Cloud administrator API key as an environment variable:

  3. Run the destroy command with the parameter file:

  4. Review the destruction plan, and then enter yes to confirm.

Terraform removes the service ID, its API keys, the custom roles, the access policies, and the tags. Deleting the service ID API keys revokes the credential that Cortex XDR stored, so it can no longer be used to access your account.

After Terraform completes, delete the Terraform directory and the state file securely. The state file contains the API key values.

Remove the resources in the IBM Cloud console

If you no longer have the Terraform state file, remove the resources manually in the IBM Cloud console. In the resource names, <suffix> is the unique suffix of the cloud instance.

  1. In the IBM Cloud console, select Manage → Access (IAM) → Service IDs.

  2. Find the service ID cortex-<suffix>-service-id. You can search for the managed_by:paloaltonetworks tag.

  3. Delete the service ID. Deleting the service ID also deletes its API keys and the access policies assigned to it.

  4. Select Manage → Access (IAM) → Roles, and delete the following custom roles:

    • CortexKmsRole<SUFFIX>

    • CortexSmRole<SUFFIX>

    • CortexIamRole<SUFFIX>

    • CortexCosRole<SUFFIX>

    In the custom role names, <SUFFIX> is the suffix in uppercase, without hyphens or other non-alphanumeric characters.

Last updated

Was this helpful?