public/portworx/platform/invitation/apiv1/invitation.proto (version not set)
Download OpenAPI specification:Download
ListInvitation API lists invitation in an account/tenant/project.
query Parameters
accountId | string Account UID to which the user has been invited. User can be invited to multiple accounts. |
tenantId | string Tenant UID to which the user has been invited. User can be invited to multiple tenants. |
projectId | string Project UID to which the user has been invited. User can be invited to multiple projects. |
pagination.pageNumber | string <int64> Page number is the page number to return based on the size. |
pagination.pageSize | string <int64> Page size is the maximum number of records to include per page. |
Responses
Response samples
- 200
- default
{- "invitations": [
- {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "userEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}, - "accountId": "string",
- "tenantId": "string",
- "projectId": "string"
}, - "status": {
- "reason": "string",
- "phase": "PHASE_UNSPECIFIED"
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
CreateInvitation API creates an invitation.
Request Body schema: application/jsonrequired
CreateInvitationRequest is the request message for invitation.
object (v1Invitation) Invitation. | |||||||
|
Responses
Request samples
- Payload
{- "invitation": {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}, - "config": {
- "userEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}, - "accountId": "string",
- "tenantId": "string",
- "projectId": "string"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED"
}
}
}
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "userEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}, - "accountId": "string",
- "tenantId": "string",
- "projectId": "string"
}, - "status": {
- "reason": "string",
- "phase": "PHASE_UNSPECIFIED"
}
}
GetInvitation deletes the specified invitation from the system.
path Parameters
uid required | string UID of the invitation. |
Responses
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "userEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}, - "accountId": "string",
- "tenantId": "string",
- "projectId": "string"
}, - "status": {
- "reason": "string",
- "phase": "PHASE_UNSPECIFIED"
}
}
AcceptInvitation API accepts the invitation from the system.
Request Body schema: application/jsonrequired
AcceptInvitationRequest is the request message to accept an invitation.
accountId required | string we need to pass account_id in the body as for first time acceptance of request, user would not have the context of account. |
Responses
Request samples
- Payload
{- "accountId": "string"
}
Response samples
- 200
- default
{- "message": "string"
}