Unregistering an object storage server or a repository server

You can unregister an object storage server or a repository server from IBM Spectrum Protect Plus.

Method and URI

To unregister an object storage server or a repository server, use a DELETE method and a URI:

DELETE  https://{hostname|IPv4}/api/api/cloud/{cloudProviderInfoId}

Tip

To get an {cloudProviderInfoId} value based on its name, follow the instructions in Getting a {cloudProviderInfoId}.

Parameters

None.

Data

None.

Example: Unregister an Amazon S3 object storage server

Assume that you want to unregister an Amazon S3 object storage server, BlueMachines Amazon S3 US-East1 ({identityKeyId} 4). Run the following command:

cloud_provider_info_id = "4"

requests.delete('https://' + spp_ipv4 + '/api/cloud/' + cloud_provider_info_id,
    headers={...}, verify=...)

After you run the Python snippet, ensure that you get a response with the HTTP status of 204 (No Content) and that you no longer see the cloud object storage server. You can unregister other types of object storage servers (Amazon S3, IBM Cloud Object Storage, and S3 compatible object storage) and repository servers (IBM Spectrum Protect) in a similar way.