Chilkat Online Tools

UpdateVolume delphiDll Example

Amazon FSx

var
rest: HCkRest;
success: Boolean;
authAws: HCkAuthAws;
json: HCkJsonObject;
sbRequestBody: HCkStringBuilder;
sbResponseBody: HCkStringBuilder;
respStatusCode: Integer;
jResp: HCkJsonObject;
AdministrativeActionType: PWideChar;
FailureDetailsMessage: PWideChar;
ProgressPercent: Integer;
RequestTime: Integer;
Status: PWideChar;
TargetFileSystemValuesCreationTime: Integer;
DNSName: PWideChar;
TargetFileSystemValuesFileSystemId: PWideChar;
FileSystemType: PWideChar;
FileSystemTypeVersion: PWideChar;
KmsKeyId: PWideChar;
TargetFileSystemValuesLifecycle: PWideChar;
AutomaticBackupRetentionDays: Integer;
CopyTagsToBackups: Integer;
DailyAutomaticBackupStartTime: PWideChar;
LustreConfigurationDataCompressionType: PWideChar;
AutoImportPolicy: PWideChar;
ExportPath: PWideChar;
ImportedFileChunkSize: Integer;
ImportPath: PWideChar;
DataRepositoryConfigurationLifecycle: PWideChar;
DeploymentType: PWideChar;
DriveCacheType: PWideChar;
Destination: PWideChar;
Level: PWideChar;
MountName: PWideChar;
PerUnitStorageThroughput: Integer;
WeeklyMaintenanceStartTime: PWideChar;
OntapConfigurationAutomaticBackupRetentionDays: Integer;
OntapConfigurationDailyAutomaticBackupStartTime: PWideChar;
OntapConfigurationDeploymentType: PWideChar;
Iops: Integer;
Mode: PWideChar;
EndpointIpAddressRange: PWideChar;
InterclusterDNSName: PWideChar;
ManagementDNSName: PWideChar;
PreferredSubnetId: PWideChar;
ThroughputCapacity: Integer;
OntapConfigurationWeeklyMaintenanceStartTime: PWideChar;
OpenZFSConfigurationAutomaticBackupRetentionDays: Integer;
OpenZFSConfigurationCopyTagsToBackups: Integer;
CopyTagsToVolumes: Integer;
OpenZFSConfigurationDailyAutomaticBackupStartTime: PWideChar;
OpenZFSConfigurationDeploymentType: PWideChar;
DiskIopsConfigurationIops: Integer;
DiskIopsConfigurationMode: PWideChar;
RootVolumeId: PWideChar;
OpenZFSConfigurationThroughputCapacity: Integer;
OpenZFSConfigurationWeeklyMaintenanceStartTime: PWideChar;
OwnerId: PWideChar;
TargetFileSystemValuesResourceARN: PWideChar;
StorageCapacity: Integer;
StorageType: PWideChar;
VpcId: PWideChar;
ActiveDirectoryId: PWideChar;
AuditLogDestination: PWideChar;
FileAccessAuditLogLevel: PWideChar;
FileShareAccessAuditLogLevel: PWideChar;
WindowsConfigurationAutomaticBackupRetentionDays: Integer;
WindowsConfigurationCopyTagsToBackups: Integer;
WindowsConfigurationDailyAutomaticBackupStartTime: PWideChar;
WindowsConfigurationDeploymentType: PWideChar;
PreferredFileServerIp: PWideChar;
WindowsConfigurationPreferredSubnetId: PWideChar;
RemoteAdministrationEndpoint: PWideChar;
DomainName: PWideChar;
FileSystemAdministratorsGroup: PWideChar;
OrganizationalUnitDistinguishedName: PWideChar;
UserName: PWideChar;
WindowsConfigurationThroughputCapacity: Integer;
WindowsConfigurationWeeklyMaintenanceStartTime: PWideChar;
TargetSnapshotValuesCreationTime: Integer;
TargetSnapshotValuesLifecycle: PWideChar;
LifecycleTransitionReasonMessage: PWideChar;
TargetSnapshotValuesName: PWideChar;
TargetSnapshotValuesResourceARN: PWideChar;
SnapshotId: PWideChar;
TargetSnapshotValuesVolumeId: PWideChar;
TargetVolumeValues: PWideChar;
j: Integer;
count_j: Integer;
strVal: PWideChar;
Key: PWideChar;
Value: PWideChar;
Clients: PWideChar;
k: Integer;
count_k: Integer;
Id: Integer;
v_Type: PWideChar;
CreationTime: Integer;
FileSystemId: PWideChar;
Lifecycle: PWideChar;
Message: PWideChar;
Name: PWideChar;
FlexCacheEndpointType: PWideChar;
JunctionPath: PWideChar;
OntapVolumeType: PWideChar;
SecurityStyle: PWideChar;
SizeInMegabytes: Integer;
StorageEfficiencyEnabled: Integer;
StorageVirtualMachineId: PWideChar;
StorageVirtualMachineRoot: Integer;
CoolingPeriod: Integer;
TieringPolicyName: PWideChar;
UUID: PWideChar;
CopyTagsToSnapshots: Integer;
DataCompressionType: PWideChar;
CopyStrategy: PWideChar;
SnapshotARN: PWideChar;
ParentVolumeId: PWideChar;
ReadOnly: Integer;
RecordSizeKiB: Integer;
StorageCapacityQuotaGiB: Integer;
StorageCapacityReservationGiB: Integer;
VolumePath: PWideChar;
ResourceARN: PWideChar;
VolumeId: PWideChar;
VolumeType: PWideChar;
i: Integer;
count_i: Integer;

