Chilkat Online Tools

DescribeFileSystems C Example

Amazon FSx

#include <C_CkRest.h>
#include <C_CkAuthAws.h>
#include <C_CkJsonObject.h>
#include <C_CkStringBuilder.h>

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

    authAws = CkAuthAws_Create();
    CkAuthAws_putAccessKey(authAws,"AWS_ACCESS_KEY");
    CkAuthAws_putSecretKey(authAws,"AWS_SECRET_KEY");

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

    // URL: https://fsx.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRest_Connect(rest,"fsx.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        printf("ConnectFailReason: %d\n",CkRest_getConnectFailReason(rest));
        printf("%s\n",CkRest_lastErrorText(rest));
        CkRest_Dispose(rest);
        CkAuthAws_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 = CkJsonObject_Create();
    CkJsonObject_UpdateString(json,"FileSystemIds[0]","string");
    CkJsonObject_UpdateInt(json,"MaxResults",123);
    CkJsonObject_UpdateString(json,"NextToken","string");

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

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

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

    sbRequestBody = CkStringBuilder_Create();
    CkJsonObject_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilder_Create();
    success = CkRest_FullRequestSb(rest,"POST","/",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        printf("%s\n",CkRest_lastErrorText(rest));
        CkRest_Dispose(rest);
        CkAuthAws_Dispose(authAws);
        CkJsonObject_Dispose(json);
        CkStringBuilder_Dispose(sbRequestBody);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRest_getResponseStatusCode(rest);
    printf("response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        printf("Response Header:\n");
        printf("%s\n",CkRest_responseHeader(rest));
        printf("Response Body:\n");
        printf("%s\n",CkStringBuilder_getAsString(sbResponseBody));
        CkRest_Dispose(rest);
        CkAuthAws_Dispose(authAws);
        CkJsonObject_Dispose(json);
        CkStringBuilder_Dispose(sbRequestBody);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

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

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

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

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

            k = 0;
            count_k = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags");
            while (k < count_k) {
                CkJsonObject_putK(jResp,k);
                Key = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Key");
                Value = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetSnapshotValues.Tags[k].Value");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.AdministrativeActions");
            while (k < count_k) {
                CkJsonObject_putK(jResp,k);
                strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.AdministrativeActions[k]");
                k = k + 1;
            }

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

                json1 = CkJsonObject_ObjectOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.NfsExports[k]");
                i1 = 0;
                count_i1 = CkJsonObject_SizeOfArray(json1,"ClientConfigurations");
                while (i1 < count_i1) {
                    CkJsonObject_putI(json1,i1);
                    Clients = CkJsonObject_stringOf(json1,"ClientConfigurations[i].Clients");
                    j1 = 0;
                    count_j1 = CkJsonObject_SizeOfArray(json1,"ClientConfigurations[i].Options");
                    while (j1 < count_j1) {
                        CkJsonObject_putJ(json1,j1);
                        strVal = CkJsonObject_stringOf(json1,"ClientConfigurations[i].Options[j]");
                        j1 = j1 + 1;
                    }

                    i1 = i1 + 1;
                }

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

            k = 0;
            count_k = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas");
            while (k < count_k) {
                CkJsonObject_putK(jResp,k);
                Id = CkJsonObject_IntOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Id");
                StorageCapacityQuotaGiB = CkJsonObject_IntOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].StorageCapacityQuotaGiB");
                v_Type = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Type");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags");
            while (k < count_k) {
                CkJsonObject_putK(jResp,k);
                Key = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags[k].Key");
                Value = CkJsonObject_stringOf(jResp,"FileSystems[i].AdministrativeActions[j].TargetVolumeValues.Tags[k].Value");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].NetworkInterfaceIds");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].NetworkInterfaceIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].OntapConfiguration.Endpoints.Intercluster.IpAddresses");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].OntapConfiguration.Endpoints.Management.IpAddresses");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].OntapConfiguration.Endpoints.Management.IpAddresses[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].OntapConfiguration.RouteTableIds");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].OntapConfiguration.RouteTableIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].SubnetIds");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].SubnetIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].Tags");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            Key = CkJsonObject_stringOf(jResp,"FileSystems[i].Tags[j].Key");
            Value = CkJsonObject_stringOf(jResp,"FileSystems[i].Tags[j].Value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].WindowsConfiguration.Aliases");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            Lifecycle = CkJsonObject_stringOf(jResp,"FileSystems[i].WindowsConfiguration.Aliases[j].Lifecycle");
            Name = CkJsonObject_stringOf(jResp,"FileSystems[i].WindowsConfiguration.Aliases[j].Name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].WindowsConfiguration.MaintenanceOperationsInProgress");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"FileSystems[i].WindowsConfiguration.MaintenanceOperationsInProgress[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"FileSystems[i].WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            strVal = CkJsonObject_stringOf(jResp,"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"
    // }


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

    }