Updates shell doc of v1 client

This patch updates shell doc of designate v1 client.

Closes-Bug: #1511672

Change-Id: Iaa35b4fa97e0a3680769c0942a51c28e7cede2fc
This commit is contained in:
sonu.kumar 2015-11-04 14:48:23 +05:30
parent 83b9cad7eb
commit 793cdee2ad
2 changed files with 156 additions and 83 deletions

View File

@ -12,23 +12,39 @@ Typically the designate client talks to Keystone (or a Keystone like service) vi
+------------+--------------------------------------+ +------------+--------------------------------------+
| Field | Value | | Field | Value |
+------------+--------------------------------------+ +------------+--------------------------------------+
| created_at | 2013-07-09T13:20:23.664811 | | id | 3dee78df-c6b8-4fbd-8e89-3186c1a4734f |
| id | 1af2d561-b802-44d7-8208-46475dcd45f9 | | created_at | 2015-11-04T08:47:12.000000 |
| name | ns.foo.com. |
| updated_at | None | | updated_at | None |
| name | ns.foo.com. |
+------------+--------------------------------------+ +------------+--------------------------------------+
$ designate --os-endpoint http://127.0.0.1:9001/v1 domain-create --name testing123.net. --email me@mydomain.com $ designate --os-endpoint http://127.0.0.1:9001/v1 domain-create --name testing123.net. --email me@mydomain.com
+------------+--------------------------------------+ +-------------+--------------------------------------+
| Field | Value | | Field | Value |
+------------+--------------------------------------+ +-------------+--------------------------------------+
| name | testing123.net. | | description | None |
| created_at | 2013-07-09T13:20:30.826155 | | created_at | 2015-11-04T08:49:53.000000 |
| updated_at | None | | updated_at | None |
| id | 5c02c519-4928-4a38-bd10-c748c200912f | | email | me@mydomain.com |
| ttl | 3600 | | ttl | 3600 |
| serial | 1373376030 | | serial | 1446626993 |
| email | me@mydomain.com | | id | f98c3d91-f514-4956-a955-20eefb413a64 |
+------------+--------------------------------------+ | name | testing123.net. |
+-------------+--------------------------------------+
$ designate --os-endpoint http://127.0.0.1:9001/v1 record-create --name myhost.testing123.net. --type A --data 1.2.3.4 f98c3d91-f514-4956-a955-20eefb413a64
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| description | None |
| type | A |
| created_at | 2015-11-04T08:52:41.000000 |
| updated_at | None |
| domain_id | f98c3d91-f514-4956-a955-20eefb413a64 |
| priority | None |
| ttl | None |
| data | 1.2.3.4 |
| id | b5a74471-8062-4395-be70-968805a0d832 |
| name | myhost.testing123.net. |
+-------------+--------------------------------------+
$ designate --os-endpoint http://127.0.0.1:9001/v1 record-create --name myhost.testing123.net. --type A --data 1.2.3.4 5c02c519-4928-4a38-bd10-c748c200912f

View File

