Add docs for service provider CRUD
This patch adds service providers to command-objects, and makes a few changes to the help text, to align it more with the already established identity provider resource. Change-Id: Ibf3d2bc04bf5588d1fc9c37b8ca28c007496c021
This commit is contained in:
parent
ba7ad20942
commit
caf91e69ba
125
doc/source/command-objects/service-provider.rst
Normal file
125
doc/source/command-objects/service-provider.rst
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
================
|
||||||
|
service provider
|
||||||
|
================
|
||||||
|
|
||||||
|
Identity v3
|
||||||
|
|
||||||
|
`Requires: OS-FEDERATION extension`
|
||||||
|
|
||||||
|
service provider create
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Create new service provider
|
||||||
|
|
||||||
|
.. program:: service provider create
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os service provider create
|
||||||
|
[--description <description>]
|
||||||
|
[--enable | --disable]
|
||||||
|
--auth-url <auth-url>
|
||||||
|
--service-provider-url <sp-url>
|
||||||
|
<name>
|
||||||
|
|
||||||
|
.. option:: --auth-url
|
||||||
|
|
||||||
|
Authentication URL of remote federated service provider (required)
|
||||||
|
|
||||||
|
.. option:: --service-provider-url
|
||||||
|
|
||||||
|
A service URL where SAML assertions are being sent (required)
|
||||||
|
|
||||||
|
.. option:: --description
|
||||||
|
|
||||||
|
New service provider description
|
||||||
|
|
||||||
|
.. option:: --enable
|
||||||
|
|
||||||
|
Enable the service provider (default)
|
||||||
|
|
||||||
|
.. option:: --disable
|
||||||
|
|
||||||
|
Disable the service provider
|
||||||
|
|
||||||
|
.. describe:: <name>
|
||||||
|
|
||||||
|
New service provider name (must be unique)
|
||||||
|
|
||||||
|
service provider delete
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Delete service provider
|
||||||
|
|
||||||
|
.. program:: service provider delete
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os service provider delete
|
||||||
|
<service-provider>
|
||||||
|
|
||||||
|
.. describe:: <service-provider>
|
||||||
|
|
||||||
|
Service provider to delete
|
||||||
|
|
||||||
|
service provider list
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
List service providers
|
||||||
|
|
||||||
|
.. program:: service provider list
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os service provider list
|
||||||
|
|
||||||
|
service provider set
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Set service provider properties
|
||||||
|
|
||||||
|
.. program:: service provider set
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os service provider set
|
||||||
|
[--enable | --disable]
|
||||||
|
[--description <description>]
|
||||||
|
[--auth-url <auth-url>]
|
||||||
|
[--service-provider-url <sp-url>]
|
||||||
|
<service-provider>
|
||||||
|
|
||||||
|
.. option:: --service-provider-url
|
||||||
|
|
||||||
|
New service provider URL, where SAML assertions are sent
|
||||||
|
|
||||||
|
.. option:: --auth-url
|
||||||
|
|
||||||
|
New Authentication URL of remote federated service provider
|
||||||
|
|
||||||
|
.. option:: --description
|
||||||
|
|
||||||
|
New service provider description
|
||||||
|
|
||||||
|
.. option:: --enable
|
||||||
|
|
||||||
|
Enable the service provider
|
||||||
|
|
||||||
|
.. option:: --disable
|
||||||
|
|
||||||
|
Disable the service provider
|
||||||
|
|
||||||
|
.. describe:: <service-provider>
|
||||||
|
|
||||||
|
Service provider to modify
|
||||||
|
|
||||||
|
service provider show
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Display service provider details
|
||||||
|
|
||||||
|
.. program:: service provider show
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
os service provider show
|
||||||
|
<service-provider>
|
||||||
|
|
||||||
|
.. describe:: <service-provider>
|
||||||
|
|
||||||
|
Service provider to display
|
@ -111,6 +111,7 @@ referring to both Compute and Volume quotas.
|
|||||||
* ``server``: (**Compute**) virtual machine instance
|
* ``server``: (**Compute**) virtual machine instance
|
||||||
* ``server image``: (**Compute**) saved server disk image
|
* ``server image``: (**Compute**) saved server disk image
|
||||||
* ``service``: (**Identity**) a cloud service
|
* ``service``: (**Identity**) a cloud service
|
||||||
|
* ``service provider``: (**Identity**) a resource that consumes assertions from an ``identity provider``
|
||||||
* ``snapshot``: (**Volume**) a point-in-time copy of a volume
|
* ``snapshot``: (**Volume**) a point-in-time copy of a volume
|
||||||
* ``token``: (**Identity**) a bearer token managed by Identity service
|
* ``token``: (**Identity**) a bearer token managed by Identity service
|
||||||
* ``usage``: (**Compute**) display host resources being consumed
|
* ``usage``: (**Compute**) display host resources being consumed
|
||||||
|
@ -33,14 +33,15 @@ class CreateServiceProvider(show.ShowOne):
|
|||||||
parser = super(CreateServiceProvider, self).get_parser(prog_name)
|
parser = super(CreateServiceProvider, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'service_provider_id',
|
'service_provider_id',
|
||||||
metavar='<service-provider-id>',
|
metavar='<name>',
|
||||||
help='New service provider ID (must be unique)'
|
help='New service provider name (must be unique)'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--auth-url',
|
'--auth-url',
|
||||||
metavar='<auth-url>',
|
metavar='<auth-url>',
|
||||||
required=True,
|
required=True,
|
||||||
help='Authentication URL of remote federated service provider',
|
help='Authentication URL of remote federated service provider '
|
||||||
|
'(required)',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--description',
|
'--description',
|
||||||
@ -51,7 +52,8 @@ class CreateServiceProvider(show.ShowOne):
|
|||||||
'--service-provider-url',
|
'--service-provider-url',
|
||||||
metavar='<sp-url>',
|
metavar='<sp-url>',
|
||||||
required=True,
|
required=True,
|
||||||
help='A service URL where SAML assertions are being sent',
|
help='A service URL where SAML assertions are being sent '
|
||||||
|
'(required)',
|
||||||
)
|
)
|
||||||
|
|
||||||
enable_service_provider = parser.add_mutually_exclusive_group()
|
enable_service_provider = parser.add_mutually_exclusive_group()
|
||||||
@ -60,13 +62,13 @@ class CreateServiceProvider(show.ShowOne):
|
|||||||
dest='enabled',
|
dest='enabled',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=True,
|
default=True,
|
||||||
help='Enable service provider (default)',
|
help='Enable the service provider (default)',
|
||||||
)
|
)
|
||||||
enable_service_provider.add_argument(
|
enable_service_provider.add_argument(
|
||||||
'--disable',
|
'--disable',
|
||||||
dest='enabled',
|
dest='enabled',
|
||||||
action='store_false',
|
action='store_false',
|
||||||
help='Disable service provider',
|
help='Disable the service provider',
|
||||||
)
|
)
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
@ -94,8 +96,8 @@ class DeleteServiceProvider(command.Command):
|
|||||||
parser = super(DeleteServiceProvider, self).get_parser(prog_name)
|
parser = super(DeleteServiceProvider, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'service_provider',
|
'service_provider',
|
||||||
metavar='<service-provider-id>',
|
metavar='<service-provider>',
|
||||||
help='Service provider ID to delete (ID)',
|
help='Service provider to delete',
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@ -134,13 +136,13 @@ class SetServiceProvider(command.Command):
|
|||||||
parser = super(SetServiceProvider, self).get_parser(prog_name)
|
parser = super(SetServiceProvider, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'service_provider',
|
'service_provider',
|
||||||
metavar='<service-provider-id>',
|
metavar='<service-provider>',
|
||||||
help='Service provider ID to change (ID)',
|
help='Service provider to modify',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--auth-url',
|
'--auth-url',
|
||||||
metavar='<auth-url>',
|
metavar='<auth-url>',
|
||||||
help='Authentication URL of remote federated Service Provider',
|
help='New Authentication URL of remote federated service provider',
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
@ -151,18 +153,18 @@ class SetServiceProvider(command.Command):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--service-provider-url',
|
'--service-provider-url',
|
||||||
metavar='<sp-url>',
|
metavar='<sp-url>',
|
||||||
help='A service URL where SAML assertions are being sent',
|
help='New service provider URL, where SAML assertions are sent',
|
||||||
)
|
)
|
||||||
enable_service_provider = parser.add_mutually_exclusive_group()
|
enable_service_provider = parser.add_mutually_exclusive_group()
|
||||||
enable_service_provider.add_argument(
|
enable_service_provider.add_argument(
|
||||||
'--enable',
|
'--enable',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Enable service provider',
|
help='Enable the service provider',
|
||||||
)
|
)
|
||||||
enable_service_provider.add_argument(
|
enable_service_provider.add_argument(
|
||||||
'--disable',
|
'--disable',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Disable service provider',
|
help='Disable the service provider',
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@ -200,8 +202,8 @@ class ShowServiceProvider(show.ShowOne):
|
|||||||
parser = super(ShowServiceProvider, self).get_parser(prog_name)
|
parser = super(ShowServiceProvider, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'service_provider',
|
'service_provider',
|
||||||
metavar='<service-provider-id>',
|
metavar='<service-provider>',
|
||||||
help='Service provider ID to display (ID)',
|
help='Service provider to display',
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user