Chilkat Online Tools

DescribeFileSystems unicodeC Example

Amazon FSx

#include <C_CkRestW.h>
#include <C_CkAuthAwsW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkRestW rest;
    BOOL success;
    HCkAuthAwsW authAws;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkStringBuilderW sbResponseBody;
    int respStatusCode;
    HCkJsonObjectW jResp;
    int CreationTime;
    const wchar_t *DNSName;
    const wchar_t *Message;
    const wchar_t *FileSystemId;
    const wchar_t *FileSystemType;
    const wchar_t *FileSystemTypeVersion;
    const wchar_t *KmsKeyId;
    const wchar_t *Lifecycle;
    int AutomaticBackupRetentionDays;
    int CopyTagsToBackups;
    const wchar_t *DailyAutomaticBackupStartTime;
    const wchar_t *DataCompressionType;
    const wchar_t *AutoImportPolicy;
    const wchar_t *ExportPath;
    const wchar_t *FailureDetailsMessage;
    int ImportedFileChunkSize;
    const wchar_t *ImportPath;
    const wchar_t *DataRepositoryConfigurationLifecycle;
    const wchar_t *DeploymentType;
    const wchar_t *DriveCacheType;
    const wchar_t *Destination;
    const wchar_t *Level;
    const wchar_t *MountName;
    int PerUnitStorageThroughput;
    const wchar_t *WeeklyMaintenanceStartTime;
    int OntapConfigurationAutomaticBackupRetentionDays;
    const wchar_t *OntapConfigurationDailyAutomaticBackupStartTime;
    const wchar_t *OntapConfigurationDeploymentType;
    int Iops;
    const wchar_t *Mode;
    const wchar_t *EndpointIpAddressRange;
    const wchar_t *InterclusterDNSName;
    const wchar_t *ManagementDNSName;
    const wchar_t *PreferredSubnetId;
    int ThroughputCapacity;
    const wchar_t *OntapConfigurationWeeklyMaintenanceStartTime;
    int OpenZFSConfigurationAutomaticBackupRetentionDays;
    int OpenZFSConfigurationCopyTagsToBackups;
    int CopyTagsToVolumes;
    const wchar_t *OpenZFSConfigurationDailyAutomaticBackupStartTime;
    const wchar_t *OpenZFSConfigurationDeploymentType;
    int DiskIopsConfigurationIops;
    const wchar_t *DiskIopsConfigurationMode;
    const wchar_t *RootVolumeId;
    int OpenZFSConfigurationThroughputCapacity;
    const wchar_t *OpenZFSConfigurationWeeklyMaintenanceStartTime;
    const wchar_t *OwnerId;
    const wchar_t *ResourceARN;
    int StorageCapacity;
    const wchar_t *StorageType;
    const wchar_t *VpcId;
    const wchar_t *ActiveDirectoryId;
    const wchar_t *AuditLogDestination;
    const wchar_t *FileAccessAuditLogLevel;
    const wchar_t *FileShareAccessAuditLogLevel;
    int WindowsConfigurationAutomaticBackupRetentionDays;
    int WindowsConfigurationCopyTagsToBackups;
    const wchar_t *WindowsConfigurationDailyAutomaticBackupStartTime;
    const wchar_t *WindowsConfigurationDeploymentType;
    const wchar_t *PreferredFileServerIp;
    const wchar_t *WindowsConfigurationPreferredSubnetId;
    const wchar_t *RemoteAdministrationEndpoint;
    const wchar_t *DomainName;
    const wchar_t *FileSystemAdministratorsGroup;
    const wchar_t *OrganizationalUnitDistinguishedName;
    const wchar_t *UserName;
    int WindowsConfigurationThroughputCapacity;
    const wchar_t *WindowsConfigurationWeeklyMaintenanceStartTime;
    int j;
    int count_j;
    const wchar_t *AdministrativeActionType;
    int ProgressPercent;
    int RequestTime;
    const wchar_t *Status;
    const wchar_t *TargetFileSystemValues;
    int TargetSnapshotValuesCreationTime;
    const wchar_t *TargetSnapshotValuesLifecycle;
    const wchar_t *LifecycleTransitionReasonMessage;
    const wchar_t *Name;
    const wchar_t *TargetSnapshotValuesResourceARN;
    const wchar_t *SnapshotId;
    const wchar_t *VolumeId;
    int TargetVolumeValuesCreationTime;
    const wchar_t *TargetVolumeValuesFileSystemId;
    const wchar_t *TargetVolumeValuesLifecycle;
    const wchar_t *TargetVolumeValuesName;
    const wchar_t *FlexCacheEndpointType;
    const wchar_t *JunctionPath;
    const wchar_t *OntapVolumeType;
    const wchar_t *SecurityStyle;
    int SizeInMegabytes;
    int StorageEfficiencyEnabled;
    const wchar_t *StorageVirtualMachineId;
    int StorageVirtualMachineRoot;
    int CoolingPeriod;
    const wchar_t *TieringPolicyName;
    const wchar_t *UUID;
    int CopyTagsToSnapshots;
    const wchar_t *OpenZFSConfigurationDataCompressionType;
    const wchar_t *CopyStrategy;
    const wchar_t *SnapshotARN;
    const wchar_t *ParentVolumeId;
    int ReadOnly;
    int RecordSizeKiB;
    int StorageCapacityQuotaGiB;
    int StorageCapacityReservationGiB;
    const wchar_t *VolumePath;
    const wchar_t *TargetVolumeValuesResourceARN;
    const wchar_t *TargetVolumeValuesVolumeId;
    const wchar_t *VolumeType;
    int k;
    int count_k;
    const wchar_t *strVal;
    const wchar_t *Key;
    const wchar_t *Value;
    HCkJsonObjectW json1;
    int i1;
    int count_i1;
    const wchar_t *Clients;
    int j1;
    int count_j1;
    int Id;
    const wchar_t *v_Type;
    const wchar_t *NextToken;
    int i;
    int count_i;

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

    rest = CkRestW_Create();

    authAws = CkAuthAwsW_Create();
    CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY");
    CkAuthAwsW_putSecretKey(authAws,L"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.)
    CkAuthAwsW_putRegion(authAws,L"us-west-2");
    CkAuthAwsW_putServiceName(authAws,L"fsx");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://fsx.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"fsx.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        return;
    }

    // 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 = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"FileSystemIds[0]",L"string");
    CkJsonObjectW_UpdateInt(json,L"MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"NextToken",L"string");

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

    // {
    //   "FileSystemIds": [
    //     "string"
    //   ],
    //   "MaxResults": number,
    //   "NextToken": "string"
    // }

    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");
    CkRestW_AddHeader(rest,L"X-Amz-Target",L"AWSSimbaAPIService_v20180301.DescribeFileSystems");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRestW_getResponseStatusCode(rest);
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkRestW_responseHeader(rest));
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
    // See this example explaining how this memory should be used: const char * functions.

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

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Key = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Key");
                Value = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Value");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.AdministrativeActions");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.AdministrativeActions[k]");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.NfsExports");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);

                json1 = CkJsonObjectW_ObjectOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.NfsExports[k]");
                i1 = 0;
                count_i1 = CkJsonObjectW_SizeOfArray(json1,L"ClientConfigurations");
                while (i1 < count_i1) {
                    CkJsonObjectW_putI(json1,i1);
                    Clients = CkJsonObjectW_stringOf(json1,L"ClientConfigurations[i].Clients");
                    j1 = 0;
                    count_j1 = CkJsonObjectW_SizeOfArray(json1,L"ClientConfigurations[i].Options");
                    while (j1 < count_j1) {
                        CkJsonObjectW_putJ(json1,j1);
                        strVal = CkJsonObjectW_stringOf(json1,L"ClientConfigurations[i].Options[j]");
                        j1 = j1 + 1;
                    }

                    i1 = i1 + 1;
                }

                CkJsonObjectW_Dispose(json1);
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Id = CkJsonObjectW_IntOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Id");
                StorageCapacityQuotaGiB = CkJsonObjectW_IntOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].StorageCapacityQuotaGiB");
                v_Type = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Type");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Key = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags[k].Key");
                Value = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags[k].Value");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].NetworkInterfaceIds");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].NetworkInterfaceIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].OntapConfiguration.Endpoints.Intercluster.IpAddresses");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].OntapConfiguration.Endpoints.Management.IpAddresses");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].OntapConfiguration.Endpoints.Management.IpAddresses[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].OntapConfiguration.RouteTableIds");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].OntapConfiguration.RouteTableIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].SubnetIds");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].SubnetIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].Tags");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Key = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].Tags[j].Key");
            Value = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].Tags[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].WindowsConfiguration.Aliases");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Lifecycle = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].WindowsConfiguration.Aliases[j].Lifecycle");
            Name = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].WindowsConfiguration.Aliases[j].Name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].WindowsConfiguration.MaintenanceOperationsInProgress");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].WindowsConfiguration.MaintenanceOperationsInProgress[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"FileSystems[i].WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"FileSystems[i].WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[j]");
            j = j + 1;
        }

        i = i + 1;
    }

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

    // {
    //   "FileSystems": [
    //     {
    //       "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"
    //       }
    //     }
    //   ],
    //   "NextToken": "string"
    // }


    CkRestW_Dispose(rest);
    CkAuthAwsW_Dispose(authAws);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }