public/portworx/platform/project/apiv1/project.proto (version not set)
Download OpenAPI specification:Download
List API lists all the projects for a tenant
query Parameters
tenantId | string Tenant id for which projects to be listed. |
respData | string Default: "RESP_DATA_UNSPECIFIED" Enum: "RESP_DATA_UNSPECIFIED" "INDEX" "LITE" "FULL" Response data flags for listing 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. |
sort.sortBy | string Default: "FIELD_UNSPECIFIED" Enum: "FIELD_UNSPECIFIED" "NAME" "CREATED_AT" "UPDATED_AT" "PHASE" Name of the attribute to sort results by.
|
sort.sortOrder | string Default: "VALUE_UNSPECIFIED" Enum: "VALUE_UNSPECIFIED" "ASC" "DESC" Order of sorting to be applied on requested list. If sort_by having some value and sort_order is not provided, by default ascending order will be used to sort the list.
|
Responses
Response samples
- 200
- default
{- "projects": [
- {
- "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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
Update project api updates a project meta.
path Parameters
meta.uid required | string UID of the resource of the format |
Request Body schema: application/jsonrequired
object (Metadata of the project.) Metadata of the project. | |||||||||||||
|
Responses
Request samples
- Payload
{- "meta": {
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}
}
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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
Get project apis returns a requested project.
path Parameters
projectId required | string Project id. |
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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
AssociateResources will append the supplied resources to existing infra resources of a given project config.
path Parameters
projectId required | string ID of the project. |
Request Body schema: application/jsonrequired
object (v1Resources) Infra resource are platform managed resources, used by associated applications. | |||||||||||||
|
Responses
Request samples
- Payload
{- "infraResource": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}
}
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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
DisassociateResource will remove the infra resources supplied in the request from the project config.
path Parameters
projectId required | string ID of the project from which infra resources to be disassociated. |
Request Body schema: application/jsonrequired
object (v1Resources) Infra resource are platform managed resources, used by associated applications. | |||||||||||||
|
Responses
Request samples
- Payload
{- "infraResource": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}
}
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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
List API lists all the projects for a tenant
Request Body schema: application/jsonrequired
ListProjectsRequest is the request message to the ListProjects API and it takes the multiple selector details for which the projects visible to the caller will be returned.
tenantId | string Tenant id for which projects to be listed. |
object (v1ResourceSelector) ResourceSelector is used to query resources using the associated infra resources. | |
object (v1Selector) Selector is used to query resources using the associated labels or field names. | |
object (v1Selector) Selector is used to query resources using the associated labels or field names. | |
respData | string (v1RespData) Default: "RESP_DATA_UNSPECIFIED" Enum: "RESP_DATA_UNSPECIFIED" "INDEX" "LITE" "FULL" RespData provides flags which provides info about the fields that should be populated in the response.
|
object (v1PageBasedPaginationRequest) Request parameters for page-based pagination. | |
object (v1Sort) The details of the attribute for which the requested list of resource to be sorted. |
Responses
Request samples
- Payload
{- "tenantId": "string",
- "infraResourceSelector": {
- "infraResourceFilters": [
- {
- "resourceType": "TYPE_UNSPECIFIED",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "labelSelector": {
- "filters": [
- {
- "key": "string",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "fieldSelector": {
- "filters": [
- {
- "key": "string",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "respData": "RESP_DATA_UNSPECIFIED",
- "pagination": {
- "pageNumber": "string",
- "pageSize": "string"
}, - "sort": {
- "sortBy": "FIELD_UNSPECIFIED",
- "sortOrder": "VALUE_UNSPECIFIED"
}
}
Response samples
- 200
- default
{- "projects": [
- {
- "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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
Create project api creates a project.
path Parameters
tenantId required | string The parent tenant under which project will be created |
Request Body schema: application/jsonrequired
object (v1Project) Project is a logical collection of objects and/or services that users can access. | |||||||
|
Responses
Request samples
- Payload
{- "project": {
- "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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}
}
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": {
- "infraResources": {
- "clusters": [
- "string"
], - "namespaces": [
- "string"
], - "credentials": [
- "string"
], - "backupLocations": [
- "string"
], - "templates": [
- "string"
], - "backupPolicies": [
- "string"
]
}, - "applicationsResources": {
- "pdsResources": {
- "dataServiceDeployments": [
- "string"
], - "backupConfigs": [
- "string"
], - "restores": [
- "string"
]
}
}
}, - "status": {
- "reason": "string",
- "phase": "TYPE_UNSPECIFIED",
- "associatedResources": {
- "property1": 0,
- "property2": 0
}
}
}