Chilkat Online Tools

DescribeSnapshots 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 *Lifecycle;
    const wchar_t *Message;
    const wchar_t *Name;
    const wchar_t *ResourceARN;
    const wchar_t *SnapshotId;
    const wchar_t *VolumeId;
    int j;
    int count_j;
    const wchar_t *AdministrativeActionType;
    const wchar_t *FailureDetailsMessage;
    int ProgressPercent;
    int RequestTime;
    const wchar_t *Status;
    int TargetFileSystemValuesCreationTime;
    const wchar_t *DNSName;
    const wchar_t *FileSystemId;
    const wchar_t *FileSystemType;
    const wchar_t *FileSystemTypeVersion;
    const wchar_t *KmsKeyId;
    const wchar_t *TargetFileSystemValuesLifecycle;
    int AutomaticBackupRetentionDays;
    int CopyTagsToBackups;
    const wchar_t *DailyAutomaticBackupStartTime;
    const wchar_t *DataCompressionType;
    const wchar_t *AutoImportPolicy;
    const wchar_t *ExportPath;
    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 *TargetFileSystemValuesResourceARN;
    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;
    const wchar_t *TargetSnapshotValues;
    int TargetVolumeValuesCreationTime;
    const wchar_t *TargetVolumeValuesFileSystemId;
    const wchar_t *TargetVolumeValuesLifecycle;
    const wchar_t *LifecycleTransitionReasonMessage;
    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"Filters[0].Name",L"string");
    CkJsonObjectW_UpdateString(json,L"Filters[0].Values[0]",L"string");
    CkJsonObjectW_UpdateInt(json,L"MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"SnapshotIds[0]",L"string");

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

    // {
    //   "Filters": [
    //     {
    //       "Name": "string",
    //       "Values": [
    //         "string"
    //       ]
    //     }
    //   ],
    //   "MaxResults": number,
    //   "NextToken": "string",
    //   "SnapshotIds": [
    //     "string"
    //   ]
    // }

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

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

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

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[k]");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[k]");
                k = k + 1;
            }

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

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

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

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Lifecycle = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases[k].Lifecycle");
                Name = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.Aliases[k].Name");
                k = k + 1;
            }

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

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[k]");
                k = k + 1;
            }

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

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

                json1 = CkJsonObjectW_ObjectOf(jResp,L"Snapshots[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"Snapshots[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Id = CkJsonObjectW_IntOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Id");
                StorageCapacityQuotaGiB = CkJsonObjectW_IntOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].StorageCapacityQuotaGiB");
                v_Type = CkJsonObjectW_stringOf(jResp,L"Snapshots[i].AdministrativeActions[j].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[k].Type");
                k = k + 1;
            }

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

            j = j + 1;
        }

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

        i = i + 1;
    }

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

    // {
    //   "NextToken": "string",
    //   "Snapshots": [
    //     {
    //       "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": "Snapshot",
    //           "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,
    //       "Lifecycle": "string",
    //       "LifecycleTransitionReason": {
    //         "Message": "string"
    //       },
    //       "Name": "string",
    //       "ResourceARN": "string",
    //       "SnapshotId": "string",
    //       "Tags": [
    //         {
    //           "Key": "string",
    //           "Value": "string"
    //         }
    //       ],
    //       "VolumeId": "string"
    //     }
    //   ]
    // }


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

    }