@ -85,10 +85,8 @@ We've already seen the ``domain-create`` and ``record-create`` subcommands, here
======================= ====================================================== =============== ======================= ====================================================== ===============
subcommand Notes Admin Required subcommand Notes Admin Required
======================= ====================================================== =============== ======================= ====================================================== ===============
complete print bash completion command
diagnostics-ping Ping a service on a given host diagnostics-ping Ping a service on a given host
diagnostics-sync-all Sync Everything
diagnostics-sync-domain Sync a single Domain
diagnostics-sync-record Sync a single Record
domain-create Create Domain domain-create Create Domain
domain-delete Delete Domain domain-delete Delete Domain
domain-get Get Domain domain-get Get Domain
@ -96,6 +94,9 @@ domain-list List Domains
domain-servers-list List Domain Servers domain-servers-list List Domain Servers
domain-update Update Domain domain-update Update Domain
help print detailed help for another command help print detailed help for another command
quota-get Get Quota
quota-reset Reset Quota
quota-update Update Quota
record-create Create Record record-create Create Record
record-delete Delete Record record-delete Delete Record
record-get Get Record record-get Get Record
@ -112,80 +113,136 @@ server-delete Delete Server
server-get Get Server server-get Get Server
server-list List Servers server-list List Servers
server-update Update Server server-update Update Server
sync-all Sync Everything
sync-domain Sync a single Domain
sync-record Sync a single Record
touch-domain Touch a single Domain
======================= ====================================================== =============== ======================= ====================================================== ===============
Builtin designate documentation Builtin designate documentation
------------------------------- -------------------------------
You'll find complete documentation on the shell by running You'll find complete documentation on the shell by running
``designate --help``:: ``designate --help``:
usage: designate [--version] [-v] [--log-file LOG_FILE] [-q] [-h] [--debug] usage: designate [--version] [-v] [--log-file LOG_FILE] [-q] [-h] [--debug]
[--os-endpoint OS_ENDPOINT] [--os-auth-url OS_AUTH_URL] [--os-username OS_USERNAME] [--os-user-id OS_USER_ID]
[--os-username OS_USERNAME] [--os-password OS_PASSWORD] [--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-tenant-id OS_TENANT_ID] [--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-tenant-name OS_TENANT_NAME] [--os-token OS_TOKEN] [--os-password OS_PASSWORD] [--os-tenant-name OS_TENANT_NAME]
[--os-service-type OS_SERVICE_TYPE] [--os-tenant-id OS_TENANT_ID]
[--os-region-name OS_REGION_NAME] [--os-project-name OS_PROJECT_NAME]
[--sudo-tenant-id SUDO_TENANT_ID] [--insecure] [--os-domain-name OS_DOMAIN_NAME]
[--os-domain-id OS_DOMAIN_ID] [--os-project-id OS_PROJECT_ID]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
[--os-token OS_TOKEN] [--os-endpoint OS_ENDPOINT]
[--os-endpoint-type OS_ENDPOINT_TYPE]
[--os-service-type OS_SERVICE_TYPE] [--os-cacert OS_CACERT]
[--insecure] [--all-tenants] [--edit-managed]
Designate Client Designate Client
optional arguments: optional arguments:
--version show program's version number and exit --version show program's version number and exit
-v, --verbose Increase verbosity of output. Can be repeated. -v, --verbose Increase verbosity of output. Can be repeated.
--log-file LOG_FILE Specify a file to log output. Disabled by default. --log-file LOG_FILE Specify a file to log output. Disabled by default.
-q, --quiet suppress output except warnings and errors -q, --quiet Suppress output except warnings and errors.
-h, --help show this help message and exit -h, --help Show this help message and exit.
--debug show tracebacks on errors --debug Show tracebacks on errors.
--os-endpoint OS_ENDPOINT --os-username OS_USERNAME
Defaults to env[OS_DNS_ENDPOINT] Name used for authentication with the OpenStack
--os-auth-url OS_AUTH_URL Identity service. Defaults to env[OS_USERNAME].
Defaults to env[OS_AUTH_URL] --os-user-id OS_USER_ID
--os-username OS_USERNAME User ID used for authentication with the OpenStack
Defaults to env[OS_USERNAME] Identity service. Defaults to env[OS_USER_ID].
--os-password OS_PASSWORD --os-user-domain-id OS_USER_DOMAIN_ID
Defaults to env[OS_PASSWORD] Defaults to env[OS_USER_DOMAIN_ID].
--os-tenant-id OS_TENANT_ID --os-user-domain-name OS_USER_DOMAIN_NAME
Defaults to env[OS_TENANT_ID] Defaults to env[OS_USER_DOMAIN_NAME].
--os-tenant-name OS_TENANT_NAME --os-password OS_PASSWORD
Defaults to env[OS_TENANT_NAME] Password used for authentication with the OpenStack
--os-token OS_TOKEN Defaults to env[OS_SERVICE_TOKEN] Identity service. Defaults to env[OS_PASSWORD].
--os-service-type OS_SERVICE_TYPE --os-tenant-name OS_TENANT_NAME
Defaults to env[OS_DNS_SERVICE_TYPE], or 'dns' Tenant to request authorization on. Defaults to
--os-region-name OS_REGION_NAME env[OS_TENANT_NAME].
Defaults to env[OS_REGION_NAME] --os-tenant-id OS_TENANT_ID
--sudo-tenant-id SUDO_TENANT_ID Tenant to request authorization on. Defaults to
Defaults to env[DESIGNATE_SUDO_TENANT_ID] env[OS_TENANT_ID].
--insecure Explicitly allow 'insecure' SSL requests --os-project-name OS_PROJECT_NAME
Project to request authorization on. Defaults to
env[OS_PROJECT_NAME].
--os-domain-name OS_DOMAIN_NAME
Project to request authorization on. Defaults to
env[OS_DOMAIN_NAME].
--os-domain-id OS_DOMAIN_ID
Defaults to env[OS_DOMAIN_ID].
--os-project-id OS_PROJECT_ID
Project to request authorization on. Defaults to
env[OS_PROJECT_ID].
--os-project-domain-id OS_PROJECT_DOMAIN_ID
Defaults to env[OS_PROJECT_DOMAIN_ID].
--os-project-domain-name OS_PROJECT_DOMAIN_NAME
Defaults to env[OS_PROJECT_DOMAIN_NAME].
--os-auth-url OS_AUTH_URL
Specify the Identity endpoint to use for
authentication. Defaults to env[OS_AUTH_URL].
--os-region-name OS_REGION_NAME
Specify the region to use. Defaults to
env[OS_REGION_NAME].
--os-token OS_TOKEN Specify an existing token to use instead of retrieving
one via authentication (e.g. with username &
password). Defaults to env[OS_SERVICE_TOKEN].
--os-endpoint OS_ENDPOINT
Specify an endpoint to use instead of retrieving one
from the service catalog (via authentication).
Defaults to env[OS_DNS_ENDPOINT].
--os-endpoint-type OS_ENDPOINT_TYPE
Defaults to env[OS_ENDPOINT_TYPE].
--os-service-type OS_SERVICE_TYPE
Defaults to env[OS_DNS_SERVICE_TYPE], or 'dns'.
--os-cacert OS_CACERT
CA certificate bundle file. Defaults to
env[OS_CACERT].
--insecure Explicitly allow 'insecure' SSL requests.
--all-tenants Allows to list all domains from all tenants.
--edit-managed Allows to edit records that are marked as managed.
Commands:
diagnostics-ping Ping a service on a given host Commands:
diagnostics-sync-all Sync Everything complete print bash completion command
diagnostics-sync-domain Sync a single Domain diagnostics-ping Ping a service on a given host
diagnostics-sync-record Sync a single Record domain-create Create Domain
domain-create Create Domain domain-delete Delete Domain
domain-delete Delete Domain domain-get Get Domain
domain-get Get Domain domain-list List Domains
domain-list List Domains domain-servers-list List Domain Servers
domain-servers-list List Domain Servers domain-update Update Domain
domain-update Update Domain help print detailed help for another command
help print detailed help for another command quota-get Get Quota
record-create Create Record quota-reset Reset Quota
record-delete Delete Record quota-update Update Quota
record-get Get Record record-create Create Record
record-list List Records record-delete Delete Record
record-update Update Record record-get Get Record
report-count-all Get count totals for all tenants, domains and records record-list List Records
report-count-domains Get counts for total domains record-update Update Record
report-count-records Get counts for total records report-count-all Get count totals for all tenants, domains and records
report-count-tenants Get counts for total tenants report-count-domains Get counts for total domains
report-tenant-domains Get a list of domains for given tenant report-count-records Get counts for total records
report-tenants-all Get list of tenants and domain count for each report-count-tenants Get counts for total tenants
server-create Create Server report-tenant-domains Get a list of domains for given tenant
server-delete Delete Server report-tenants-all Get list of tenants and domain count for each
server-get Get Server server-create Create Server
server-list List Servers server-delete Delete Server
server-update Update Server server-get Get Server
server-list List Servers
server-update Update Server
sync-all Sync Everything
sync-domain Sync a single Domain
sync-record Sync a single Record
touch-domain Touch a single Domain
.. _REST API create-domain: https://designate.readthedocs.org/en/latest/rest/domains.html#create-domain .. _REST API create-domain: https://designate.readthedocs.org/en/latest/rest/domains.html#create-domain