]> git.proxmox.com Git - mirror_acme.sh.git/blame - dnsapi/dns_myapi.sh
Merge pull request #4531 from NCDGHA/bugfix/issue_4530_fix_http_status_503
[mirror_acme.sh.git] / dnsapi / dns_myapi.sh
CommitLineData
0a7c9364 1#!/usr/bin/env sh
ab497961 2
3#Here is a sample custom api script.
eccec5f6 4#This file name is "dns_myapi.sh"
bf233fbd 5#So, here must be a method dns_myapi_add()
fb675223 6#Which will be called by acme.sh to add the txt record to your api system.
bf233fbd 7#returns 0 means success, otherwise error.
eea52a5f 8#
9#Author: Neilpang
d795fac3 10#Report Bugs here: https://github.com/acmesh-official/acme.sh
eea52a5f 11#
ab497961 12######## Public functions #####################
13
d795fac3 14# Please Read this guide first: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
10d1361a 15
bf233fbd 16#Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
eccec5f6 17dns_myapi_add() {
ab497961 18 fulldomain=$1
19 txtvalue=$2
eea52a5f 20 _info "Using myapi"
21 _debug fulldomain "$fulldomain"
22 _debug txtvalue "$txtvalue"
ab497961 23 _err "Not implemented!"
4c2a3841 24 return 1
ab497961 25}
26
21f201e3 27#Usage: fulldomain txtvalue
329174b6 28#Remove the txt record after validation.
5d6fd809 29dns_myapi_rm() {
30 fulldomain=$1
21f201e3 31 txtvalue=$2
32 _info "Using myapi"
33 _debug fulldomain "$fulldomain"
34 _debug txtvalue "$txtvalue"
5d6fd809 35}
ab497961 36
329174b6 37#################### Private functions below ##################################