Chilkat Online Tools

CreateFileSystemFromBackup TCL Example

Amazon FSx

load ./chilkat.dll

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

set rest [new_CkRest]

set authAws [new_CkAuthAws]

CkAuthAws_put_AccessKey $authAws "AWS_ACCESS_KEY"
CkAuthAws_put_SecretKey $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_put_Region $authAws "us-west-2"
CkAuthAws_put_ServiceName $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.
set success [CkRest_Connect $rest "fsx.us-west-2.amazonaws.com" 443 1 1]
if {$success != 1} then {
    puts "ConnectFailReason: [CkRest_get_ConnectFailReason $rest]"
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    exit
}

# 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

set json [new_CkJsonObject]

CkJsonObject_UpdateString $json "BackupId" "string"
CkJsonObject_UpdateString $json "ClientRequestToken" "string"
CkJsonObject_UpdateString $json "FileSystemTypeVersion" "string"
CkJsonObject_UpdateString $json "KmsKeyId" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.AutoImportPolicy" "string"
CkJsonObject_UpdateInt $json "LustreConfiguration.AutomaticBackupRetentionDays" 123
CkJsonObject_UpdateInt $json "LustreConfiguration.CopyTagsToBackups" 123
CkJsonObject_UpdateString $json "LustreConfiguration.DailyAutomaticBackupStartTime" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.DataCompressionType" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.DeploymentType" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.DriveCacheType" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.ExportPath" "string"
CkJsonObject_UpdateInt $json "LustreConfiguration.ImportedFileChunkSize" 123
CkJsonObject_UpdateString $json "LustreConfiguration.ImportPath" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.LogConfiguration.Destination" "string"
CkJsonObject_UpdateString $json "LustreConfiguration.LogConfiguration.Level" "string"
CkJsonObject_UpdateInt $json "LustreConfiguration.PerUnitStorageThroughput" 123
CkJsonObject_UpdateString $json "LustreConfiguration.WeeklyMaintenanceStartTime" "string"
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.AutomaticBackupRetentionDays" 123
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.CopyTagsToBackups" 123
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.CopyTagsToVolumes" 123
CkJsonObject_UpdateString $json "OpenZFSConfiguration.DailyAutomaticBackupStartTime" "string"
CkJsonObject_UpdateString $json "OpenZFSConfiguration.DeploymentType" "string"
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.DiskIopsConfiguration.Iops" 123
CkJsonObject_UpdateString $json "OpenZFSConfiguration.DiskIopsConfiguration.Mode" "string"
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.RootVolumeConfiguration.CopyTagsToSnapshots" 123
CkJsonObject_UpdateString $json "OpenZFSConfiguration.RootVolumeConfiguration.DataCompressionType" "string"
CkJsonObject_UpdateString $json "OpenZFSConfiguration.RootVolumeConfiguration.NfsExports[0].ClientConfigurations[0].Clients" "string"
CkJsonObject_UpdateString $json "OpenZFSConfiguration.RootVolumeConfiguration.NfsExports[0].ClientConfigurations[0].Options[0]" "string"
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.RootVolumeConfiguration.ReadOnly" 123
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.RootVolumeConfiguration.RecordSizeKiB" 123
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].Id" 123
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].StorageCapacityQuotaGiB" 123
CkJsonObject_UpdateString $json "OpenZFSConfiguration.RootVolumeConfiguration.UserAndGroupQuotas[0].Type" "string"
CkJsonObject_UpdateInt $json "OpenZFSConfiguration.ThroughputCapacity" 123
CkJsonObject_UpdateString $json "OpenZFSConfiguration.WeeklyMaintenanceStartTime" "string"
CkJsonObject_UpdateString $json "SecurityGroupIds[0]" "string"
CkJsonObject_UpdateString $json "StorageType" "string"
CkJsonObject_UpdateString $json "SubnetIds[0]" "string"
CkJsonObject_UpdateString $json "Tags[0].Key" "string"
CkJsonObject_UpdateString $json "Tags[0].Value" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.ActiveDirectoryId" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.Aliases[0]" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.AuditLogConfiguration.AuditLogDestination" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel" "string"
CkJsonObject_UpdateInt $json "WindowsConfiguration.AutomaticBackupRetentionDays" 123
CkJsonObject_UpdateInt $json "WindowsConfiguration.CopyTagsToBackups" 123
CkJsonObject_UpdateString $json "WindowsConfiguration.DailyAutomaticBackupStartTime" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.DeploymentType" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.PreferredSubnetId" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[0]" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.Password" "string"
CkJsonObject_UpdateString $json "WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName" "string"
CkJsonObject_UpdateInt $json "WindowsConfiguration.ThroughputCapacity" 123
CkJsonObject_UpdateString $json "WindowsConfiguration.WeeklyMaintenanceStartTime" "string"