begin
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

rest := CkRest_Create();

authAws := CkAuthAws_Create();
CkAuthAws_putAccessKey(authAws,'AWS_ACCESS_KEY');
CkAuthAws_putSecretKey(authAws,'AWS_SECRET_KEY');

// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
CkAuthAws_putRegion(authAws,'us-west-2');
CkAuthAws_putServiceName(authAws,'fsx');
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
CkRest_SetAuthAws(rest,authAws);

// URL: https://fsx.us-west-2.amazonaws.com/
// Use the same region as specified above.
success := CkRest_Connect(rest,'fsx.us-west-2.amazonaws.com',443,True,True);
if (success <> True) then
  begin
    Memo1.Lines.Add('ConnectFailReason: ' + IntToStr(CkRest_getConnectFailReason(rest)));
    Memo1.Lines.Add(CkRest__lastErrorText(rest));
    Exit;
  end;

// The following code creates the JSON request body.
// The JSON created by this code is shown below.

// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON

json := CkJsonObject_Create();
CkJsonObject_UpdateString(json,'ClientRequestToken','string');
CkJsonObject_UpdateString(json,'Name','string');
CkJsonObject_UpdateString(json,'OntapConfiguration.JunctionPath','string');
CkJsonObject_UpdateString(json,'OntapConfiguration.SecurityStyle','string');
CkJsonObject_UpdateInt(json,'OntapConfiguration.SizeInMegabytes',123);
CkJsonObject_UpdateInt(json,'OntapConfiguration.StorageEfficiencyEnabled',123);
CkJsonObject_UpdateInt(json,'OntapConfiguration.TieringPolicy.CoolingPeriod',123);
CkJsonObject_UpdateString(json,'OntapConfiguration.TieringPolicy.Name','string');
CkJsonObject_UpdateString(json,'OpenZFSConfiguration.DataCompressionType','string');
CkJsonObject_UpdateString(json,'OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Clients','string');
CkJsonObject_UpdateString(json,'OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Options[0]','string');
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.ReadOnly',123);
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.RecordSizeKiB',123);
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.StorageCapacityQuotaGiB',123);
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.StorageCapacityReservationGiB',123);
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.UserAndGroupQuotas[0].Id',123);
CkJsonObject_UpdateInt(json,'OpenZFSConfiguration.UserAndGroupQuotas[0].StorageCapacityQuotaGiB',123);
CkJsonObject_UpdateString(json,'OpenZFSConfiguration.UserAndGroupQuotas[0].Type','string');
CkJsonObject_UpdateString(json,'VolumeId','string');

// The JSON request body created by the above code:

// {
//   "ClientRequestToken": "string",
//   "Name": "string",
//   "OntapConfiguration": {
//     "JunctionPath": "string",
//     "SecurityStyle": "string",
//     "SizeInMegabytes": number,
//     "StorageEfficiencyEnabled": boolean,
//     "TieringPolicy": {
//       "CoolingPeriod": number,
//       "Name": "string"
//     }
//   },
//   "OpenZFSConfiguration": {
//     "DataCompressionType": "string",
//     "NfsExports": [
//       {
//         "ClientConfigurations": [
//           {
//             "Clients": "string",
//             "Options": [
//               "string"
//             ]
//           }
//         ]
//       }
//     ],
//     "ReadOnly": boolean,
//     "RecordSizeKiB": number,
//     "StorageCapacityQuotaGiB": number,
//     "StorageCapacityReservationGiB": number,
//     "UserAndGroupQuotas": [
//       {
//         "Id": number,
//         "StorageCapacityQuotaGiB": number,
//         "Type": "string"
//       }
//     ]
//   },
//   "VolumeId": "string"
// }

