curl --request POST \
--url https://api.cnap.tech/v1/compute/configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"provider": "hcloud",
"region": "<string>",
"image": "<string>",
"machine_type_filter": "<string>",
"cloud_credential_id": "<string>"
}
'{
"id": "<string>"
}curl --request POST \
--url https://api.cnap.tech/v1/compute/configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"provider": "hcloud",
"region": "<string>",
"image": "<string>",
"machine_type_filter": "<string>",
"cloud_credential_id": "<string>"
}
'{
"id": "<string>"
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
1 - 100hcloud 11Glob pattern to filter available instance types (e.g., "cx*" for shared CPU, "cpx*" for dedicated)
Cloud credential ID for BYOM (bring your own machine). Omit to use CNAP-managed defaults.
Config created