_info "You have specified an IONOS api prefix and secret."
_info "You have specified an IONOS api prefix and secret."
_info "The script will use the IONOS DNS API: $IONOS_API"
_info "The script will use the IONOS DNS API: $IONOS_API"
@ -100,7 +113,7 @@ _ionos_init() {
fi
fi
$_context="cloud"
$_context="cloud"
else
else
_err "You didn't specify an IONOS credentials yet."
_err "You didn't specify any IONOS credentials yet."
_err "If you are using the IONOS DNS API, Read https://beta.developer.hosting.ionos.de/docs/getstarted to learn how to get a prefix and secret."
_err "If you are using the IONOS DNS API, Read https://beta.developer.hosting.ionos.de/docs/getstarted to learn how to get a prefix and secret."
_err "If you are using the IONOS Cloud DNS API, Read https://api.ionos.com/docs/authentication/v1/#tag/tokens/operation/tokensGenerate to learn how to get a token."
_err "If you are using the IONOS Cloud DNS API, Read https://api.ionos.com/docs/authentication/v1/#tag/tokens/operation/tokensGenerate to learn how to get a token."
_err ""
_err ""
@ -116,27 +129,6 @@ _ionos_init() {
return0
return0
}
}
_get_cloud_zone(){
zone=$1
i=1
p=1
if _ionos_cloud_rest GET "$IONOS_ROUTE_ZONES?filter.zoneName=$zone";then