Skip to main content
Resource Center/Resource Pool/VM Instance Operations
GETVM Instance OperationsSince 3.7.0SynchronousAuth Required

GetSpiceCertificates

GetSpiceCertificates

Execution Availability

Try It Out

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

Query Parameters

Request Inputs

Query Parameters

  • systemTagsList

    Optional. The system tags.

  • userTagsList

    Optional. The user tags.

Responses

200 OK

On success, this API returns the following response structure.

  • certificateStrStringRequired

    The SPICE CA certificate.

  • errorErrorCodeRequired

    The error code. If not null, the operation fails, or vice versa. For more information, see error.

    • codeStringRequired

      The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001.

    • descriptionStringRequired

      The brief description of the error.

    • detailsStringRequired

      The details about the error.

    • elaborationStringRequired

      The reserved field. Default value: null.

    • opaqueLinkedHashMapRequired

      The reserved field. Default value: null.

    • causeErrorCodeRequired

      The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null.

Endpoint

GET/zstack/v1/spice/certificates

/zstack/v1/spice/certificates

Operation ID

GetSpiceCertificates

Permalink

Request Example

curl -X GET 'http://{host}/zstack/v1/spice/certificates?systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'

Response Example

200
{ "certificateStr": "-----BEGIN CERTIFICATE-----\nMIIDVTCCAj2gAwIBAgIJALGiHgRCxwkwMA0GCSqGSIb3DQEBCwUAeEExCzAJBgNV\nBAYTAkNOMREwDwYDVQQHDAhTaGFuZ2hhaTEPMA0GA1UECgwGWlN0YWNrMQ4wDAYD\nVQQDDAVteSBDQTAeFw0xOTA5MjQwNjMxMzBaFw0yOTA5MjEwNjMxMzBaMEExCzAJ\nBgNVBAYTAkNOMREwDwYDVQQHDAhTaGFuZ2hhaTEPMA0GA1UECgwGWlN0YWNrMQ4w\nDAYDVQQDDAVteSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALQq\nHgcza7xK7zQ+zPNrzR3q1JJHkQ/OPF+DH5gheGlwfruWaGtAwVX9w0vfKDHCJ0BB\ndMQ4m1r2OX0yONVXNmlUnwq5VMdieqyO/1r41cHauqUTP6MkJ5/yD7ipfZP0r7sB\ngFAUIwaSdZk4hwnPou2ah4Uk/9yd0thBHKYCYZoVldLyPIe7aUHmkdkRY+MMdzqj\nGnspV1K7ux8xP3zG7CUG9Ns64rrjGNLRu81IJTYaJSigZ1ykZu1eYsUcGHB2QDcE\n4d9fw/8YaRVJOsBsABEzj9Qvi81i6VdTCGg2oFjBrSgcF7tNVQDufZLgXw3rlIsE\n+1+pwh5CgcviRcNTue0CAwEAAaNQME4wHQYDVR0OBBYEFMNx0BYaStgcpq1s30tW\nmAwjlqXaMB8GA1UdIwQYMBaAFMNx0BYaStgcpq1s30tWmAwjlqXaMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAAxDDzO8LDwI31sCr2K2t2P3n/hkxh0w\nnycRxKho9DFTnKSmMlusSd1AY/SjWO8+6dSi4wzmkJ/Zr0CeOBYhbDCFxG/OKO1K\nSfuR+gqZOAx8gB58Zk51KUxyYV3HKoRPftIh4nFO+mFUMXDuttuh12L7kbSQ6U3v\nL0uFg/59PnYe+aU+R/K1xXyZGViZJbgDqPDsCZYug0IRupu9j2Sces3XcX2TMCGR\nxPo2ZzBrOs3rJCK2nx16tHS5Zr5VP7zdn1YCS1/0HYUHRpi3HJPZAUR6dzDuK0IU\nPb0ufTldT6UOgJTof6TPMVl8dZATlJqMrjPtAOe3PtOKo8TPdjtQ15I\u003d\n-----END CERTIFICATE-----" }

Change History

This API has no change history records yet.

View all change history