Chilkat Online Tools

DescribeVolumes PureBasic Example

Amazon FSx

IncludeFile "CkJsonObject.pb"
IncludeFile "CkStringBuilder.pb"
IncludeFile "CkRest.pb"
IncludeFile "CkAuthAws.pb"

Procedure ChilkatExample()

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

    rest.i = CkRest::ckCreate()
    If rest.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    success.i

    authAws.i = CkAuthAws::ckCreate()
    If authAws.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkAuthAws::setCkAccessKey(authAws, "AWS_ACCESS_KEY")
    CkAuthAws::setCkSecretKey(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::setCkRegion(authAws, "us-west-2")
    CkAuthAws::setCkServiceName(authAws, "fsx")
    ; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRest::ckSetAuthAws(rest,authAws)

    ; URL: https://fsx.us-west-2.amazonaws.com/
    ; Use the same region as specified above.
    success = CkRest::ckConnect(rest,"fsx.us-west-2.amazonaws.com",443,1,1)
    If success <> 1
        Debug "ConnectFailReason: " + Str(CkRest::ckConnectFailReason(rest))
        Debug CkRest::ckLastErrorText(rest)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        ProcedureReturn
    EndIf

    ; 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.i = CkJsonObject::ckCreate()
    If json.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckUpdateString(json,"Filters[0].Name","string")
    CkJsonObject::ckUpdateString(json,"Filters[0].Values[0]","string")
    CkJsonObject::ckUpdateInt(json,"MaxResults",123)
    CkJsonObject::ckUpdateString(json,"NextToken","string")
    CkJsonObject::ckUpdateString(json,"VolumeIds[0]","string")

    ; The JSON request body created by the above code:

    ; {
    ;   "Filters": [
    ;     {
    ;       "Name": "string",
    ;       "Values": [
    ;         "string"
    ;       ]
    ;     }
    ;   ],
    ;   "MaxResults": number,
    ;   "NextToken": "string",
    ;   "VolumeIds": [
    ;     "string"
    ;   ]
    ; }

    CkRest::ckAddHeader(rest,"Content-Type","application/x-amz-json-1.1")
    CkRest::ckAddHeader(rest,"X-Amz-Target","AWSSimbaAPIService_v20180301.DescribeVolumes")

    sbRequestBody.i = CkStringBuilder::ckCreate()
    If sbRequestBody.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckEmitSb(json,sbRequestBody)
    sbResponseBody.i = CkStringBuilder::ckCreate()
    If sbResponseBody.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    success = CkRest::ckFullRequestSb(rest,"POST","/",sbRequestBody,sbResponseBody)
    If success <> 1
        Debug CkRest::ckLastErrorText(rest)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        CkJsonObject::ckDispose(json)
        CkStringBuilder::ckDispose(sbRequestBody)
        CkStringBuilder::ckDispose(sbResponseBody)
        ProcedureReturn
    EndIf

    respStatusCode.i = CkRest::ckResponseStatusCode(rest)
    Debug "response status code = " + Str(respStatusCode)
    If respStatusCode <> 200
        Debug "Response Header:"
        Debug CkRest::ckResponseHeader(rest)
        Debug "Response Body:"
        Debug CkStringBuilder::ckGetAsString(sbResponseBody)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        CkJsonObject::ckDispose(json)
        CkStringBuilder::ckDispose(sbRequestBody)
        CkStringBuilder::ckDispose(sbResponseBody)
        ProcedureReturn
    EndIf

    jResp.i = CkJsonObject::ckCreate()
    If jResp.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckLoadSb(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.i
    FileSystemId.s
    Lifecycle.s
    Message.s
    Name.s
    FlexCacheEndpointType.s
    JunctionPath.s
    OntapVolumeType.s
    SecurityStyle.s
    SizeInMegabytes.i
    StorageEfficiencyEnabled.i
    StorageVirtualMachineId.s
    StorageVirtualMachineRoot.i
    CoolingPeriod.i
    TieringPolicyName.s
    UUID.s
    CopyTagsToSnapshots.i
    DataCompressionType.s
    CopyStrategy.s
    SnapshotARN.s
    ParentVolumeId.s
    ReadOnly.i
    RecordSizeKiB.i
    StorageCapacityQuotaGiB.i
    StorageCapacityReservationGiB.i
    VolumePath.s
    ResourceARN.s
    VolumeId.s
    VolumeType.s
    j.i
    count_j.i
    AdministrativeActionType.s
    FailureDetailsMessage.s
    ProgressPercent.i
    RequestTime.i
    Status.s
    TargetFileSystemValuesCreationTime.i
    DNSName.s
    TargetFileSystemValuesFileSystemId.s
    FileSystemType.s
    FileSystemTypeVersion.s
    KmsKeyId.s
    TargetFileSystemValuesLifecycle.s
    AutomaticBackupRetentionDays.i
    CopyTagsToBackups.i
    DailyAutomaticBackupStartTime.s
    LustreConfigurationDataCompressionType.s
    AutoImportPolicy.s
    ExportPath.s
    ImportedFileChunkSize.i
    ImportPath.s
    DataRepositoryConfigurationLifecycle.s
    DeploymentType.s
    DriveCacheType.s
    Destination.s
    Level.s
    MountName.s
    PerUnitStorageThroughput.i
    WeeklyMaintenanceStartTime.s
    OntapConfigurationAutomaticBackupRetentionDays.i
    OntapConfigurationDailyAutomaticBackupStartTime.s
    OntapConfigurationDeploymentType.s
    Iops.i
    Mode.s
    EndpointIpAddressRange.s
    InterclusterDNSName.s
    ManagementDNSName.s
    PreferredSubnetId.s
    ThroughputCapacity.i
    OntapConfigurationWeeklyMaintenanceStartTime.s
    OpenZFSConfigurationAutomaticBackupRetentionDays.i
    OpenZFSConfigurationCopyTagsToBackups.i
    CopyTagsToVolumes.i
    OpenZFSConfigurationDailyAutomaticBackupStartTime.s
    OpenZFSConfigurationDeploymentType.s
    DiskIopsConfigurationIops.i
    DiskIopsConfigurationMode.s
    RootVolumeId.s
    OpenZFSConfigurationThroughputCapacity.i
    OpenZFSConfigurationWeeklyMaintenanceStartTime.s
    OwnerId.s
    TargetFileSystemValuesResourceARN.s
    StorageCapacity.i
    StorageType.s
    VpcId.s
    ActiveDirectoryId.s
    AuditLogDestination.s
    FileAccessAuditLogLevel.s
    FileShareAccessAuditLogLevel.s
    WindowsConfigurationAutomaticBackupRetentionDays.i
    WindowsConfigurationCopyTagsToBackups.i
    WindowsConfigurationDailyAutomaticBackupStartTime.s
    WindowsConfigurationDeploymentType.s
    PreferredFileServerIp.s
    WindowsConfigurationPreferredSubnetId.s
    RemoteAdministrationEndpoint.s
    DomainName.s
    FileSystemAdministratorsGroup.s
    OrganizationalUnitDistinguishedName.s
    UserName.s
    WindowsConfigurationThroughputCapacity.i
    WindowsConfigurationWeeklyMaintenanceStartTime.s
    TargetSnapshotValuesCreationTime.i
    TargetSnapshotValuesLifecycle.s
    LifecycleTransitionReasonMessage.s
    TargetSnapshotValuesName.s
    TargetSnapshotValuesResourceARN.s
    SnapshotId.s
    TargetSnapshotValuesVolumeId.s
    TargetVolumeValues.s
    k.i
    count_k.i
    strVal.s
    Key.s
    Value.s
    Clients.s
    json1.i
    i1.i
    count_i1.i
    Id.i
    v_Type.s

    NextToken.s = CkJsonObject::ckStringOf(jResp,"NextToken")
    i.i = 0
    count_i.i = CkJsonObject::ckSizeOfArray(jResp,"Volumes")
    While i < count_i
        CkJsonObject::setCkI(jResp, i)
        CreationTime = CkJsonObject::ckIntOf(jResp,"Volumes[i].CreationTime")
        FileSystemId = CkJsonObject::ckStringOf(jResp,"Volumes[i].FileSystemId")
        Lifecycle = CkJsonObject::ckStringOf(jResp,"Volumes[i].Lifecycle")
        Message = CkJsonObject::ckStringOf(jResp,"Volumes[i].LifecycleTransitionReason.Message")
        Name = CkJsonObject::ckStringOf(jResp,"Volumes[i].Name")
        FlexCacheEndpointType = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.FlexCacheEndpointType")
        JunctionPath = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.JunctionPath")
        OntapVolumeType = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.OntapVolumeType")
        SecurityStyle = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.SecurityStyle")
        SizeInMegabytes = CkJsonObject::ckIntOf(jResp,"Volumes[i].OntapConfiguration.SizeInMegabytes")
        StorageEfficiencyEnabled = CkJsonObject::ckIntOf(jResp,"Volumes[i].OntapConfiguration.StorageEfficiencyEnabled")
        StorageVirtualMachineId = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.StorageVirtualMachineId")
        StorageVirtualMachineRoot = CkJsonObject::ckIntOf(jResp,"Volumes[i].OntapConfiguration.StorageVirtualMachineRoot")
        CoolingPeriod = CkJsonObject::ckIntOf(jResp,"Volumes[i].OntapConfiguration.TieringPolicy.CoolingPeriod")
        TieringPolicyName = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.TieringPolicy.Name")
        UUID = CkJsonObject::ckStringOf(jResp,"Volumes[i].OntapConfiguration.UUID")
        CopyTagsToSnapshots = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.CopyTagsToSnapshots")
        DataCompressionType = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.DataCompressionType")
        CopyStrategy = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
        SnapshotARN = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
        ParentVolumeId = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.ParentVolumeId")
        ReadOnly = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.ReadOnly")
        RecordSizeKiB = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.RecordSizeKiB")
        StorageCapacityQuotaGiB = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.StorageCapacityQuotaGiB")
        StorageCapacityReservationGiB = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.StorageCapacityReservationGiB")
        VolumePath = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.VolumePath")
        ResourceARN = CkJsonObject::ckStringOf(jResp,"Volumes[i].ResourceARN")
        VolumeId = CkJsonObject::ckStringOf(jResp,"Volumes[i].VolumeId")
        VolumeType = CkJsonObject::ckStringOf(jResp,"Volumes[i].VolumeType")
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            AdministrativeActionType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].AdministrativeActionType")
            FailureDetailsMessage = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].FailureDetails.Message")
            ProgressPercent = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].ProgressPercent")
            RequestTime = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].RequestTime")
            Status = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].Status")
            TargetFileSystemValuesCreationTime = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.CreationTime")
            DNSName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.DNSName")
            FailureDetailsMessage = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.FailureDetails.Message")
            TargetFileSystemValuesFileSystemId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.FileSystemId")
            FileSystemType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.FileSystemType")
            FileSystemTypeVersion = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.FileSystemTypeVersion")
            KmsKeyId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.KmsKeyId")
            TargetFileSystemValuesLifecycle = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.Lifecycle")
            AutomaticBackupRetentionDays = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.AutomaticBackupRetentionDays")
            CopyTagsToBackups = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.CopyTagsToBackups")
            DailyAutomaticBackupStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DailyAutomaticBackupStartTime")
            LustreConfigurationDataCompressionType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataCompressionType")
            AutoImportPolicy = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
            ExportPath = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
            FailureDetailsMessage = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
            ImportedFileChunkSize = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize")
            ImportPath = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
            DataRepositoryConfigurationLifecycle = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
            DeploymentType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DeploymentType")
            DriveCacheType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.DriveCacheType")
            Destination = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Destination")
            Level = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Level")
            MountName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.MountName")
            PerUnitStorageThroughput = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.PerUnitStorageThroughput")
            WeeklyMaintenanceStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.LustreConfiguration.WeeklyMaintenanceStartTime")
            OntapConfigurationAutomaticBackupRetentionDays = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.AutomaticBackupRetentionDays")
            OntapConfigurationDailyAutomaticBackupStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.DailyAutomaticBackupStartTime")
            OntapConfigurationDeploymentType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.DeploymentType")
            Iops = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Iops")
            Mode = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Mode")
            EndpointIpAddressRange = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.EndpointIpAddressRange")
            InterclusterDNSName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.DNSName")
            ManagementDNSName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.DNSName")
            PreferredSubnetId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.PreferredSubnetId")
            ThroughputCapacity = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.ThroughputCapacity")
            OntapConfigurationWeeklyMaintenanceStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.WeeklyMaintenanceStartTime")
            OpenZFSConfigurationAutomaticBackupRetentionDays = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.AutomaticBackupRetentionDays")
            OpenZFSConfigurationCopyTagsToBackups = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToBackups")
            CopyTagsToVolumes = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToVolumes")
            OpenZFSConfigurationDailyAutomaticBackupStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
            OpenZFSConfigurationDeploymentType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.DeploymentType")
            DiskIopsConfigurationIops = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Iops")
            DiskIopsConfigurationMode = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
            RootVolumeId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.RootVolumeId")
            OpenZFSConfigurationThroughputCapacity = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.ThroughputCapacity")
            OpenZFSConfigurationWeeklyMaintenanceStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
            OwnerId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OwnerId")
            TargetFileSystemValuesResourceARN = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.ResourceARN")
            StorageCapacity = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.StorageCapacity")
            StorageType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.StorageType")
            VpcId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.VpcId")
            ActiveDirectoryId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.ActiveDirectoryId")
            AuditLogDestination = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
            FileAccessAuditLogLevel = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
            FileShareAccessAuditLogLevel = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
            WindowsConfigurationAutomaticBackupRetentionDays = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.AutomaticBackupRetentionDays")
            WindowsConfigurationCopyTagsToBackups = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.CopyTagsToBackups")
            WindowsConfigurationDailyAutomaticBackupStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.DailyAutomaticBackupStartTime")
            WindowsConfigurationDeploymentType = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.DeploymentType")
            PreferredFileServerIp = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.PreferredFileServerIp")
            WindowsConfigurationPreferredSubnetId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.PreferredSubnetId")
            RemoteAdministrationEndpoint = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.RemoteAdministrationEndpoint")
            DomainName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
            FileSystemAdministratorsGroup = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
            OrganizationalUnitDistinguishedName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
            UserName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
            WindowsConfigurationThroughputCapacity = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.ThroughputCapacity")
            WindowsConfigurationWeeklyMaintenanceStartTime = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.WeeklyMaintenanceStartTime")
            TargetSnapshotValuesCreationTime = CkJsonObject::ckIntOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.CreationTime")
            TargetSnapshotValuesLifecycle = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.Lifecycle")
            LifecycleTransitionReasonMessage = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.LifecycleTransitionReason.Message")
            TargetSnapshotValuesName = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.Name")
            TargetSnapshotValuesResourceARN = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.ResourceARN")
            SnapshotId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.SnapshotId")
            TargetSnapshotValuesVolumeId = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.VolumeId")
            TargetVolumeValues = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetVolumeValues")
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.AdministrativeActions")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.AdministrativeActions[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.NetworkInterfaceIds")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.NetworkInterfaceIds[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.RouteTableIds")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.RouteTableIds[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.SubnetIds")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.SubnetIds[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.Tags")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                Key = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.Tags[k].Key")
                Value = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.Tags[k].Value")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                Lifecycle = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases[k].Lifecycle")
                Name = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases[k].Name")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.AdministrativeActions")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                strVal = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.AdministrativeActions[k]")
                k = k + 1
            Wend
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.Tags")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                Key = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Key")
                Value = CkJsonObject::ckStringOf(jResp,"Volumes[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Value")
                k = k + 1
            Wend
            j = j + 1
        Wend
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].OpenZFSConfiguration.NfsExports")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].OpenZFSConfiguration.NfsExports[j].ClientConfigurations")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                Clients = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients")

                json1 = CkJsonObject::ckObjectOf(jResp,"Volumes[i].OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]")
                i1 = 0
                count_i1 = CkJsonObject::ckSizeOfArray(json1,"Options")
                While i1 < count_i1
                    CkJsonObject::setCkI(json1, i1)
                    strVal = CkJsonObject::ckStringOf(json1,"Options[i]")
                    i1 = i1 + 1
                Wend
                CkJsonObject::ckDispose(json1)

                k = k + 1
            Wend
            j = j + 1
        Wend
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].OpenZFSConfiguration.UserAndGroupQuotas")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            Id = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.UserAndGroupQuotas[j].Id")
            StorageCapacityQuotaGiB = CkJsonObject::ckIntOf(jResp,"Volumes[i].OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB")
            v_Type = CkJsonObject::ckStringOf(jResp,"Volumes[i].OpenZFSConfiguration.UserAndGroupQuotas[j].Type")
            j = j + 1
        Wend
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"Volumes[i].Tags")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            Key = CkJsonObject::ckStringOf(jResp,"Volumes[i].Tags[j].Key")
            Value = CkJsonObject::ckStringOf(jResp,"Volumes[i].Tags[j].Value")
            j = j + 1
        Wend
        i = i + 1
    Wend

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

    ; {
    ;   "NextToken": "string",
    ;   "Volumes": [
    ;     {
    ;       "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::ckDispose(rest)
    CkAuthAws::ckDispose(authAws)
    CkJsonObject::ckDispose(json)
    CkStringBuilder::ckDispose(sbRequestBody)
    CkStringBuilder::ckDispose(sbResponseBody)
    CkJsonObject::ckDispose(jResp)


    ProcedureReturn
EndProcedure