https://github.com/myra-security-gmbh/myrasec-go
A Go library for interacting with Myra Security API.
https://github.com/myra-security-gmbh/myrasec-go
api go golang myra myracloud
Last synced: 9 months ago
JSON representation
A Go library for interacting with Myra Security API.
- Host: GitHub
- URL: https://github.com/myra-security-gmbh/myrasec-go
- Owner: Myra-Security-GmbH
- License: mit
- Created: 2021-02-16T14:53:36.000Z (over 5 years ago)
- Default Branch: APIv2
- Last Pushed: 2025-09-16T06:54:39.000Z (9 months ago)
- Last Synced: 2025-09-16T08:40:06.130Z (9 months ago)
- Topics: api, go, golang, myra, myracloud
- Language: Go
- Size: 252 KB
- Stars: 8
- Watchers: 6
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myrasec-go
[](https://goreportcard.com/report/github.com/Myra-Security-GmbH/myrasec-go/v2)
[](https://pkg.go.dev/github.com/Myra-Security-GmbH/myrasec-go/v2)
[](https://github.com/Myra-Security-GmbH/myrasec-go/actions/workflows/test.yml)
A Go library for interacting with Myra Security API.
## Example usage
```go
package main
import (
"log"
"os"
myrasec "github.com/Myra-Security-GmbH/myrasec-go/v2"
)
func main() {
api, err := myrasec.New(os.Getenv("MYRA_API_KEY"), os.Getenv("MYRA_API_SECRET"))
if err != nil {
log.Fatal(err)
}
domains, err := api.ListDomains(map[string]string{"pageSize": "100"})
if err != nil {
log.Fatal(err)
}
for _, d := range domains {
log.Println(d.Name)
}
}
```
## Documentation
- [Setup](./docs/setup.md)
- [Domain](./docs/domain.md)
- [DNS record](./docs/dns_record.md)
- [Cache setting](./docs/cache_setting.md)
- [Subdomain settings](./docs/subdomain_settings.md)
- [IP filter](./docs/ip_filter.md)
- [Redirect](./docs/redirect.md)
- [IP ranges](./docs/ip_range.md)
- [SSL certificates](./docs/ssl.md)
- [Maintenance](./docs/maintenance.md)
- [Maintenance templates](./docs/maintenance_template.md)
- [Error page](./docs/error_page.md)
- [Tag](./docs/tag.md)
- [Tag cache setting](./docs/tag_cachesetting.md)
- [Tag settings](./docs/tag_settings.md)
- [Tag WAF rule](./docs/tag_wafrule.md)
- [CDN bucket](./docs/cdn_bucket.md)
- [CDN file](./docs/cdn_file.md)
- [Statistics](./docs/statistics.md)
- [CacheClear](./docs/cacheclear.md)
- [General Domain settings](./docs/general_domain_settings.md)
- [WAF](./docs/waf.md)
- [WAF Actions](./docs/waf_action.md)
- [WAF Conditions](./docs/waf_condition.md)
- [Waitingroom](./docs/waitingroom.md)
- [Bind Zone Config](./docs/zone_config.md)