Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Example for slcli dns zone-delete, slcli dns zone-list, slcli dns zone-print command
  • Loading branch information
JayasilanJibm committed Aug 6, 2023
1 parent e5b143f commit 796e7eb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion SoftLayer/CLI/dns/zone_delete.py
Expand Up @@ -14,7 +14,12 @@
@click.argument('zone')
@environment.pass_env
def cli(env, zone):
"""Delete zone."""
"""Delete zone.
Exmaple::
slcli dns zone-delete ibm.com
This command deletes a zone that is named ibm.com
"""

manager = SoftLayer.DNSManager(env.client)
zone_id = helpers.resolve_id(manager.resolve_ids, zone, name='zone')
Expand Down
7 changes: 6 additions & 1 deletion SoftLayer/CLI/dns/zone_list.py
Expand Up @@ -12,7 +12,12 @@
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
@environment.pass_env
def cli(env):
"""List all zones."""
"""List all zones.
Example::
slcli dns zone-list
This command lists all zones under current account.
"""

manager = SoftLayer.DNSManager(env.client)
object_mask = "mask[id,name,serial,updateDate,resourceRecordCount]"
Expand Down
7 changes: 6 additions & 1 deletion SoftLayer/CLI/dns/zone_print.py
Expand Up @@ -12,7 +12,12 @@
@click.argument('zone')
@environment.pass_env
def cli(env, zone):
"""Print zone in BIND format."""
"""Print zone in BIND format.
Example::
slcli dns zone-print ibm.com
This command prints zone that is named ibm.com, and in BIND format.
"""

manager = SoftLayer.DNSManager(env.client)
zone_id = helpers.resolve_id(manager.resolve_ids, zone, name='zone')
Expand Down

0 comments on commit 796e7eb

Please sign in to comment.