Symptoms

serverId property is marked as encrypted in the APS resource schema:

"properties": {
    "serverId": {
        "type": "string",
        "encrypted": true,
        "title": "Server ID",
        "description": "Server unique identifier."

But it cannot be requested with poa.pem certificate:

curl -ksS -X GET -E /usr/local/pem/APS/certificates/poa.pem "https://127.0.0.1:6308/aps/2/resources?and(implementing(http://provider.com/types/hosting/server/6.2),eq(serverId,45710))"

{
    "error": "APS::Util::Exception",
    "message": "Property `serverId` is not found."
}

Cause

Encrypted properties are available for applications authenticated through their certificates and granted access to the properties.

Resolution

Described in the encrypted article of apsstandard.org portal.

Internal content