Offboard IBM Cloud
Offboard an IBM Cloud account from Cortex XSIAM by deleting the cloud instance and removing the Cortex XSIAM resources from your IBM Cloud account.
Follow this procedure to stop monitoring an IBM Cloud account and remove all Cortex XSIAM resources from it. You delete the cloud instance in Cortex XSIAM 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 XSIAM 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 XSIAM 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 XSIAM
Delete the cloud instance to stop all scanning of the IBM Cloud account.
In Cortex XSIAM, select Settings → Data Sources & Integrations, and then open the IBM Cloud cloud instances.
Right-click the cloud instance and select Delete.
Confirm the deletion.
Cortex XSIAM 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.
Navigate to the directory where you ran the Terraform template:
Set your IBM Cloud administrator API key as an environment variable:
Run the destroy command with the parameter file:
Review the destruction plan, and then enter
yesto 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 XSIAM 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.
In the IBM Cloud console, select Manage → Access (IAM) → Service IDs.
Find the service ID
cortex-<suffix>-service-id. You can search for themanaged_by:paloaltonetworkstag.Delete the service ID. Deleting the service ID also deletes its API keys and the access policies assigned to it.
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?
