Skip to content

libdns/conoha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConoHa VPS Ver 3.0 for libdns

This package implements the libdns interface for ConoHa VPS Ver.3.0 using ConoHa VPS Ver.3.0 Public APIs.

Authenticating

The conohav3 package authenticates using the credentials required by ConoHa's Identity API.

You must provide the following variables:

  • APITenantID: Your ConoHa Tenant ID . This identifies your account's tenant.
  • APIUserID: Your User ID associated with the API credentials.
  • APIPassword: The User Password for the user.
  • Region (optional): The ConoHa service region. If omitted, defaults to "c3j1".

These credentials are used to obtain a token from the Identity service, which is then used to authorize DNS API requests.

See Identity APIs for more details.

Example Configuration

p := conohav3.Provider{
    APITenantID: "apiTenantID",
    APIUserID: "apiUserID",
    APIPassword: "apiPassword",
    Region: "region", // Optional. If omitted, defaults to "c3j1".
}
zone := `example.localhost`

// List existing records
fmt.Printf("List existing records\n")
currentRecords, err := conohav3.GetRecords(context.TODO(), zone)
if err != nil {
    fmt.Printf("%v\n", err)
	return
}
for _, record := range currentRecords {
	fmt.Printf("Exists: %v\n", record)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages