MoveStagingLabel Method

Adds, removes, or moves a staging label.

Syntax

ANSI (Cross Platform)
int MoveStagingLabel(const char* lpszSecretId, const char* lpszStagingLabel, const char* lpszFromVersionId, const char* lpszToVersionId);

Unicode (Windows)
INT MoveStagingLabel(LPCWSTR lpszSecretId, LPCWSTR lpszStagingLabel, LPCWSTR lpszFromVersionId, LPCWSTR lpszToVersionId);
- (void)moveStagingLabel:(NSString*)secretId :(NSString*)stagingLabel :(NSString*)fromVersionId :(NSString*)toVersionId;
#define MID_AMAZONSECRETS_MOVESTAGINGLABEL 14

CLOUDKEYS_EXTERNAL int CLOUDKEYS_CALL CloudKeys_AmazonSecrets_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method adds, removes, or moves a staging label between versions of the secret specified by SecretId.

The value passed for SecretId must the ARN or name of a secret in the current account and Region.

The StagingLabel parameter specifies the staging label that should be added, removed, or moved. If the staging label is AWSCURRENT, it cannot be removed, only moved, and the server will automatically move the AWSPREVIOUS staging label to the secret version specified by FromVersionId.

The FromVersionId and ToVersionId parameters specify which version(s) to operate against. When adding a new staging label to a secret version, only ToVersionId must be specified. When removing a staging label from a version, only FromVersionId must be specified. When moving an existing staging label from one version to another, both FromVersionId and ToVersionId must be specified.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 C++ Edition - Version 20.0 [Build 8157]