# The JSON request body created by the above code:

# {
#   "BackupId": "string",
#   "ClientRequestToken": "string",
#   "FileSystemTypeVersion": "string",
#   "KmsKeyId": "string",
#   "LustreConfiguration": {
#     "AutoImportPolicy": "string",
#     "AutomaticBackupRetentionDays": number,
#     "CopyTagsToBackups": boolean,
#     "DailyAutomaticBackupStartTime": "string",
#     "DataCompressionType": "string",
#     "DeploymentType": "string",
#     "DriveCacheType": "string",
#     "ExportPath": "string",
#     "ImportedFileChunkSize": number,
#     "ImportPath": "string",
#     "LogConfiguration": {
#       "Destination": "string",
#       "Level": "string"
#     },
#     "PerUnitStorageThroughput": number,
#     "WeeklyMaintenanceStartTime": "string"
#   },
#   "OpenZFSConfiguration": {
#     "AutomaticBackupRetentionDays": number,
#     "CopyTagsToBackups": boolean,
#     "CopyTagsToVolumes": boolean,
#     "DailyAutomaticBackupStartTime": "string",
#     "DeploymentType": "string",
#     "DiskIopsConfiguration": {
#       "Iops": number,
#       "Mode": "string"
#     },
#     "RootVolumeConfiguration": {
#       "CopyTagsToSnapshots": boolean,
#       "DataCompressionType": "string",
#       "NfsExports": [
#         {
#           "ClientConfigurations": [
#             {
#               "Clients": "string",
#               "Options": [
#                 "string"
#               ]
#             }
#           ]
#         }
#       ],
#       "ReadOnly": boolean,
#       "RecordSizeKiB": number,
#       "UserAndGroupQuotas": [
#         {
#           "Id": number,
#           "StorageCapacityQuotaGiB": number,
#           "Type": "string"
#         }
#       ]
#     },
#     "ThroughputCapacity": number,
#     "WeeklyMaintenanceStartTime": "string"
#   },
#   "SecurityGroupIds": [
#     "string"
#   ],
#   "StorageType": "string",
#   "SubnetIds": [
#     "string"
#   ],
#   "Tags": [
#     {
#       "Key": "string",
#       "Value": "string"
#     }
#   ],
#   "WindowsConfiguration": {
#     "ActiveDirectoryId": "string",
#     "Aliases": [
#       "string"
#     ],
#     "AuditLogConfiguration": {
#       "AuditLogDestination": "string",
#       "FileAccessAuditLogLevel": "string",
#       "FileShareAccessAuditLogLevel": "string"
#     },
#     "AutomaticBackupRetentionDays": number,
#     "CopyTagsToBackups": boolean,
#     "DailyAutomaticBackupStartTime": "string",
#     "DeploymentType": "string",
#     "PreferredSubnetId": "string",
#     "SelfManagedActiveDirectoryConfiguration": {
#       "DnsIps": [
#         "string"
#       ],
#       "DomainName": "string",
#       "FileSystemAdministratorsGroup": "string",
#       "OrganizationalUnitDistinguishedName": "string",
#       "Password": "string",
#       "UserName": "string"
#     },
#     "ThroughputCapacity": number,
#     "WeeklyMaintenanceStartTime": "string"
#   }
# }

CkRest_AddHeader $rest "Content-Type" "application/x-amz-json-1.1"
CkRest_AddHeader $rest "X-Amz-Target" "AWSSimbaAPIService_v20180301.CreateFileSystemFromBackup"

set sbRequestBody [new_CkStringBuilder]

CkJsonObject_EmitSb $json $sbRequestBody
set sbResponseBody [new_CkStringBuilder]

