Skip to main content
È disponibile una versione più recente di questo prodotto.
La versione in lingua italiana fornita proviene da una traduzione automatica. Per eventuali incoerenze, fare riferimento alla versione in lingua inglese.

List all packages

Collaboratori

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

  • example: {{.Account}}

filter

string

query

False

Indicates which fields should be matched in order to return a resource when listing a collection.

Supported operators are:

  • eq - Equality

  • lt/gt - Less than/Greater than

  • lte/gte - Less than or equals to/Greater than or equals to

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"

  • example: id,packageName,packageVersion,softwareType

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

type_astra_metadata_list

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

True

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

True

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

True

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

True

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_stateTransition

Name Type Required Description

from

string

True

to

array[string]

True

type_astra_stateDetail

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 must not contain the name of the registry, only the absolute path from root to image. Example: /globalcicd/acc Defined values are:

  • Minimum length: 1

  • Maximum length: 1023

imageName

string

True

JSON string containing the Docker image name. Defined values are:

  • Minimum length: 1

  • Maximum length: 63

imageTag

string

True

JSON string representing the tag/version of this image. Defined values are:

  • Minimum length: 1

  • Maximum length: 31

images

Name Type Required Description

imageName

string

True

JSON string containing the Docker image name. Defined values are:

  • Minimum length: 1

  • Maximum length: 63

imagePath

string

True

JSON string containing the path to this Docker image. It must not contain the name of the registry, only the absolute path from root to image. Example: /globalcicd/acc Defined values are:

  • Minimum length: 1

  • Maximum length: 1023

imageTag

string

True

JSON string representing the tag/version of this image. Defined values are:

  • Minimum length: 1

  • Maximum length: 31

imageDigest

string

True

JSON string representing the digest of this image. Defined values are:

  • Defined regex is: "^(sha256:)[0-9a-f]{64}$"

dependsOnImages

array[dependsOnImages]

False

JSON array of JSON objects describing the images required to install or upgrade the current image.

dependsOnComponents

Name Type Required Description

componentName

string

True

JSON string describing the name of the component. Defined values are:

  • "acc"

  • "acs"

  • "trident"

  • "kubernetes"

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:

  • Minimum length: 1

  • Maximum length: 63

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:

  • Minimum length: 1

  • Maximum length: 511

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:

  • Minimum length: 1

  • Maximum length: 1023

artifactVersion

string

False

JSON string containing the version of that artifact, if provided. Defined values are:

  • Conforms to the SemVer Schema

  • Minimum length: 1

  • Maximum length: 31

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:

  • Minimum length: 1

  • Maximum length: 63

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:

  • Minimum length: 1

  • Maximum length: 511

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.

  • Minimum length: 1

  • Maximum length: 211

fileContents

string

True

JSON string containing the file content. Defined values are:

  • Conforms to the Base64 Schema FIXME - How do we specify that this is compressed? What algorithm ,etc?

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:

  • Conforms to the SemVer Schema

maxVersion

string

False

JSON string describing the maximum version that can be upgraded to the package version. Defined values are:

  • Conforms to the SemVer Schema

dependencies

Name Type Required Description

componentName

string

True

JSON string describing the name of the component. Defined values are:

  • "acc"

  • "acs"

  • "trident"

  • "kubernetes"

componentMinVersion

string

False

JSON string describing the minimum version required of that component. Defined values are:

  • Conforms to the SemVer Schema

componentMaxVersion

string

False

JSON string describing the maximum version required of that component. Defined values are:

  • Conforms to the SemVer Schema

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:

  • "application/astra-package"

version

string

True

Version of the resource. Defined values are:

  • "1.0"

id

string

True

Globally unique identifier of the resource. Defined values are:

  • Conforms to the UUIDv4 Schema

packageName

string

True

JSON string containing the package name. Defined values are:

  • Minimum length: 1

  • Maximum length: 31 Example values are:

  • "acc"

  • "acs"

  • "trident"

packageVersion

string

True

JSON string containing the SemVer of the package. Defined values are:

  • Conforms to the SemVer Schema

packageType

string

True

JSON string containing the package type, indicating whether this is a full installation package or a patch. Defined values are:

  • "install"

  • "patch"

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 or installation. Defined values are:

  • "recommended" - Installation is recommended - Default value

  • "critical" - Installation is strongly recommended to address critical bug fixes and/or security patches

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:

  • "verifying" - The package is in the process of being validated

  • "corrupt" - The package is corrupt

  • "incomplete" - The package is missing elements

  • "available" - All elements associated with the package are available and the package is ready for use

packageStateTransitions

array[type_astra_stateTransition]

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:

  • Conforms to the State Transition Schema

packageStateDetails

array[type_astra_stateDetail]

True

JSON array of JSON objects that lists additional details about the current "state". If no details are available, this array will be empty.

  • Minimum Items: 0

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

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

type_astra_metadata

True

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.

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