Keeper_CreateCredentials
Keeper_CreateCredentials
Path Parameters
- user string required
The user id.
- credential string required
The credential id.
Request Body required
credentials object required
Credentials are persistent authentication
- name string required
The resorce name of the credentials.
- uid string
The unique and immutable identifier of the credentials.
- principal string
The principal of the credentialscode, usually the username.
active object
Wrapper message for
bool
. The JSON representation forBoolValue
is JSONtrue
andfalse
.- value boolean
The bool value.
- authenticationMethod enum
Possible values: [
AUTHENTICATION_METHOD_UNSPECIFIED
,BASIC
,OAUTH2
]Which authentication method is used by the credentials.
- lastActivityTime date-time
When the credentials were last used.
basic object
- username string required
- password string required
oauth2 object
- principal string
- refreshToken string required
- 200
- default
OK
Schema
- name string required
The resorce name of the credentials.
- uid string
The unique and immutable identifier of the credentials.
- principal string
The principal of the credentialscode, usually the username.
active object
Wrapper message for
bool
. The JSON representation forBoolValue
is JSONtrue
andfalse
.- value boolean
The bool value.
- authenticationMethod enum
Possible values: [
AUTHENTICATION_METHOD_UNSPECIFIED
,BASIC
,OAUTH2
]Which authentication method is used by the credentials.
- lastActivityTime date-time
When the credentials were last used.
Default error response
Schema
- code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
- message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
- @type string
The type of the serialized message.