Chilkat Online Tools

UpdateVolume DataFlex Example

Amazon FSx

Use ChilkatAx-9.5.0-win32.pkg

Procedure Test
    Handle hoRest
    Boolean iSuccess
    Variant vAuthAws
    Handle hoAuthAws
    Handle hoJson
    Variant vSbRequestBody
    Handle hoSbRequestBody
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Integer iRespStatusCode
    Handle hoJResp
    String sAdministrativeActionType
    String sFailureDetailsMessage
    Integer iProgressPercent
    Integer iRequestTime
    String sStatus
    Integer iTargetFileSystemValuesCreationTime
    String sDNSName
    String sTargetFileSystemValuesFileSystemId
    String sFileSystemType
    String sFileSystemTypeVersion
    String sKmsKeyId
    String sTargetFileSystemValuesLifecycle
    Integer iAutomaticBackupRetentionDays
    Integer iCopyTagsToBackups
    String sDailyAutomaticBackupStartTime
    String sLustreConfigurationDataCompressionType
    String sAutoImportPolicy
    String sExportPath
    Integer iImportedFileChunkSize
    String sImportPath
    String sDataRepositoryConfigurationLifecycle
    String sDeploymentType
    String sDriveCacheType
    String sDestination
    String sLevel
    String sMountName
    Integer iPerUnitStorageThroughput
    String sWeeklyMaintenanceStartTime
    Integer iOntapConfigurationAutomaticBackupRetentionDays
    String sOntapConfigurationDailyAutomaticBackupStartTime
    String sOntapConfigurationDeploymentType
    Integer iIops
    String sMode
    String sEndpointIpAddressRange
    String sInterclusterDNSName
    String sManagementDNSName
    String sPreferredSubnetId
    Integer iThroughputCapacity
    String sOntapConfigurationWeeklyMaintenanceStartTime
    Integer iOpenZFSConfigurationAutomaticBackupRetentionDays
    Integer iOpenZFSConfigurationCopyTagsToBackups
    Integer iCopyTagsToVolumes
    String sOpenZFSConfigurationDailyAutomaticBackupStartTime
    String sOpenZFSConfigurationDeploymentType
    Integer iDiskIopsConfigurationIops
    String sDiskIopsConfigurationMode
    String sRootVolumeId
    Integer iOpenZFSConfigurationThroughputCapacity
    String sOpenZFSConfigurationWeeklyMaintenanceStartTime
    String sOwnerId
    String sTargetFileSystemValuesResourceARN
    Integer iStorageCapacity
    String sStorageType
    String sVpcId
    String sActiveDirectoryId
    String sAuditLogDestination
    String sFileAccessAuditLogLevel
    String sFileShareAccessAuditLogLevel
    Integer iWindowsConfigurationAutomaticBackupRetentionDays
    Integer iWindowsConfigurationCopyTagsToBackups
    String sWindowsConfigurationDailyAutomaticBackupStartTime
    String sWindowsConfigurationDeploymentType
    String sPreferredFileServerIp
    String sWindowsConfigurationPreferredSubnetId
    String sRemoteAdministrationEndpoint
    String sDomainName
    String sFileSystemAdministratorsGroup
    String sOrganizationalUnitDistinguishedName
    String sUserName
    Integer iWindowsConfigurationThroughputCapacity
    String sWindowsConfigurationWeeklyMaintenanceStartTime
    Integer iTargetSnapshotValuesCreationTime
    String sTargetSnapshotValuesLifecycle
    String sLifecycleTransitionReasonMessage
    String sTargetSnapshotValuesName
    String sTargetSnapshotValuesResourceARN
    String sSnapshotId
    String sTargetSnapshotValuesVolumeId
    String sTargetVolumeValues
    Integer j
    Integer iCount_j
    String sStrVal
    String sKey
    String sValue
    String sClients
    Integer k
    Integer iCount_k
    Integer iId
    String sV_Type
    Integer iCreationTime
    String sFileSystemId
    String sLifecycle
    String sMessage
    String sName
    String sFlexCacheEndpointType
    String sJunctionPath
    String sOntapVolumeType
    String sSecurityStyle
    Integer iSizeInMegabytes
    Integer iStorageEfficiencyEnabled
    String sStorageVirtualMachineId
    Integer iStorageVirtualMachineRoot
    Integer iCoolingPeriod
    String sTieringPolicyName
    String sUUID
    Integer iCopyTagsToSnapshots
    String sDataCompressionType
    String sCopyStrategy
    String sSnapshotARN
    String sParentVolumeId
    Integer iReadOnly
    Integer iRecordSizeKiB
    Integer iStorageCapacityQuotaGiB
    Integer iStorageCapacityReservationGiB
    String sVolumePath
    String sResourceARN
    String sVolumeId
    String sVolumeType
    Integer i
    Integer iCount_i
    String sTemp1
    Integer iTemp1

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

    Get Create (RefClass(cComChilkatRest)) To hoRest
    If (Not(IsComObjectCreated(hoRest))) Begin
        Send CreateComObject of hoRest
    End

    Get Create (RefClass(cComChilkatAuthAws)) To hoAuthAws
    If (Not(IsComObjectCreated(hoAuthAws))) Begin
        Send CreateComObject of hoAuthAws
    End
    Set ComAccessKey Of hoAuthAws To "AWS_ACCESS_KEY"
    Set ComSecretKey Of hoAuthAws To "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.)
    Set ComRegion Of hoAuthAws To "us-west-2"
    Set ComServiceName Of hoAuthAws To "fsx"
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    Get pvComObject of hoAuthAws to vAuthAws
    Get ComSetAuthAws Of hoRest vAuthAws To iSuccess

    // URL: https://fsx.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    Get ComConnect Of hoRest "fsx.us-west-2.amazonaws.com" 443 True True To iSuccess
    If (iSuccess <> True) Begin
        Get ComConnectFailReason Of hoRest To iTemp1
        Showln "ConnectFailReason: " iTemp1
        Get ComLastErrorText Of hoRest To sTemp1
        Showln sTemp1
        Procedure_Return
    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

    Get Create (RefClass(cComChilkatJsonObject)) To hoJson
    If (Not(IsComObjectCreated(hoJson))) Begin
        Send CreateComObject of hoJson
    End
    Get ComUpdateString Of hoJson "ClientRequestToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Name" "string" To iSuccess
    Get ComUpdateString Of hoJson "OntapConfiguration.JunctionPath" "string" To iSuccess
    Get ComUpdateString Of hoJson "OntapConfiguration.SecurityStyle" "string" To iSuccess
    Get ComUpdateInt Of hoJson "OntapConfiguration.SizeInMegabytes" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OntapConfiguration.StorageEfficiencyEnabled" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OntapConfiguration.TieringPolicy.CoolingPeriod" 123 To iSuccess
    Get ComUpdateString Of hoJson "OntapConfiguration.TieringPolicy.Name" "string" To iSuccess
    Get ComUpdateString Of hoJson "OpenZFSConfiguration.DataCompressionType" "string" To iSuccess
    Get ComUpdateString Of hoJson "OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Clients" "string" To iSuccess
    Get ComUpdateString Of hoJson "OpenZFSConfiguration.NfsExports[0].ClientConfigurations[0].Options[0]" "string" To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.ReadOnly" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.RecordSizeKiB" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.StorageCapacityQuotaGiB" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.StorageCapacityReservationGiB" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.UserAndGroupQuotas[0].Id" 123 To iSuccess
    Get ComUpdateInt Of hoJson "OpenZFSConfiguration.UserAndGroupQuotas[0].StorageCapacityQuotaGiB" 123 To iSuccess
    Get ComUpdateString Of hoJson "OpenZFSConfiguration.UserAndGroupQuotas[0].Type" "string" To iSuccess
    Get ComUpdateString Of hoJson "VolumeId" "string" To iSuccess

    // 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"
    // }

    Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
    Get ComAddHeader Of hoRest "X-Amz-Target" "AWSSimbaAPIService_v20180301.UpdateVolume" To iSuccess

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbRequestBody
    If (Not(IsComObjectCreated(hoSbRequestBody))) Begin
        Send CreateComObject of hoSbRequestBody
    End
    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get ComEmitSb Of hoJson vSbRequestBody To iSuccess
    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComFullRequestSb Of hoRest "POST" "/" vSbRequestBody vSbResponseBody To iSuccess
    If (iSuccess <> True) Begin
        Get ComLastErrorText Of hoRest To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get ComResponseStatusCode Of hoRest To iRespStatusCode
    Showln "response status code = " iRespStatusCode
    If (iRespStatusCode <> 200) Begin
        Showln "Response Header:"
        Get ComResponseHeader Of hoRest To sTemp1
        Showln sTemp1
        Showln "Response Body:"
        Get ComGetAsString Of hoSbResponseBody To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess

    // 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

    Get ComIntOf Of hoJResp "Volume.CreationTime" To iCreationTime
    Get ComStringOf Of hoJResp "Volume.FileSystemId" To sFileSystemId
    Get ComStringOf Of hoJResp "Volume.Lifecycle" To sLifecycle
    Get ComStringOf Of hoJResp "Volume.LifecycleTransitionReason.Message" To sMessage
    Get ComStringOf Of hoJResp "Volume.Name" To sName
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.FlexCacheEndpointType" To sFlexCacheEndpointType
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.JunctionPath" To sJunctionPath
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.OntapVolumeType" To sOntapVolumeType
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.SecurityStyle" To sSecurityStyle
    Get ComIntOf Of hoJResp "Volume.OntapConfiguration.SizeInMegabytes" To iSizeInMegabytes
    Get ComIntOf Of hoJResp "Volume.OntapConfiguration.StorageEfficiencyEnabled" To iStorageEfficiencyEnabled
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.StorageVirtualMachineId" To sStorageVirtualMachineId
    Get ComIntOf Of hoJResp "Volume.OntapConfiguration.StorageVirtualMachineRoot" To iStorageVirtualMachineRoot
    Get ComIntOf Of hoJResp "Volume.OntapConfiguration.TieringPolicy.CoolingPeriod" To iCoolingPeriod
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.TieringPolicy.Name" To sTieringPolicyName
    Get ComStringOf Of hoJResp "Volume.OntapConfiguration.UUID" To sUUID
    Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.CopyTagsToSnapshots" To iCopyTagsToSnapshots
    Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.DataCompressionType" To sDataCompressionType
    Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.OriginSnapshot.CopyStrategy" To sCopyStrategy
    Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.OriginSnapshot.SnapshotARN" To sSnapshotARN
    Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.ParentVolumeId" To sParentVolumeId
    Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.ReadOnly" To iReadOnly
    Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.RecordSizeKiB" To iRecordSizeKiB
    Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.StorageCapacityQuotaGiB" To iStorageCapacityQuotaGiB
    Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.StorageCapacityReservationGiB" To iStorageCapacityReservationGiB
    Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.VolumePath" To sVolumePath
    Get ComStringOf Of hoJResp "Volume.ResourceARN" To sResourceARN
    Get ComStringOf Of hoJResp "Volume.VolumeId" To sVolumeId
    Get ComStringOf Of hoJResp "Volume.VolumeType" To sVolumeType
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].AdministrativeActionType" To sAdministrativeActionType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].FailureDetails.Message" To sFailureDetailsMessage
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].ProgressPercent" To iProgressPercent
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].RequestTime" To iRequestTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].Status" To sStatus
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.CreationTime" To iTargetFileSystemValuesCreationTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.DNSName" To sDNSName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.FailureDetails.Message" To sFailureDetailsMessage
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemId" To sTargetFileSystemValuesFileSystemId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemType" To sFileSystemType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemTypeVersion" To sFileSystemTypeVersion
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.KmsKeyId" To sKmsKeyId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.Lifecycle" To sTargetFileSystemValuesLifecycle
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.AutomaticBackupRetentionDays" To iAutomaticBackupRetentionDays
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.CopyTagsToBackups" To iCopyTagsToBackups
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DailyAutomaticBackupStartTime" To sDailyAutomaticBackupStartTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataCompressionType" To sLustreConfigurationDataCompressionType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy" To sAutoImportPolicy
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ExportPath" To sExportPath
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message" To sFailureDetailsMessage
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize" To iImportedFileChunkSize
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportPath" To sImportPath
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.Lifecycle" To sDataRepositoryConfigurationLifecycle
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DeploymentType" To sDeploymentType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DriveCacheType" To sDriveCacheType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Destination" To sDestination
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Level" To sLevel
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.MountName" To sMountName
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.PerUnitStorageThroughput" To iPerUnitStorageThroughput
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.WeeklyMaintenanceStartTime" To sWeeklyMaintenanceStartTime
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.AutomaticBackupRetentionDays" To iOntapConfigurationAutomaticBackupRetentionDays
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DailyAutomaticBackupStartTime" To sOntapConfigurationDailyAutomaticBackupStartTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DeploymentType" To sOntapConfigurationDeploymentType
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Iops" To iIops
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Mode" To sMode
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.EndpointIpAddressRange" To sEndpointIpAddressRange
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.DNSName" To sInterclusterDNSName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.DNSName" To sManagementDNSName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.PreferredSubnetId" To sPreferredSubnetId
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.ThroughputCapacity" To iThroughputCapacity
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.WeeklyMaintenanceStartTime" To sOntapConfigurationWeeklyMaintenanceStartTime
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.AutomaticBackupRetentionDays" To iOpenZFSConfigurationAutomaticBackupRetentionDays
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToBackups" To iOpenZFSConfigurationCopyTagsToBackups
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToVolumes" To iCopyTagsToVolumes
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DailyAutomaticBackupStartTime" To sOpenZFSConfigurationDailyAutomaticBackupStartTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DeploymentType" To sOpenZFSConfigurationDeploymentType
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Iops" To iDiskIopsConfigurationIops
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Mode" To sDiskIopsConfigurationMode
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.RootVolumeId" To sRootVolumeId
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.ThroughputCapacity" To iOpenZFSConfigurationThroughputCapacity
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.WeeklyMaintenanceStartTime" To sOpenZFSConfigurationWeeklyMaintenanceStartTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OwnerId" To sOwnerId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.ResourceARN" To sTargetFileSystemValuesResourceARN
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.StorageCapacity" To iStorageCapacity
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.StorageType" To sStorageType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.VpcId" To sVpcId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ActiveDirectoryId" To sActiveDirectoryId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination" To sAuditLogDestination
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel" To sFileAccessAuditLogLevel
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel" To sFileShareAccessAuditLogLevel
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AutomaticBackupRetentionDays" To iWindowsConfigurationAutomaticBackupRetentionDays
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.CopyTagsToBackups" To iWindowsConfigurationCopyTagsToBackups
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DailyAutomaticBackupStartTime" To sWindowsConfigurationDailyAutomaticBackupStartTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DeploymentType" To sWindowsConfigurationDeploymentType
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredFileServerIp" To sPreferredFileServerIp
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredSubnetId" To sWindowsConfigurationPreferredSubnetId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.RemoteAdministrationEndpoint" To sRemoteAdministrationEndpoint
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName" To sDomainName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup" To sFileSystemAdministratorsGroup
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName" To sOrganizationalUnitDistinguishedName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName" To sUserName
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ThroughputCapacity" To iWindowsConfigurationThroughputCapacity
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.WeeklyMaintenanceStartTime" To sWindowsConfigurationWeeklyMaintenanceStartTime
        Get ComIntOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.CreationTime" To iTargetSnapshotValuesCreationTime
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.Lifecycle" To sTargetSnapshotValuesLifecycle
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message" To sLifecycleTransitionReasonMessage
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.Name" To sTargetSnapshotValuesName
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.ResourceARN" To sTargetSnapshotValuesResourceARN
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.SnapshotId" To sSnapshotId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.VolumeId" To sTargetSnapshotValuesVolumeId
        Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetVolumeValues" To sTargetVolumeValues
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.Tags" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Key" To sKey
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Lifecycle" To sLifecycle
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.Tags" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key" To sKey
            Get ComStringOf Of hoJResp "Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "Volume.OpenZFSConfiguration.NfsExports" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Clients" To sClients
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options[k]" To sStrVal
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "Volume.OpenZFSConfiguration.UserAndGroupQuotas" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Id" To iId
        Get ComIntOf Of hoJResp "Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].StorageCapacityQuotaGiB" To iStorageCapacityQuotaGiB
        Get ComStringOf Of hoJResp "Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Type" To sV_Type
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "Volume.Tags" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "Volume.Tags[i].Key" To sKey
        Get ComStringOf Of hoJResp "Volume.Tags[i].Value" To sValue
        Move (i + 1) To i
    Loop

    // 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"
    //   }
    // }


End_Procedure