Skip to main content

api_key.proto

path mgmt/v1alpha1/api_key.proto

package mgmt.v1alpha1


Messages

AccountApiKey

NameTypeDescription
idstring
namestringThe friendly name of the API Key
account_idstring
created_by_idstring
created_atgoogle.protobuf.Timestamp
updated_by_idstring
updated_atgoogle.protobuf.Timestamp
key_valueoptional stringkey_value is only returned on initial creation or when it is regenerated
user_idstring
expires_atgoogle.protobuf.TimestampThe timestamp of what the API key expires and will not longer be usable.

CreateAccountApiKeyRequest

NameTypeDescription
account_idstring
namestring
expires_atgoogle.protobuf.TimestampValidate between now and one year: now < x < 365 days

CreateAccountApiKeyResponse

NameTypeDescription
api_keyAccountApiKey

DeleteAccountApiKeyRequest

NameTypeDescription
idstring

DeleteAccountApiKeyResponse

NameTypeDescription

GetAccountApiKeyRequest

NameTypeDescription
idstring

GetAccountApiKeyResponse

NameTypeDescription
api_keyAccountApiKey

GetAccountApiKeysRequest

NameTypeDescription
account_idstring

GetAccountApiKeysResponse

NameTypeDescription
api_keysrepeated AccountApiKey

RegenerateAccountApiKeyRequest

NameTypeDescription
idstring
expires_atgoogle.protobuf.TimestampValidate between now and one year: now < x < 365 days

RegenerateAccountApiKeyResponse

NameTypeDescription
api_keyAccountApiKey

Services

ApiKeyService

Service that manages the lifecycle of API Keys that are associated with a specific Account.

GetAccountApiKeys

MethodGetAccountApiKeys
RequestGetAccountApiKeysRequest
ResponseGetAccountApiKeysResponse
DescriptionRetrieves a list of Account API Keys

GetAccountApiKey

MethodGetAccountApiKey
RequestGetAccountApiKeyRequest
ResponseGetAccountApiKeyResponse
DescriptionRetrieves a single API Key

CreateAccountApiKey

MethodCreateAccountApiKey
RequestCreateAccountApiKeyRequest
ResponseCreateAccountApiKeyResponse
DescriptionCreates a single API Key This method will return the decrypted contents of the API key

RegenerateAccountApiKey

MethodRegenerateAccountApiKey
RequestRegenerateAccountApiKeyRequest
ResponseRegenerateAccountApiKeyResponse
DescriptionRegenerates a single API Key with a new expiration time This method will return the decrypted contents of the API key

DeleteAccountApiKey

MethodDeleteAccountApiKey
RequestDeleteAccountApiKeyRequest
ResponseDeleteAccountApiKeyResponse
DescriptionDeletes an API Key from the system.