{{ t('API keys') }}
{{ t('No API keys created yet. You can still use the api using your username and password.') }}
{{ ( 'It\'s recommended to create a own API key for every external application.' ) }}
{{ t('ID') }} {{ t('Description') }} {{ t('Show') }}
{{ apikey.id }} {{ apikey.description }}
{{ t('Create API key') }}
curl {{ t('example') }}:
curl -H \
"Authorization: X-OITC-API {{ ApikeyCreatePost.apikey }}" \
"https://{{ hostname }}/hosts/index.json?angular=true"
{{ t('For self-signed certificates, add') }}-k.
curl {{ t('example with JSON processor') }}:
curl -k -s -H \
"Authorization: X-OITC-API {{ ApikeyCreatePost.apikey }}" \
"https://{{ hostname }}/hosts/index.json?angular=true" |jq .
{{ t('Edit API key') }}
curl {{ t('example') }}:
curl -H \
"Authorization: X-OITC-API {{ ApiKeyEditPost.apikey }}" \
"https://{{ hostname }}/hosts/index.json?angular=true"
{{ t('For self-signed certificates, add') }}-k.
curl {{ t('example with JSON processor') }}:
curl -k -s -H \
"Authorization: X-OITC-API {{ ApiKeyEditPost.apikey }}" \
"https://{{ hostname }}/hosts/index.json?angular=true" |jq .