Skip to content

account

Contents

AccountService

Account service provides APIs to interact with the Account entity.

GetAccount

rpc GetAccount(GetAccountRequest) Account

GetAccount API returns the info about account for given account id.

DeleteAccount

rpc DeleteAccount(DeleteAccountRequest) .google.protobuf.Empty

DeleteAccount API deletes account for given id.

Messages

Account

Account is a high level entity that represents one large company(e.g. a Pure). An account has multiple tenants.

Field Type Description
meta public.portworx.common.v1.Meta Metadata of the account.
config Config Desired configuration of the Account.
status Status Subscription Status for Portworx Services.

AwsSubscriptionInfo

AWS subscription info for one product.

Field Type Description
client_id string Aws client id associated with the installed product.
product_id string Aws product id of the installed product.
account_id string Aws account id associated with the installed product.

Config

Desired configuration of the account. @param dns_name has been deprecated and moved to config management.

Field Type Description
user_email string email of the first account user.
display_name string Display name of Account.
account_type AccountType Describes whether it is a Freemium or an Enterprise account.
oneof pds_subscription.pds_zuora_subscription ZuoraSubscriptionInfo Zuora subscription info.
oneof pxe_subscription.pxe_aws_subscription AwsSubscriptionInfo AWS registration token.
oneof pxe_subscription.pxe_zuora_subscription ZuoraSubscriptionInfo Zuora subscription info.
oneof baas_subscription.baas_aws_subscription AwsSubscriptionInfo AWS registration token.
oneof baas_subscription.baas_zuora_subscription ZuoraSubscriptionInfo Zuora subscription info.

DeleteAccountRequest

DeleteAccountRequest is the request message to DeleteAccount API.

Field Type Description
account_id string account id which is going to be deleted.

GetAccountRequest

GetAccountRequest is the request message to GetAccount API.

Field Type Description
account_id string account id for which account details need to be fetched.

Phase

Phase represents the account status of the account.

Status

Subscription Status for Portworx Services

Field Type Description
pxe StatusType Subscription status of Portworx Enterprise.
pds StatusType Subscription status of Portworx DataServices.
baas StatusType Subscription status of Portworx Backup
reason string Textual information for the current state of the account.
phase Phase.Type Current phase of the account.

ZuoraSubscriptionInfo

Zuora Subscription info for a particular installed product.

Field Type Description
subscription_id string id associated installed product.
account_id string id associated with the customer account.

Enums

AccountType

Accepted account types.

Name Number Description
ACCOUNT_TYPE_UNSPECIFIED 0 Unspecified, do not use.
FREEMIUM 1 Account is of freemium type for all three Portworx Service.
ENTERPRISE 2 Account has a active subscription for at least one of the Portworx Services.

Phase.Type

Type of phase the account is in currently should be one of the below.

Name Number Description
TYPE_UNSPECIFIED 0 Unspecified, do not use.
ACTIVE 1 The account is in use and active.
DELETE_PENDING 2 Deletion of account has not started.
DELETE_IN_PROGRESS 3 Deletion of the account is scheduled and in progress.
DELETE_FAILED 4 Deletion of account is failed

StatusType

Accepted status types for various cloud providers.

Name Number Description
STATUS_TYPE_UNSPECIFIED 0 Unspecified, do not use.
FREEMIUM_SUCCESS 1 A successfully freemium account setup.
AWS_SUBSCRIBE_SUCCESS 2 Customer has subscribed product on aws marketplace.
AWS_SUBSCRIBE_FAIL 3 Customer has subscribed product on aws marketplace but aws encountered failure during account setup.
AWS_UNSUBSCRIBE_PENDING 4 Customer has unsubscribed from marketplace and now we have 1 hour to report final billing. and perform other de-boarding processes.
AWS_UNSUBSCRIBE_SUCCESS 5 Customer successfully unsubscribed and we can't report billing to aws for this account anymore.
ZUORA_SUBSCRIBE 6 Customer successfully subscribed to Zuora.
ZUORA_UNSUBSCRIBE 7 Customer has unsubscribed from Zuora.

Scalar Value Types

.proto Type Notes C++ Type Java Type Python Type

double
double double float

float
float float float

int32
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int

int64
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long

uint32
Uses variable-length encoding. uint32 int int/long

uint64
Uses variable-length encoding. uint64 long int/long

sint32
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int

sint64
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long

fixed32
Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int

fixed64
Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long

sfixed32
Always four bytes. int32 int int

sfixed64
Always eight bytes. int64 long int/long

bool
bool boolean boolean

string
A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode

bytes
May contain any arbitrary sequence of bytes. string ByteString str