diff --git a/doc/source/command-objects/service-provider.rst b/doc/source/command-objects/service-provider.rst new file mode 100644 index 0000000000..963493b4a2 --- /dev/null +++ b/doc/source/command-objects/service-provider.rst @@ -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 ] + [--enable | --disable] + --auth-url + --service-provider-url + + +.. 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:: + + New service provider name (must be unique) + +service provider delete +----------------------- + +Delete service provider + +.. program:: service provider delete +.. code:: bash + + os service provider delete + + +.. describe:: + + 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 ] + [--auth-url ] + [--service-provider-url ] + + +.. 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 to modify + +service provider show +--------------------- + +Display service provider details + +.. program:: service provider show +.. code:: bash + + os service provider show + + +.. describe:: + + Service provider to display diff --git a/doc/source/commands.rst b/doc/source/commands.rst index 42d041afbd..b52d94590a 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -111,6 +111,7 @@ referring to both Compute and Volume quotas. * ``server``: (**Compute**) virtual machine instance * ``server image``: (**Compute**) saved server disk image * ``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 * ``token``: (**Identity**) a bearer token managed by Identity service * ``usage``: (**Compute**) display host resources being consumed diff --git a/openstackclient/identity/v3/service_provider.py b/openstackclient/identity/v3/service_provider.py index 31e96a83a3..78f96b6c8e 100644 --- a/openstackclient/identity/v3/service_provider.py +++ b/openstackclient/identity/v3/service_provider.py @@ -33,14 +33,15 @@ class CreateServiceProvider(show.ShowOne): parser = super(CreateServiceProvider, self).get_parser(prog_name) parser.add_argument( 'service_provider_id', - metavar='', - help='New service provider ID (must be unique)' + metavar='', + help='New service provider name (must be unique)' ) parser.add_argument( '--auth-url', metavar='', required=True, - help='Authentication URL of remote federated service provider', + help='Authentication URL of remote federated service provider ' + '(required)', ) parser.add_argument( '--description', @@ -51,7 +52,8 @@ class CreateServiceProvider(show.ShowOne): '--service-provider-url', metavar='', 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() @@ -60,13 +62,13 @@ class CreateServiceProvider(show.ShowOne): dest='enabled', action='store_true', default=True, - help='Enable service provider (default)', + help='Enable the service provider (default)', ) enable_service_provider.add_argument( '--disable', dest='enabled', action='store_false', - help='Disable service provider', + help='Disable the service provider', ) return parser @@ -94,8 +96,8 @@ class DeleteServiceProvider(command.Command): parser = super(DeleteServiceProvider, self).get_parser(prog_name) parser.add_argument( 'service_provider', - metavar='', - help='Service provider ID to delete (ID)', + metavar='', + help='Service provider to delete', ) return parser @@ -134,13 +136,13 @@ class SetServiceProvider(command.Command): parser = super(SetServiceProvider, self).get_parser(prog_name) parser.add_argument( 'service_provider', - metavar='', - help='Service provider ID to change (ID)', + metavar='', + help='Service provider to modify', ) parser.add_argument( '--auth-url', metavar='', - help='Authentication URL of remote federated Service Provider', + help='New Authentication URL of remote federated service provider', ) parser.add_argument( @@ -151,18 +153,18 @@ class SetServiceProvider(command.Command): parser.add_argument( '--service-provider-url', metavar='', - 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.add_argument( '--enable', action='store_true', - help='Enable service provider', + help='Enable the service provider', ) enable_service_provider.add_argument( '--disable', action='store_true', - help='Disable service provider', + help='Disable the service provider', ) return parser @@ -200,8 +202,8 @@ class ShowServiceProvider(show.ShowOne): parser = super(ShowServiceProvider, self).get_parser(prog_name) parser.add_argument( 'service_provider', - metavar='', - help='Service provider ID to display (ID)', + metavar='', + help='Service provider to display', ) return parser