CkRest_AddHeader(rest,'Content-Type','application/x-amz-json-1.1');
CkRest_AddHeader(rest,'X-Amz-Target','AWSSimbaAPIService_v20180301.UpdateVolume');

sbRequestBody := CkStringBuilder_Create();
CkJsonObject_EmitSb(json,sbRequestBody);
sbResponseBody := CkStringBuilder_Create();
success := CkRest_FullRequestSb(rest,'POST','/',sbRequestBody,sbResponseBody);
if (success <> True) then
  begin
    Memo1.Lines.Add(CkRest__lastErrorText(rest));
    Exit;
  end;
respStatusCode := CkRest_getResponseStatusCode(rest);
Memo1.Lines.Add('response status code = ' + IntToStr(respStatusCode));
if (respStatusCode <> 200) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(CkRest__responseHeader(rest));
    Memo1.Lines.Add('Response Body:');
    Memo1.Lines.Add(CkStringBuilder__getAsString(sbResponseBody));
    Exit;
  end;

jResp := CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);

// The following code parses the JSON response.
// A sample JSON response is shown below the sample code.

// Use this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON

CreationTime := CkJsonObject_IntOf(jResp,'Volume.CreationTime');
FileSystemId := CkJsonObject__stringOf(jResp,'Volume.FileSystemId');
Lifecycle := CkJsonObject__stringOf(jResp,'Volume.Lifecycle');
Message := CkJsonObject__stringOf(jResp,'Volume.LifecycleTransitionReason.Message');
Name := CkJsonObject__stringOf(jResp,'Volume.Name');
FlexCacheEndpointType := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.FlexCacheEndpointType');
JunctionPath := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.JunctionPath');
OntapVolumeType := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.OntapVolumeType');
SecurityStyle := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.SecurityStyle');
SizeInMegabytes := CkJsonObject_IntOf(jResp,'Volume.OntapConfiguration.SizeInMegabytes');
StorageEfficiencyEnabled := CkJsonObject_IntOf(jResp,'Volume.OntapConfiguration.StorageEfficiencyEnabled');
StorageVirtualMachineId := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.StorageVirtualMachineId');
StorageVirtualMachineRoot := CkJsonObject_IntOf(jResp,'Volume.OntapConfiguration.StorageVirtualMachineRoot');
CoolingPeriod := CkJsonObject_IntOf(jResp,'Volume.OntapConfiguration.TieringPolicy.CoolingPeriod');
TieringPolicyName := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.TieringPolicy.Name');
UUID := CkJsonObject__stringOf(jResp,'Volume.OntapConfiguration.UUID');
CopyTagsToSnapshots := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.CopyTagsToSnapshots');
DataCompressionType := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.DataCompressionType');
CopyStrategy := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.OriginSnapshot.CopyStrategy');
SnapshotARN := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.OriginSnapshot.SnapshotARN');
ParentVolumeId := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.ParentVolumeId');
ReadOnly := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.ReadOnly');
RecordSizeKiB := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.RecordSizeKiB');
StorageCapacityQuotaGiB := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.StorageCapacityQuotaGiB');
StorageCapacityReservationGiB := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.StorageCapacityReservationGiB');
VolumePath := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.VolumePath');
ResourceARN := CkJsonObject__stringOf(jResp,'Volume.ResourceARN');
VolumeId := CkJsonObject__stringOf(jResp,'Volume.VolumeId');
VolumeType := CkJsonObject__stringOf(jResp,'Volume.VolumeType');
i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    AdministrativeActionType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].AdministrativeActionType');
    FailureDetailsMessage := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].FailureDetails.Message');
    ProgressPercent := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].ProgressPercent');
    RequestTime := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].RequestTime');
    Status := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].Status');
    TargetFileSystemValuesCreationTime := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.CreationTime');
    DNSName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.DNSName');
    FailureDetailsMessage := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.FailureDetails.Message');
    TargetFileSystemValuesFileSystemId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemId');
    FileSystemType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemType');
    FileSystemTypeVersion := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemTypeVersion');
    KmsKeyId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.KmsKeyId');
    TargetFileSystemValuesLifecycle := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.Lifecycle');
    AutomaticBackupRetentionDays := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.AutomaticBackupRetentionDays');
    CopyTagsToBackups := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.CopyTagsToBackups');
    DailyAutomaticBackupStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DailyAutomaticBackupStartTime');
    LustreConfigurationDataCompressionType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataCompressionType');
    AutoImportPolicy := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy');
    ExportPath := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ExportPath');
    FailureDetailsMessage := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message');
    ImportedFileChunkSize := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize');
    ImportPath := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportPath');
    DataRepositoryConfigurationLifecycle := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.Lifecycle');
    DeploymentType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DeploymentType');
    DriveCacheType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DriveCacheType');
    Destination := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Destination');
    Level := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Level');
    MountName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.MountName');
    PerUnitStorageThroughput := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.PerUnitStorageThroughput');
    WeeklyMaintenanceStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.WeeklyMaintenanceStartTime');
    OntapConfigurationAutomaticBackupRetentionDays := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.AutomaticBackupRetentionDays');
    OntapConfigurationDailyAutomaticBackupStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DailyAutomaticBackupStartTime');
    OntapConfigurationDeploymentType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DeploymentType');
    Iops := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Iops');
    Mode := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Mode');
    EndpointIpAddressRange := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.EndpointIpAddressRange');
    InterclusterDNSName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.DNSName');
    ManagementDNSName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.DNSName');
    PreferredSubnetId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.PreferredSubnetId');
    ThroughputCapacity := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.ThroughputCapacity');
    OntapConfigurationWeeklyMaintenanceStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.WeeklyMaintenanceStartTime');
    OpenZFSConfigurationAutomaticBackupRetentionDays := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.AutomaticBackupRetentionDays');
    OpenZFSConfigurationCopyTagsToBackups := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToBackups');
    CopyTagsToVolumes := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToVolumes');
    OpenZFSConfigurationDailyAutomaticBackupStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DailyAutomaticBackupStartTime');
    OpenZFSConfigurationDeploymentType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DeploymentType');
    DiskIopsConfigurationIops := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Iops');
    DiskIopsConfigurationMode := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Mode');
    RootVolumeId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.RootVolumeId');
    OpenZFSConfigurationThroughputCapacity := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.ThroughputCapacity');
    OpenZFSConfigurationWeeklyMaintenanceStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.WeeklyMaintenanceStartTime');
    OwnerId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OwnerId');
    TargetFileSystemValuesResourceARN := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.ResourceARN');
    StorageCapacity := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.StorageCapacity');
    StorageType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.StorageType');
    VpcId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.VpcId');
    ActiveDirectoryId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ActiveDirectoryId');
    AuditLogDestination := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination');
    FileAccessAuditLogLevel := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel');
    FileShareAccessAuditLogLevel := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel');
    WindowsConfigurationAutomaticBackupRetentionDays := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AutomaticBackupRetentionDays');
    WindowsConfigurationCopyTagsToBackups := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.CopyTagsToBackups');
    WindowsConfigurationDailyAutomaticBackupStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DailyAutomaticBackupStartTime');
    WindowsConfigurationDeploymentType := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DeploymentType');
    PreferredFileServerIp := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredFileServerIp');
    WindowsConfigurationPreferredSubnetId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredSubnetId');
    RemoteAdministrationEndpoint := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.RemoteAdministrationEndpoint');
    DomainName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName');
    FileSystemAdministratorsGroup := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup');
    OrganizationalUnitDistinguishedName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName');
    UserName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName');
    WindowsConfigurationThroughputCapacity := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ThroughputCapacity');
    WindowsConfigurationWeeklyMaintenanceStartTime := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.WeeklyMaintenanceStartTime');
    TargetSnapshotValuesCreationTime := CkJsonObject_IntOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.CreationTime');
    TargetSnapshotValuesLifecycle := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.Lifecycle');
    LifecycleTransitionReasonMessage := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message');
    TargetSnapshotValuesName := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.Name');
    TargetSnapshotValuesResourceARN := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.ResourceARN');
    SnapshotId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.SnapshotId');
    TargetSnapshotValuesVolumeId := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.VolumeId');
    TargetVolumeValues := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetVolumeValues');
    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.Tags');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        Key := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Key');
        Value := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Value');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        Lifecycle := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Lifecycle');
        Name := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Name');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        strVal := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]');
        j := j + 1;
      end;

    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.Tags');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        Key := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key');
        Value := CkJsonObject__stringOf(jResp,'Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value');
        j := j + 1;
      end;

    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'Volume.OpenZFSConfiguration.NfsExports');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    j := 0;
    count_j := CkJsonObject_SizeOfArray(jResp,'Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations');
    while j < count_j do
      begin
        CkJsonObject_putJ(jResp,j);
        Clients := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Clients');
        k := 0;
        count_k := CkJsonObject_SizeOfArray(jResp,'Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options');
        while k < count_k do
          begin
            CkJsonObject_putK(jResp,k);
            strVal := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options[k]');
            k := k + 1;
          end;

        j := j + 1;
      end;

    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'Volume.OpenZFSConfiguration.UserAndGroupQuotas');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    Id := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Id');
    StorageCapacityQuotaGiB := CkJsonObject_IntOf(jResp,'Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].StorageCapacityQuotaGiB');
    v_Type := CkJsonObject__stringOf(jResp,'Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Type');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'Volume.Tags');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    Key := CkJsonObject__stringOf(jResp,'Volume.Tags[i].Key');
    Value := CkJsonObject__stringOf(jResp,'Volume.Tags[i].Value');
    i := i + 1;
  end;

