DNS API-Referenz
v1.6.2
Get a web hosting package
Get a web hosting package
GET
/hosting/packages/{id}
HostingPackagesByID
Authentifizierung
Parameter
Name
Typ
Format
Pflicht
Description
id
string
-
Pflicht
Package id (the `id` field of a hosting package).
Request-Beispiel
GET
curl --request GET \
--url 'https://api.regfish.com/hosting/packages/example' \
--header 'x-api-key: YOUR_API_KEY'Responses
200
Hosting package
Response-Beispiel 200
{
"success": true,
"code": 0,
"response": {
"id": "example",
"webhost_id": 1,
"plan": "example",
"status": "example",
"active": true
}
}401
Unauthorized
Response-Beispiel 401
{
"success": false,
"message": "Unauthorized",
"error": "Unauthorized"
}404
Package not found
Response-Beispiel 404
{
"success": false,
"message": "Package not found",
"error": "Package not found"
}500
Unexpected error
Response-Beispiel 500
{
"success": false,
"message": "Unexpected error",
"error": "Unexpected error"
}Verwandte Modelle
Community
Werden Sie ein Teil der Community
Das DNS API von regfish ist die perfekte Lösung für Entwickler, die ihre Domains und DNS-Zonen automatisieren möchten. Werden Sie Teil der Community und profitieren Sie von den Vorteilen der DNS-Automatisierung. Das DNS API steht jedem regfish-Kunden kostenlos zur Verfügung.