openstack.identity.v3.credential

openstack.identity.v3.credential

The Credential Class

The Credential class inherits from Resource.

class openstack.identity.v3.credential.Credential(attrs=None, loaded=False)

Construct a Resource to interact with a service’s REST API.

The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See Resource.new() and Resource.existing().

Parameters:
  • attrs (dict) – The attributes to set when constructing this Resource.
  • loaded (bool) – True if this Resource exists on the server, False if it does not.
blob = None

Arbitrary blob of the credential data, to be parsed according to the type. Type: string

project_id = None

References a project ID which limits the scope the credential applies to. This attribute is mandatory if the credential type is ec2. Type: string

type = None

Representing the credential type, such as ec2 or cert. A specific implementation may determine the list of supported types. Type: string

user_id = None

References the user ID which owns the credential. Type: string

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.