Skip to main content
POST
/
api
/
v1
/
apps
/
{app_id}
/
cvms
/
is-allowed
Batch check on-chain deployment allowance for all CVMs under an app
curl --request POST \
  --url https://cloud-api.phala.com/api/v1/apps/{app_id}/cvms/is-allowed
{
  "is_onchain": true,
  "results": [
    {
      "cvm_id": 123,
      "app_contract_address": "<string>",
      "compose_hash": "<string>",
      "device_id": "<string>",
      "compose_hash_allowed": true,
      "allow_any_device": true,
      "is_allowed": true,
      "device_id_allowed": true,
      "error": "<string>"
    }
  ],
  "total": 0,
  "allowed_count": 0,
  "denied_count": 0,
  "error_count": 0,
  "skipped_cvm_ids": [
    123
  ]
}

Path Parameters

app_id
string
required

Response

Successful Response

is_onchain
boolean
required

Whether this app uses on-chain KMS

results
CvmIsAllowedItem · object[]
total
integer
default:0
allowed_count
integer
default:0
denied_count
integer
default:0
error_count
integer
default:0
skipped_cvm_ids
integer[]