zms-domainattrs

command
v1.12.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

zms-domainattrs

The utility looks at the domains specified in a given file (one domain per line) and for each domain, it retrieves and displays the requested attributes associated with the domain.

The utility supports the following list of attributes:

  • businessService
  • productId
  • account
  • gcpProject
  • gcpProjectNumber
  • azureSubscription
  • azureTenant
  • azureClient
  • org
  • slackChannel
  • environment

For businessService and productId attributes, if the given domain does not have the attribute set, the utility will look at the parent domain to see if the attribute is set there. If the attribute is set in the parent domain, the utility will display the value from the parent domain. It will continue to look at the parent domains until it finds the attribute set, or it reaches the top level domain.

Usage

zms-domainattrs -svc-key-file ./key.pem -svc-cert-file ./cert.pem -zms https://athenz.io:4443/zms/v1 -domain-file ./domain.txt -attrs businessService,account

where domain.txt might contain:

weather
sports.prod
sports.nhl
sys.auth

And the output might look like ('weather' domain does not have a businessService attribute and 'sports.prod' domain does not have an account attribute):

Domain,businessService,account
weather,,123456
sports.prod,sports-service,
sports.nhl,sports-service,123456
sys.auth,athenz,456789

License

Copyright The Athenz Authors

Licensed under the Apache License, Version 2.0

Documentation

Overview

The utility looks at the domains specified in a given file (one domain per line) and for each domain, it retrieves and displays the requested attributes associated with the domain.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL