List all packages
GET /accounts/{account_id}/core/v1/packages
Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
account_id |
string |
path |
True |
ID of the containing account resource
|
filter |
string |
query |
False |
Indicates which fields should be matched in order to return a resource when listing a collection. Supported operators are:
URL example: "filter=field%20eq%20%27value%27" OpenAPI examples: "field eq 'value'" |
orderBy |
string |
query |
False |
Indicates the sort order of resource when listing a collection. URL examples: "orderBy=name", "orderBy=name%20desc" OpenAPI examples: "name desc" |
include |
string |
query |
False |
Indicates which fields should be returned when listing a collection. URL examples: "include=id", "include=id,name" OpenAPI examples: "id"
|
limit |
string |
query |
False |
Indicates the maximum number of resources to return when listing a collection. URL examples: "limit=2" OpenAPI examples: "2" |
Response
Status: 200, Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Name | Type | Required | Description |
---|---|---|---|
items |
array[Any of: package_1.0_get_response_body, array[]] |
True |
|
metadata |
True |
Example response
{
"type": "application/astra-packages",
"version": "1.0",
"items": [
[
"e280ff62-be35-4f31-a31b-a210a1ad1b33",
"acc",
"22.01.0",
"install"
],
[
"e8507dad-d33f-44b3-9c15-ec55ba6f6473",
"acc",
"22.01.1",
"patch"
]
],
"metadata": {
"labels": [],
"creationTimestamp": "2022-10-06T20:58:16.305662Z",
"modificationTimestamp": "2022-10-06T20:58:16.305662Z",
"createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
}
}
Response
Status: 401, Unauthorized
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/3",
"title": "Missing bearer token",
"detail": "The request is missing the required bearer token.",
"status": "401"
}
Response
Status: 400, Bad request
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
|
invalidParams |
array[invalidParams] |
False |
List of invalid query parameters |
Example response
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
Response
Status: 403, Forbidden
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/11",
"title": "Operation not permitted",
"detail": "The requested operation isn't permitted.",
"status": "403"
}
Error
Status: 404, Not found
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example error response
{
"type": "https://astra.netapp.io/problems/2",
"title": "Collection not found",
"detail": "The collection specified in the request URI wasn't found.",
"status": "404"
}
Definitions
See Definitions
type_astra_stateTransitions
Name | Type | Required | Description |
---|---|---|---|
from |
string |
True |
|
to |
array[string] |
True |
type_astra_stateDetails
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
dependsOnImages
Name | Type | Required | Description |
---|---|---|---|
imagePath |
string |
True |
JSON string containing the path to this docker image. It should not contain the name of the registry, only the absolute path from root to image. Example: /globalcicd/acc Defined values are:
|
imageName |
string |
True |
JSON string containing the docker image name. Defined values are:
|
imageTag |
string |
True |
JSON string representing the tag/version of this image. Defined values are:
|
images
Name | Type | Required | Description |
---|---|---|---|
imageName |
string |
True |
JSON string containing the docker image name. Defined values are:
|
imagePath |
string |
True |
JSON string containing the path to this docker image. It should not contain the name of the registry, only the absolute path from root to image. Example: /globalcicd/acc Defined values are:
|
imageTag |
string |
True |
JSON string representing the tag/version of this image. Defined values are:
|
imageDigest |
string |
True |
JSON string representing the digest of this image. Defined values are:
|
dependsOnImages |
array[dependsOnImages] |
False |
JSON array of JSON objects describing the images required to install/upgrade the current image. |
dependsOnComponents
Name | Type | Required | Description |
---|---|---|---|
componentName |
string |
True |
JSON string describing the name of the component. Defined values are:
|
versions |
array[string] |
True |
JSON array of JSON strings defining the component version required to install the current image. |
artifacts
Name | Type | Required | Description |
---|---|---|---|
artifactName |
string |
True |
JSON string containing the file name. Defined values are:
|
artifactIdentifier |
string |
True |
JSON string containing an identifier for this file. Between versions of the same package type, the file name might change but the identifier usually stays the same. Defined values are:
|
artifactPath |
string |
True |
JSON string containing the path to this artifact from the root of a known Astra Control Center Data Store/location. Example: /vmware/1.0/ Defined values are:
|
artifactVersion |
string |
False |
JSON string containing the version of that artifact, if provided. Defined values are:
|
dependsOnComponents |
array[dependsOnComponents] |
False |
JSON array of JSON objects describing the installed components required to install/upgrade the current image. |
files
Name | Type | Required | Description |
---|---|---|---|
fileName |
string |
True |
JSON string containing the file name. Defined values are:
|
fileIdentifier |
string |
True |
JSON string containing an identifier of this file. Between versions of the same package type, the file name might change but the identifier usually stays the same. Defined values are:
|
fileMediaType |
string |
True |
JSON string containing the file media-type. Defined values are any media type defined by IANA. In addition, application/x-yaml or application/x-yaml for yaml files is supported.
|
fileContents |
string |
True |
JSON string containing the file content. Defined values are:
|
upgradableVersions
JSON object containing the minimum and maximum versions that can be upgraded to the package version.
Name | Type | Required | Description |
---|---|---|---|
minVersion |
string |
False |
JSON string describing the minimum version that can be upgraded to the package version. Defined values are:
|
maxVersion |
string |
False |
JSON string describing the maximum version that can be upgraded to the package version. Defined values are:
|
dependencies
Name | Type | Required | Description |
---|---|---|---|
componentName |
string |
True |
JSON string describing the name of the component. Defined values are:
|
componentMinVersion |
string |
False |
JSON string describing the minimum version required of that component. Defined values are:
|
componentMaxVersion |
string |
False |
JSON string describing the maximum version required of that component. Defined values are:
|
type_astra_label
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
|
value |
string |
True |
type_astra_metadata
Client and service-specified metadata associated with the resource. Defined values are:
-
Conforms to the Astra Metadata Schema If not specified on create, a metadata object will be created with no labels.
Name | Type | Required | Description |
---|---|---|---|
labels |
array[type_astra_label] |
True |
|
creationTimestamp |
string |
True |
|
modificationTimestamp |
string |
True |
|
createdBy |
string |
True |
|
modifiedBy |
string |
False |
package_1.0_get_response_body
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
Media type of the resource. Defined values are:
|
version |
string |
True |
Version of the resource. Defined values are:
|
id |
string |
True |
Globally unique identifier of the resource. Defined values are:
|
packageName |
string |
True |
JSON string containing the package name. Defined values are:
|
packageVersion |
string |
True |
JSON string containing the SemVer of the package. Defined values are:
|
packageType |
string |
True |
JSON string containing the package type, indicating whether this is a full installation package or a patch. Defined values are:
|
bundleName |
array[string] |
False |
JSON array of JSON strings containing the name of the bundle that the package is contained in. |
severityLevel |
string |
True |
JSON string describing the severity level of this patch/installation. Defined values are:
|
packageState |
string |
True |
JSON string containing a value indicating the operational state of the package. After verification of the package and after import, the state will indicate "complete". Otherwise, the state will indicate "incomplete". Defined values are:
|
packageStateTransitions |
array[type_astra_stateTransitions] |
True |
JSON array of JSON objects, each representing the set of permitted state transitions from a given defined state. Each JSON object contains the fields "from" and "to", where the "from" value is the name of a state and the "to" value is an array of permitted destination states. Defined values are:
|
packageStateDetails |
array[type_astra_stateDetails] |
True |
JSON array of JSON objects that lists additional details about the current "state". If no details are available, this array will be empty.
|
images |
array[images] |
False |
JSON array of JSON objects, each containing a docker image that is part of the package. |
artifacts |
array[artifacts] |
False |
JSON array of JSON objects describing the additional artifacts (binaries and others) associated with this package. |
files |
array[files] |
False |
JSON array of JSON objects, each representing a non-image artifact associated with this package. |
upgradableVersions |
False |
JSON object containing the minimum and maximum versions that can be upgraded to the package version. |
|
dependencies |
array[dependencies] |
False |
JSON array of JSON objects describing what minimum version of a given dependency is required for this package to be installed |
metadata |
True |
Client and service-specified metadata associated with the resource. Defined values are:
|
type_astra_metadata_list
Name | Type | Required | Description |
---|---|---|---|
continue |
string |
False |
|
count |
number |
False |
|
labels |
array[type_astra_label] |
False |
|
creationTimestamp |
string |
False |
|
modificationTimestamp |
string |
False |
|
createdBy |
string |
False |
|
modifiedBy |
string |
False |
invalidParams
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid query parameter |
reason |
string |
True |
Reason why the query parameter is invalid |