Modify an AppMirror resource for an app
PUT /accounts/{account_id}/k8s/v1/apps/{app_id}/appMirrors/{appMirror_id}
Replaces the entire stored resource with the supplied JSON request body while preserving key values that are not user-modifiable.
Side Effects
-
Various side effects based on desiredState.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
account_id |
string |
path |
True |
ID of the containing account resource
|
app_id |
string |
path |
True |
ID of the containing app resource |
appMirror_id |
string |
path |
True |
ID of the appMirror collection to list |
Request Body
Replaces the entire stored resource with the supplied JSON request body while preserving key values that are not user-modifiable.
Side Effects
-
Various side effects based on desiredState.
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 |
False |
Globally unique identifier of the resource. Defined values are:
|
sourceAppID |
string |
False |
Identifier of the source application. Only updated when swapping the sourceAppID with the destinationAppID. Defined values are:
|
sourceClusterID |
string |
False |
Identifier of the managed cluster hosting the source application. This field is read-only and is determined based on the host cluster of the source application. If provided in an update, it must match the cluster ID of the source application, so it can only change when swapping the sourceAppID with destinationAppID. Defined values are:
|
destinationAppID |
string |
False |
Identifier of the destination application. Cannot be provided on create because a new app ID will be generated as part of relationship initialization. Can only be updated when swapping sourceAppID with the destinationAppID. Defined values are:
|
destinationClusterID |
string |
False |
Identifier of the managed cluster to host the destination application. Must be provided on create because it determines what cluster the destination application will be created on. If provided on update, it must match the cluster ID of the destination application, so it can only change when swapping sourceAppID with destinationAppID. Defined values are:
|
namespaceMapping |
array[namespaceMapping] |
False |
The namespace or namespaces to use when creating the destination application, corresponding to the namespaces of the source application. Each JSON object contains the fields "clusterID" and "namespaces", where the "clusterID" value is the JSON string ID of the source or destination cluster, and the "namespaces" value is a JSON array of JSON strings. There must be exactly one JSON object for each cluster, and the namespaces will be correlated by index. If not provided, the same namespace from the source cluster will be used in the destination cluster. Defined values are:
|
storageClasses |
array[storageClasses] |
False |
The storage class to be used on the destination cluster when creating new Persistent Volume Claims (PVCs). Each JSON object contains the fields "clusterID" and "storageClassName", where the "clusterID" value is the JSON string ID of the source or destination cluster, and the "storageClassName" is the storage class to use when creating PVCs on that cluster. If not provided or if the value is missing for a cluster, the default storage class will be used for that cluster. Defined values are:
|
state |
string |
False |
The state of the relationship. Defined values are:
|
stateTransitions |
array[type_astra_stateTransition] |
False |
Permitted state transitions. The following state transitions are possible for this resource:
|
stateDesired |
string |
False |
The desired state for the relationship. At creation, the only valid value is "established". Defined values are:
|
stateAllowed |
array[string] |
False |
States that can be requested in a given state. The following states can be requested in each defined state:
|
stateDetails |
array[type_astra_stateDetail] |
False |
Additional details about the current state, including why the current state was reached. If no details are available, this array will be empty. Defined values are:
|
transferState |
string |
False |
State of the current or most recent snapshot transfer. Defined values are:
|
transferStateTransitions |
array[type_astra_stateTransition] |
False |
Permitted state transitions from a given defined state. The following state transitions are possible for this resource:
|
transferStateDetails |
array[type_astra_stateDetail] |
False |
Additional details about the current state including why the current state was reached. If no details are available, this array will be empty. Defined values are:
|
healthState |
string |
False |
Health state of the resource. Defined values are:
|
healthStateTransitions |
array[type_astra_stateTransition] |
False |
Permitted state transitions from a given defined state. The following state transitions are possible for this resource:
|
healthStateDetails |
array[type_astra_stateDetail] |
False |
Additional details about the current state including why the current state was reached. If no details are available, this array will be empty. Defined values are:
|
metadata |
False |
Client and service-specified metadata associated with the resource. Defined values are:
|
Example request
{
"type": "application/astra-appMirror",
"version": "1.1",
"stateDesired": "failedOver"
}
Response
Status: 204, Indicates if the appMirror resource was updated.
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 |
|
invalidFields |
array[invalidFields] |
False |
List of invalid request body fields |
Example response
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
Response
Status: 409, Conflict
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
status |
string |
True |
|
correlationID |
string |
False |
|
invalidFields |
array[invalidFields] |
False |
List of invalid request body fields |
Example response
{
"type": "https://astra.netapp.io/problems/10",
"title": "JSON resource conflict",
"detail": "The request body JSON contains a field that conflicts with an idempotent value.",
"status": "409"
}
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/1",
"title": "Resource not found",
"detail": "The resource specified in the request URI wasn't found.",
"status": "404"
}
Definitions
See Definitions
namespaceMapping
Name | Type | Required | Description |
---|---|---|---|
clusterID |
string |
False |
Identifier of the cluster for which the namespaces are specified. Defined values are:
|
namespaces |
array[string] |
False |
List of namespaces to use on the cluster. Correlated with the other cluster namespace list by index. Defined values are:
|
role |
string |
False |
The initial role for this namespace definition. This parameter is optional except for when a same-cluster replication configuration is used. Defined values are:
|
storageClasses
Name | Type | Required | Description |
---|---|---|---|
clusterID |
string |
False |
Identifier of the cluster for which the storage class is specified. Defined values are:
|
storageClassName |
string |
False |
Name of the storage class to use when creating PVCs on the cluster specified in "clusterID". Defined values are:
|
role |
string |
False |
The initial role for this storage class definition. This parameter is optional except for when a same-cluster replication configuration is used. Defined values are:
|
type_astra_stateTransition
Name | Type | Required | Description |
---|---|---|---|
from |
string |
True |
|
to |
array[string] |
True |
additionalDetails
type_astra_stateDetail
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
|
additionalDetails |
False |
type_astra_label
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
|
value |
string |
True |
type_astra_metadata_update
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. If not specified on update, the metadata object's labels, creationTimestamp and createdBy, will be preserved without modification.
Name | Type | Required | Description |
---|---|---|---|
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 |
invalidFields
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid request body field |
reason |
string |
True |
Reason why the request body field is invalid |