// A sample JSON response body parsed by the above code:

// {
//   "Volume": {
//     "AdministrativeActions": [
//       {
//         "AdministrativeActionType": "string",
//         "FailureDetails": {
//           "Message": "string"
//         },
//         "ProgressPercent": number,
//         "RequestTime": number,
//         "Status": "string",
//         "TargetFileSystemValues": {
//           "AdministrativeActions": [
//             "AdministrativeAction"
//           ],
//           "CreationTime": number,
//           "DNSName": "string",
//           "FailureDetails": {
//             "Message": "string"
//           },
//           "FileSystemId": "string",
//           "FileSystemType": "string",
//           "FileSystemTypeVersion": "string",
//           "KmsKeyId": "string",
//           "Lifecycle": "string",
//           "LustreConfiguration": {
//             "AutomaticBackupRetentionDays": number,
//             "CopyTagsToBackups": boolean,
//             "DailyAutomaticBackupStartTime": "string",
//             "DataCompressionType": "string",
//             "DataRepositoryConfiguration": {
//               "AutoImportPolicy": "string",
//               "ExportPath": "string",
//               "FailureDetails": {
//                 "Message": "string"
//               },
//               "ImportedFileChunkSize": number,
//               "ImportPath": "string",
//               "Lifecycle": "string"
//             },
//             "DeploymentType": "string",
//             "DriveCacheType": "string",
//             "LogConfiguration": {
//               "Destination": "string",
//               "Level": "string"
//             },
//             "MountName": "string",
//             "PerUnitStorageThroughput": number,
//             "WeeklyMaintenanceStartTime": "string"
//           },
//           "NetworkInterfaceIds": [
//             "string"
//           ],
//           "OntapConfiguration": {
//             "AutomaticBackupRetentionDays": number,
//             "DailyAutomaticBackupStartTime": "string",
//             "DeploymentType": "string",
//             "DiskIopsConfiguration": {
//               "Iops": number,
//               "Mode": "string"
//             },
//             "EndpointIpAddressRange": "string",
//             "Endpoints": {
//               "Intercluster": {
//                 "DNSName": "string",
//                 "IpAddresses": [
//                   "string"
//                 ]
//               },
//               "Management": {
//                 "DNSName": "string",
//                 "IpAddresses": [
//                   "string"
//                 ]
//               }
//             },
//             "PreferredSubnetId": "string",
//             "RouteTableIds": [
//               "string"
//             ],
//             "ThroughputCapacity": number,
//             "WeeklyMaintenanceStartTime": "string"
//           },
//           "OpenZFSConfiguration": {
//             "AutomaticBackupRetentionDays": number,
//             "CopyTagsToBackups": boolean,
//             "CopyTagsToVolumes": boolean,
//             "DailyAutomaticBackupStartTime": "string",
//             "DeploymentType": "string",
//             "DiskIopsConfiguration": {
//               "Iops": number,
//               "Mode": "string"
//             },
//             "RootVolumeId": "string",
//             "ThroughputCapacity": number,
//             "WeeklyMaintenanceStartTime": "string"
//           },
//           "OwnerId": "string",
//           "ResourceARN": "string",
//           "StorageCapacity": number,
//           "StorageType": "string",
//           "SubnetIds": [
//             "string"
//           ],
//           "Tags": [
//             {
//               "Key": "string",
//               "Value": "string"
//             }
//           ],
//           "VpcId": "string",
//           "WindowsConfiguration": {
//             "ActiveDirectoryId": "string",
//             "Aliases": [
//               {
//                 "Lifecycle": "string",
//                 "Name": "string"
//               }
//             ],
//             "AuditLogConfiguration": {
//               "AuditLogDestination": "string",
//               "FileAccessAuditLogLevel": "string",
//               "FileShareAccessAuditLogLevel": "string"
//             },
//             "AutomaticBackupRetentionDays": number,
//             "CopyTagsToBackups": boolean,
//             "DailyAutomaticBackupStartTime": "string",
//             "DeploymentType": "string",
//             "MaintenanceOperationsInProgress": [
//               "string"
//             ],
//             "PreferredFileServerIp": "string",
//             "PreferredSubnetId": "string",
//             "RemoteAdministrationEndpoint": "string",
//             "SelfManagedActiveDirectoryConfiguration": {
//               "DnsIps": [
//                 "string"
//               ],
//               "DomainName": "string",
//               "FileSystemAdministratorsGroup": "string",
//               "OrganizationalUnitDistinguishedName": "string",
//               "UserName": "string"
//             },
//             "ThroughputCapacity": number,
//             "WeeklyMaintenanceStartTime": "string"
//           }
//         },
//         "TargetSnapshotValues": {
//           "AdministrativeActions": [
//             "AdministrativeAction"
//           ],
//           "CreationTime": number,
//           "Lifecycle": "string",
//           "LifecycleTransitionReason": {
//             "Message": "string"
//           },
//           "Name": "string",
//           "ResourceARN": "string",
//           "SnapshotId": "string",
//           "Tags": [
//             {
//               "Key": "string",
//               "Value": "string"
//             }
//           ],
//           "VolumeId": "string"
//         },
//         "TargetVolumeValues": "Volume"
//       }
//     ],
//     "CreationTime": number,
//     "FileSystemId": "string",
//     "Lifecycle": "string",
//     "LifecycleTransitionReason": {
//       "Message": "string"
//     },
//     "Name": "string",
//     "OntapConfiguration": {
//       "FlexCacheEndpointType": "string",
//       "JunctionPath": "string",
//       "OntapVolumeType": "string",
//       "SecurityStyle": "string",
//       "SizeInMegabytes": number,
//       "StorageEfficiencyEnabled": boolean,
//       "StorageVirtualMachineId": "string",
//       "StorageVirtualMachineRoot": boolean,
//       "TieringPolicy": {
//         "CoolingPeriod": number,
//         "Name": "string"
//       },
//       "UUID": "string"
//     },
//     "OpenZFSConfiguration": {
//       "CopyTagsToSnapshots": boolean,
//       "DataCompressionType": "string",
//       "NfsExports": [
//         {
//           "ClientConfigurations": [
//             {
//               "Clients": "string",
//               "Options": [
//                 "string"
//               ]
//             }
//           ]
//         }
//       ],
//       "OriginSnapshot": {
//         "CopyStrategy": "string",
//         "SnapshotARN": "string"
//       },
//       "ParentVolumeId": "string",
//       "ReadOnly": boolean,
//       "RecordSizeKiB": number,
//       "StorageCapacityQuotaGiB": number,
//       "StorageCapacityReservationGiB": number,
//       "UserAndGroupQuotas": [
//         {
//           "Id": number,
//           "StorageCapacityQuotaGiB": number,
//           "Type": "string"
//         }
//       ],
//       "VolumePath": "string"
//     },
//     "ResourceARN": "string",
//     "Tags": [
//       {
//         "Key": "string",
//         "Value": "string"
//       }
//     ],
//     "VolumeId": "string",
//     "VolumeType": "string"
//   }
// }

CkRest_Dispose(rest);
CkAuthAws_Dispose(authAws);
CkJsonObject_Dispose(json);
CkStringBuilder_Dispose(sbRequestBody);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);