set success [CkRest_FullRequestSb $rest "POST" "/" $sbRequestBody $sbResponseBody]
if {$success != 1} then {
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set respStatusCode [CkRest_get_ResponseStatusCode $rest]
puts "response status code = $respStatusCode"
if {$respStatusCode != 200} then {
    puts "Response Header:"
    puts [CkRest_responseHeader $rest]
    puts "Response Body:"
    puts [CkStringBuilder_getAsString $sbResponseBody]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set jResp [new_CkJsonObject]

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

# json1 is a CkJsonObject

set CreationTime [CkJsonObject_IntOf $jResp "FileSystem.CreationTime"]
set DNSName [CkJsonObject_stringOf $jResp "FileSystem.DNSName"]
set Message [CkJsonObject_stringOf $jResp "FileSystem.FailureDetails.Message"]
set FileSystemId [CkJsonObject_stringOf $jResp "FileSystem.FileSystemId"]
set FileSystemType [CkJsonObject_stringOf $jResp "FileSystem.FileSystemType"]
set FileSystemTypeVersion [CkJsonObject_stringOf $jResp "FileSystem.FileSystemTypeVersion"]
set KmsKeyId [CkJsonObject_stringOf $jResp "FileSystem.KmsKeyId"]
set Lifecycle [CkJsonObject_stringOf $jResp "FileSystem.Lifecycle"]
set AutomaticBackupRetentionDays [CkJsonObject_IntOf $jResp "FileSystem.LustreConfiguration.AutomaticBackupRetentionDays"]
set CopyTagsToBackups [CkJsonObject_IntOf $jResp "FileSystem.LustreConfiguration.CopyTagsToBackups"]
set DailyAutomaticBackupStartTime [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DailyAutomaticBackupStartTime"]
set DataCompressionType [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataCompressionType"]
set AutoImportPolicy [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy"]
set ExportPath [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.ExportPath"]
set FailureDetailsMessage [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message"]
set ImportedFileChunkSize [CkJsonObject_IntOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize"]
set ImportPath [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportPath"]
set DataRepositoryConfigurationLifecycle [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DataRepositoryConfiguration.Lifecycle"]
set DeploymentType [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DeploymentType"]
set DriveCacheType [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.DriveCacheType"]
set Destination [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.LogConfiguration.Destination"]
set Level [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.LogConfiguration.Level"]
set MountName [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.MountName"]
set PerUnitStorageThroughput [CkJsonObject_IntOf $jResp "FileSystem.LustreConfiguration.PerUnitStorageThroughput"]
set WeeklyMaintenanceStartTime [CkJsonObject_stringOf $jResp "FileSystem.LustreConfiguration.WeeklyMaintenanceStartTime"]
set OntapConfigurationAutomaticBackupRetentionDays [CkJsonObject_IntOf $jResp "FileSystem.OntapConfiguration.AutomaticBackupRetentionDays"]
set OntapConfigurationDailyAutomaticBackupStartTime [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.DailyAutomaticBackupStartTime"]
set OntapConfigurationDeploymentType [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.DeploymentType"]
set Iops [CkJsonObject_IntOf $jResp "FileSystem.OntapConfiguration.DiskIopsConfiguration.Iops"]
set Mode [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.DiskIopsConfiguration.Mode"]
set EndpointIpAddressRange [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.EndpointIpAddressRange"]
set InterclusterDNSName [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.Endpoints.Intercluster.DNSName"]
set ManagementDNSName [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.Endpoints.Management.DNSName"]
set PreferredSubnetId [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.PreferredSubnetId"]
set ThroughputCapacity [CkJsonObject_IntOf $jResp "FileSystem.OntapConfiguration.ThroughputCapacity"]
set OntapConfigurationWeeklyMaintenanceStartTime [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.WeeklyMaintenanceStartTime"]
set OpenZFSConfigurationAutomaticBackupRetentionDays [CkJsonObject_IntOf $jResp "FileSystem.OpenZFSConfiguration.AutomaticBackupRetentionDays"]
set OpenZFSConfigurationCopyTagsToBackups [CkJsonObject_IntOf $jResp "FileSystem.OpenZFSConfiguration.CopyTagsToBackups"]
set CopyTagsToVolumes [CkJsonObject_IntOf $jResp "FileSystem.OpenZFSConfiguration.CopyTagsToVolumes"]
set OpenZFSConfigurationDailyAutomaticBackupStartTime [CkJsonObject_stringOf $jResp "FileSystem.OpenZFSConfiguration.DailyAutomaticBackupStartTime"]
set OpenZFSConfigurationDeploymentType [CkJsonObject_stringOf $jResp "FileSystem.OpenZFSConfiguration.DeploymentType"]
set DiskIopsConfigurationIops [CkJsonObject_IntOf $jResp "FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Iops"]
set DiskIopsConfigurationMode [CkJsonObject_stringOf $jResp "FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Mode"]
set RootVolumeId [CkJsonObject_stringOf $jResp "FileSystem.OpenZFSConfiguration.RootVolumeId"]
set OpenZFSConfigurationThroughputCapacity [CkJsonObject_IntOf $jResp "FileSystem.OpenZFSConfiguration.ThroughputCapacity"]
set OpenZFSConfigurationWeeklyMaintenanceStartTime [CkJsonObject_stringOf $jResp "FileSystem.OpenZFSConfiguration.WeeklyMaintenanceStartTime"]
set OwnerId [CkJsonObject_stringOf $jResp "FileSystem.OwnerId"]
set ResourceARN [CkJsonObject_stringOf $jResp "FileSystem.ResourceARN"]
set StorageCapacity [CkJsonObject_IntOf $jResp "FileSystem.StorageCapacity"]
set StorageType [CkJsonObject_stringOf $jResp "FileSystem.StorageType"]
set VpcId [CkJsonObject_stringOf $jResp "FileSystem.VpcId"]
set ActiveDirectoryId [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.ActiveDirectoryId"]
set AuditLogDestination [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination"]
set FileAccessAuditLogLevel [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel"]
set FileShareAccessAuditLogLevel [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel"]
set WindowsConfigurationAutomaticBackupRetentionDays [CkJsonObject_IntOf $jResp "FileSystem.WindowsConfiguration.AutomaticBackupRetentionDays"]
set WindowsConfigurationCopyTagsToBackups [CkJsonObject_IntOf $jResp "FileSystem.WindowsConfiguration.CopyTagsToBackups"]
set WindowsConfigurationDailyAutomaticBackupStartTime [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.DailyAutomaticBackupStartTime"]
set WindowsConfigurationDeploymentType [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.DeploymentType"]
set PreferredFileServerIp [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.PreferredFileServerIp"]
set WindowsConfigurationPreferredSubnetId [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.PreferredSubnetId"]
set RemoteAdministrationEndpoint [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.RemoteAdministrationEndpoint"]
set DomainName [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName"]
set FileSystemAdministratorsGroup [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup"]
set OrganizationalUnitDistinguishedName [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName"]
set UserName [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName"]
set WindowsConfigurationThroughputCapacity [CkJsonObject_IntOf $jResp "FileSystem.WindowsConfiguration.ThroughputCapacity"]
set WindowsConfigurationWeeklyMaintenanceStartTime [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.WeeklyMaintenanceStartTime"]
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set AdministrativeActionType [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].AdministrativeActionType"]
    set FailureDetailsMessage [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].FailureDetails.Message"]
    set ProgressPercent [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].ProgressPercent"]
    set RequestTime [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].RequestTime"]
    set Status [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].Status"]
    set TargetFileSystemValues [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetFileSystemValues"]
    set TargetSnapshotValuesCreationTime [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.CreationTime"]
    set TargetSnapshotValuesLifecycle [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.Lifecycle"]
    set LifecycleTransitionReasonMessage [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message"]
    set Name [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.Name"]
    set TargetSnapshotValuesResourceARN [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.ResourceARN"]
    set SnapshotId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.SnapshotId"]
    set VolumeId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.VolumeId"]
    set TargetVolumeValuesCreationTime [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.CreationTime"]
    set TargetVolumeValuesFileSystemId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.FileSystemId"]
    set TargetVolumeValuesLifecycle [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.Lifecycle"]
    set LifecycleTransitionReasonMessage [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.LifecycleTransitionReason.Message"]
    set TargetVolumeValuesName [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.Name"]
    set FlexCacheEndpointType [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.FlexCacheEndpointType"]
    set JunctionPath [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.JunctionPath"]
    set OntapVolumeType [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.OntapVolumeType"]
    set SecurityStyle [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SecurityStyle"]
    set SizeInMegabytes [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SizeInMegabytes"]
    set StorageEfficiencyEnabled [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageEfficiencyEnabled"]
    set StorageVirtualMachineId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineId"]
    set StorageVirtualMachineRoot [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineRoot"]
    set CoolingPeriod [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.CoolingPeriod"]
    set TieringPolicyName [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.Name"]
    set UUID [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.UUID"]
    set CopyTagsToSnapshots [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.CopyTagsToSnapshots"]
    set OpenZFSConfigurationDataCompressionType [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.DataCompressionType"]
    set CopyStrategy [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.CopyStrategy"]
    set SnapshotARN [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.SnapshotARN"]
    set ParentVolumeId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ParentVolumeId"]
    set ReadOnly [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ReadOnly"]
    set RecordSizeKiB [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.RecordSizeKiB"]
    set StorageCapacityQuotaGiB [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityQuotaGiB"]
    set StorageCapacityReservationGiB [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityReservationGiB"]
    set VolumePath [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.VolumePath"]
    set TargetVolumeValuesResourceARN [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.ResourceARN"]
    set TargetVolumeValuesVolumeId [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeId"]
    set VolumeType [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeType"]
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set Key [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key"]
        set Value [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set Clients [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients"]

            set json1 [CkJsonObject_ObjectOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]"]
            set i1 0
            set count_i1 [CkJsonObject_SizeOfArray $json1 "Options"]
            while {$i1 < $count_i1} {
                CkJsonObject_put_I $json1 $i1
                set strVal [CkJsonObject_stringOf $json1 "Options[i]"]
                set i1 [expr $i1 + 1]
            }
            delete_CkJsonObject $json1

            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set Id [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Id"]
        set StorageCapacityQuotaGiB [CkJsonObject_IntOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB"]
        set v_Type [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Type"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set Key [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Key"]
        set Value [CkJsonObject_stringOf $jResp "FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Value"]
        set j [expr $j + 1]
    }
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.NetworkInterfaceIds"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.NetworkInterfaceIds[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.OntapConfiguration.RouteTableIds"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.OntapConfiguration.RouteTableIds[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.SubnetIds"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.SubnetIds[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.Tags"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set Key [CkJsonObject_stringOf $jResp "FileSystem.Tags[i].Key"]
    set Value [CkJsonObject_stringOf $jResp "FileSystem.Tags[i].Value"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.WindowsConfiguration.Aliases"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set Lifecycle [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.Aliases[i].Lifecycle"]
    set Name [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.Aliases[i].Name"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[i]"]
    set i [expr $i + 1]
}

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

# {
#   "FileSystem": {
#     "AdministrativeActions": [
#       {
#         "AdministrativeActionType": "string",
#         "FailureDetails": {
#           "Message": "string"
#         },
#         "ProgressPercent": number,
#         "RequestTime": number,
#         "Status": "string",
#         "TargetFileSystemValues": "FileSystem",
#         "TargetSnapshotValues": {
#           "AdministrativeActions": [
#             "AdministrativeAction"
#           ],
#           "CreationTime": number,
#           "Lifecycle": "string",
#           "LifecycleTransitionReason": {
#             "Message": "string"
#           },
#           "Name": "string",
#           "ResourceARN": "string",
#           "SnapshotId": "string",
#           "Tags": [
#             {
#               "Key": "string",
#               "Value": "string"
#             }
#           ],
#           "VolumeId": "string"
#         },
#         "TargetVolumeValues": {
#           "AdministrativeActions": [
#             "AdministrativeAction"
#           ],
#           "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"
#         }
#       }
#     ],
#     "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"
#     }
#   }
# }

delete_CkRest $rest
delete_CkAuthAws $authAws
delete_CkJsonObject $json
delete_CkStringBuilder $sbRequestBody
delete_CkStringBuilder $sbResponseBody
delete_CkJsonObject $jResp