Chilkat Online Tools

UpdateSnapshot 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;
    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 j;
    int count_j;
    const wchar_t *strVal;
    const wchar_t *Key;
    const wchar_t *Value;
    int k;
    int count_k;
    const wchar_t *Clients;
    HCkJsonObjectW json1;
    int i1;
    int count_i1;
    int Id;
    const wchar_t *v_Type;
    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 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"ClientRequestToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Name",L"string");
    CkJsonObjectW_UpdateString(json,L"SnapshotId",L"string");

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

    // {
    //   "ClientRequestToken": "string",
    //   "Name": "string",
    //   "SnapshotId": "string"
    // }

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

    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.

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

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

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

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

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

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

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

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

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

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

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

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Snapshot.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Snapshot.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                Clients = CkJsonObjectW_stringOf(jResp,L"Snapshot.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients");

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

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

            j = j + 1;
        }

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

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

        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"Snapshot.Tags");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        Key = CkJsonObjectW_stringOf(jResp,L"Snapshot.Tags[i].Key");
        Value = CkJsonObjectW_stringOf(jResp,L"Snapshot.Tags[i].Value");
        i = i + 1;
    }

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

    // {
    //   "Snapshot": {
    //     "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);

    }