Files
doc
source
_extra
cli
command-objects
access-token.rst
address-scope.rst
aggregate.rst
application-credentials.rst
availability-zone.rst
backup.rst
catalog.rst
command.rst
complete.rst
compute-agent.rst
compute-service.rst
configuration.rst
consistency-group-snapshot.rst
consistency-group.rst
console-log.rst
console-url.rst
consumer.rst
container.rst
credential.rst
domain.rst
ec2-credentials.rst
endpoint.rst
endpoint_group.rst
extension.rst
federation-protocol.rst
flavor.rst
floating-ip-pool.rst
floating-ip.rst
group.rst
host.rst
hypervisor-stats.rst
hypervisor.rst
identity-provider.rst
image.rst
implied_role.rst
ip-availability.rst
ip-fixed.rst
keypair.rst
limit.rst
limits.rst
mapping.rst
module.rst
network-agent.rst
network-auto-allocated-topology.rst
network-flavor-profile.rst
network-flavor.rst
network-meter-rule.rst
network-meter.rst
network-qos-policy.rst
network-qos-rule-type.rst
network-qos-rule.rst
network-rbac.rst
network-segment.rst
network-service-provider.rst
network.rst
object-store-account.rst
object.rst
policy.rst
port.rst
project-purge.rst
project.rst
quota.rst
region.rst
registered-limit.rst
request-token.rst
role-assignment.rst
role.rst
router.rst
security-group-rule.rst
security-group.rst
server-backup.rst
server-event.rst
server-group.rst
server-image.rst
server.rst
service-provider.rst
service.rst
snapshot.rst
subnet-pool.rst
subnet.rst
token.rst
trust.rst
usage.rst
user-role.rst
user.rst
versions.rst
volume-backend.rst
volume-backup.rst
volume-host.rst
volume-qos.rst
volume-service.rst
volume-snapshot.rst
volume-transfer-request.rst
volume-type.rst
volume.rst
data
man
authentication.rst
backwards-incompatible.rst
command-list.rst
commands.rst
decoder.rst
index.rst
interactive.rst
plugin-commands.rst
configuration
contributor
conf.py
index.rst
Makefile
requirements.txt
examples
openstackclient
playbooks
releasenotes
tools
.coveragerc
.gitignore
.gitreview
.mailmap
.stestr.conf
.testr.conf
.zuul.yaml
CONTRIBUTING.rst
HACKING.rst
LICENSE
README.rst
babel.cfg
lower-constraints.txt
requirements.txt
setup.cfg
setup.py
test-requirements.txt
tox.ini
python-openstackclient/doc/source/cli/command-objects/credential.rst
yangweiwei 0f749cacc2 Fix credentials in create, update and list.
Now, keystone has supported serverl auth method, like 'totp'.
Before we use this method, we should create the credential first.
And we need create it with type 'totp'. But now we cannot create
credential with this method.

Also, I think the type should not have constrains. We can create
any type in keystone project. So, we should do these actions too.
The type would be more which We cannot control.

Change-Id: Ie0482da3133fb515e4bb8e45f8c54f509589cc5e
Closes-bug: #1731848
2017-11-17 11:39:15 +08:00

2.2 KiB

credential

Identity v3

credential create

Create new credential

credential create

openstack credential create
    [--type <type>]
    [--project <project>]
    <user> <data>

--type <type>

New credential type: cert, ec2, totp and so on

--project <project>

Project which limits the scope of the credential (name or ID)

User that owns the credential (name or ID)

<data>

New credential data

credential delete

Delete credential(s)

credential delete

openstack credential delete
    <credential-id> [<credential-id> ...]




ID(s) of credential to delete

credential list

List credentials

credential list

openstack credential list
    [--user <user> [--user-domain <user-domain>]]
    [--type <type>]

--user <user>

Filter credentials by <user> (name or ID)

--user-domain <user-domain>

Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.

--type <type>

Filter credentials by type: cert, ec2, totp and so on

credential set

Set credential properties

credential set

openstack credential set
    [--user <user>]
    [--type <type>]
    [--data <data>]
    [--project <project>]
    <credential-id>

--user <user>

User that owns the credential (name or ID)

--type <type>

New credential type: cert, ec2, totp and so on.

--data <data>

New credential data

--project <project>

Project which limits the scope of the credential (name or ID)

ID of credential to change

credential show

Display credential details

credential show

openstack credential show
    <credential-id>




ID of credential to display