Skip to main content
Compute Management/VM Related Interfaces/vTPM-related APIs
DELETEvTPM-related APIsSince 5.0.0SynchronousAuth Required

Remove a TPM from a VM

Remove a TPM from a VM

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Query Parameters

Request Inputs

Query Parameters

  • tpmUuidString

    TPM UUID

  • vmInstanceUuidString

    VM UUID

  • deleteModeString

    Deletion mode(Permissive / Enforcing,Permissive)

  • systemTagsList

    System tags

  • userTagsList

    User tags

Responses

DELETE endpoints return an empty object on success, or a standard error structure on failure.

Success Response

{}

Error Response

{
  "error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Delete resource timeout after 300s"
  }
}

Endpoint

DELETE/zstack/v1/tpms

/zstack/v1/tpms

Operation ID

RemoveTpm

Permalink

Request Example

curl -X DELETE 'http://{host}/zstack/v1/tpms?tpmUuid=<tpmUuid>&vmInstanceUuid=<vmInstanceUuid>&deleteMode=<deleteMode>&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'

Response Example

200
{}

Change History

This API has no change history records yet.

View all change history