UpdateFileSystem unicodeCpp Example
#include <CkRestW.h>
#include <CkAuthAwsW.h>
#include <CkJsonObjectW.h>
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkRestW rest;
bool success;
CkAuthAwsW authAws;
authAws.put_AccessKey(L"AWS_ACCESS_KEY");
authAws.put_SecretKey(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.)
authAws.put_Region(L"us-west-2");
authAws.put_ServiceName(L"fsx");
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
rest.SetAuthAws(authAws);
// URL: https://fsx.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.Connect(L"fsx.us-west-2.amazonaws.com",443,true,true);
if (success != true) {
wprintf(L"ConnectFailReason: %d\n",rest.get_ConnectFailReason());
wprintf(L"%s\n",rest.lastErrorText());
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
CkJsonObjectW json;
json.UpdateString(L"ClientRequestToken",L"string");
json.UpdateString(L"FileSystemId",L"string");
json.UpdateString(L"LustreConfiguration.AutoImportPolicy",L"string");
json.UpdateInt(L"LustreConfiguration.AutomaticBackupRetentionDays",123);
json.UpdateString(L"LustreConfiguration.DailyAutomaticBackupStartTime",L"string");
json.UpdateString(L"LustreConfiguration.DataCompressionType",L"string");
json.UpdateString(L"LustreConfiguration.LogConfiguration.Destination",L"string");
json.UpdateString(L"LustreConfiguration.LogConfiguration.Level",L"string");
json.UpdateString(L"LustreConfiguration.WeeklyMaintenanceStartTime",L"string");
json.UpdateInt(L"OntapConfiguration.AutomaticBackupRetentionDays",123);
json.UpdateString(L"OntapConfiguration.DailyAutomaticBackupStartTime",L"string");
json.UpdateInt(L"OntapConfiguration.DiskIopsConfiguration.Iops",123);
json.UpdateString(L"OntapConfiguration.DiskIopsConfiguration.Mode",L"string");
json.UpdateString(L"OntapConfiguration.FsxAdminPassword",L"string");
json.UpdateInt(L"OntapConfiguration.ThroughputCapacity",123);
json.UpdateString(L"OntapConfiguration.WeeklyMaintenanceStartTime",L"string");
json.UpdateInt(L"OpenZFSConfiguration.AutomaticBackupRetentionDays",123);
json.UpdateInt(L"OpenZFSConfiguration.CopyTagsToBackups",123);
json.UpdateInt(L"OpenZFSConfiguration.CopyTagsToVolumes",123);
json.UpdateString(L"OpenZFSConfiguration.DailyAutomaticBackupStartTime",L"string");
json.UpdateInt(L"OpenZFSConfiguration.DiskIopsConfiguration.Iops",123);
json.UpdateString(L"OpenZFSConfiguration.DiskIopsConfiguration.Mode",L"string");
json.UpdateInt(L"OpenZFSConfiguration.ThroughputCapacity",123);
json.UpdateString(L"OpenZFSConfiguration.WeeklyMaintenanceStartTime",L"string");
json.UpdateInt(L"StorageCapacity",123);
json.UpdateString(L"WindowsConfiguration.AuditLogConfiguration.AuditLogDestination",L"string");
json.UpdateString(L"WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel",L"string");
json.UpdateString(L"WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel",L"string");
json.UpdateInt(L"WindowsConfiguration.AutomaticBackupRetentionDays",123);
json.UpdateString(L"WindowsConfiguration.DailyAutomaticBackupStartTime",L"string");
json.UpdateString(L"WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[0]",L"string");
json.UpdateString(L"WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.Password",L"string");
json.UpdateString(L"WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName",L"string");
json.UpdateInt(L"WindowsConfiguration.ThroughputCapacity",123);
json.UpdateString(L"WindowsConfiguration.WeeklyMaintenanceStartTime",L"string");
// The JSON request body created by the above code:
// {
// "ClientRequestToken": "string",
// "FileSystemId": "string",
// "LustreConfiguration": {
// "AutoImportPolicy": "string",
// "AutomaticBackupRetentionDays": number,
// "DailyAutomaticBackupStartTime": "string",
// "DataCompressionType": "string",
// "LogConfiguration": {
// "Destination": "string",
// "Level": "string"
// },
// "WeeklyMaintenanceStartTime": "string"
// },
// "OntapConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "DailyAutomaticBackupStartTime": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "FsxAdminPassword": "string",
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OpenZFSConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "CopyTagsToVolumes": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "StorageCapacity": number,
// "WindowsConfiguration": {
// "AuditLogConfiguration": {
// "AuditLogDestination": "string",
// "FileAccessAuditLogLevel": "string",
// "FileShareAccessAuditLogLevel": "string"
// },
// "AutomaticBackupRetentionDays": number,
// "DailyAutomaticBackupStartTime": "string",
// "SelfManagedActiveDirectoryConfiguration": {
// "DnsIps": [
// "string"
// ],
// "Password": "string",
// "UserName": "string"
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// }
// }
rest.AddHeader(L"Content-Type",L"application/x-amz-json-1.1");
rest.AddHeader(L"X-Amz-Target",L"AWSSimbaAPIService_v20180301.UpdateFileSystem");
CkStringBuilderW sbRequestBody;
json.EmitSb(sbRequestBody);
CkStringBuilderW sbResponseBody;
success = rest.FullRequestSb(L"POST",L"/",sbRequestBody,sbResponseBody);
if (success != true) {
wprintf(L"%s\n",rest.lastErrorText());
return;
}
int respStatusCode = rest.get_ResponseStatusCode();
wprintf(L"response status code = %d\n",respStatusCode);
if (respStatusCode != 200) {
wprintf(L"Response Header:\n");
wprintf(L"%s\n",rest.responseHeader());
wprintf(L"Response Body:\n");
wprintf(L"%s\n",sbResponseBody.getAsString());
return;
}
CkJsonObjectW jResp;
jResp.LoadSb(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.
const wchar_t *AdministrativeActionType = 0;
int ProgressPercent;
int RequestTime;
const wchar_t *Status = 0;
const wchar_t *TargetFileSystemValues = 0;
int TargetSnapshotValuesCreationTime;
const wchar_t *TargetSnapshotValuesLifecycle = 0;
const wchar_t *LifecycleTransitionReasonMessage = 0;
const wchar_t *Name = 0;
const wchar_t *TargetSnapshotValuesResourceARN = 0;
const wchar_t *SnapshotId = 0;
const wchar_t *VolumeId = 0;
int TargetVolumeValuesCreationTime;
const wchar_t *TargetVolumeValuesFileSystemId = 0;
const wchar_t *TargetVolumeValuesLifecycle = 0;
const wchar_t *TargetVolumeValuesName = 0;
const wchar_t *FlexCacheEndpointType = 0;
const wchar_t *JunctionPath = 0;
const wchar_t *OntapVolumeType = 0;
const wchar_t *SecurityStyle = 0;
int SizeInMegabytes;
int StorageEfficiencyEnabled;
const wchar_t *StorageVirtualMachineId = 0;
int StorageVirtualMachineRoot;
int CoolingPeriod;
const wchar_t *TieringPolicyName = 0;
const wchar_t *UUID = 0;
int CopyTagsToSnapshots;
const wchar_t *OpenZFSConfigurationDataCompressionType = 0;
const wchar_t *CopyStrategy = 0;
const wchar_t *SnapshotARN = 0;
const wchar_t *ParentVolumeId = 0;
int ReadOnly;
int RecordSizeKiB;
int StorageCapacityQuotaGiB;
int StorageCapacityReservationGiB;
const wchar_t *VolumePath = 0;
const wchar_t *TargetVolumeValuesResourceARN = 0;
const wchar_t *TargetVolumeValuesVolumeId = 0;
const wchar_t *VolumeType = 0;
int j;
int count_j;
const wchar_t *strVal = 0;
const wchar_t *Key = 0;
const wchar_t *Value = 0;
int k;
int count_k;
const wchar_t *Clients = 0;
CkJsonObjectW *json1 = 0;
int i1;
int count_i1;
int Id;
const wchar_t *v_Type = 0;
int CreationTime = jResp.IntOf(L"FileSystem.CreationTime");
const wchar_t *DNSName = jResp.stringOf(L"FileSystem.DNSName");
const wchar_t *Message = jResp.stringOf(L"FileSystem.FailureDetails.Message");
const wchar_t *FileSystemId = jResp.stringOf(L"FileSystem.FileSystemId");
const wchar_t *FileSystemType = jResp.stringOf(L"FileSystem.FileSystemType");
const wchar_t *FileSystemTypeVersion = jResp.stringOf(L"FileSystem.FileSystemTypeVersion");
const wchar_t *KmsKeyId = jResp.stringOf(L"FileSystem.KmsKeyId");
const wchar_t *Lifecycle = jResp.stringOf(L"FileSystem.Lifecycle");
int AutomaticBackupRetentionDays = jResp.IntOf(L"FileSystem.LustreConfiguration.AutomaticBackupRetentionDays");
int CopyTagsToBackups = jResp.IntOf(L"FileSystem.LustreConfiguration.CopyTagsToBackups");
const wchar_t *DailyAutomaticBackupStartTime = jResp.stringOf(L"FileSystem.LustreConfiguration.DailyAutomaticBackupStartTime");
const wchar_t *DataCompressionType = jResp.stringOf(L"FileSystem.LustreConfiguration.DataCompressionType");
const wchar_t *AutoImportPolicy = jResp.stringOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy");
const wchar_t *ExportPath = jResp.stringOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.ExportPath");
const wchar_t *FailureDetailsMessage = jResp.stringOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message");
int ImportedFileChunkSize = jResp.IntOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize");
const wchar_t *ImportPath = jResp.stringOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportPath");
const wchar_t *DataRepositoryConfigurationLifecycle = jResp.stringOf(L"FileSystem.LustreConfiguration.DataRepositoryConfiguration.Lifecycle");
const wchar_t *DeploymentType = jResp.stringOf(L"FileSystem.LustreConfiguration.DeploymentType");
const wchar_t *DriveCacheType = jResp.stringOf(L"FileSystem.LustreConfiguration.DriveCacheType");
const wchar_t *Destination = jResp.stringOf(L"FileSystem.LustreConfiguration.LogConfiguration.Destination");
const wchar_t *Level = jResp.stringOf(L"FileSystem.LustreConfiguration.LogConfiguration.Level");
const wchar_t *MountName = jResp.stringOf(L"FileSystem.LustreConfiguration.MountName");
int PerUnitStorageThroughput = jResp.IntOf(L"FileSystem.LustreConfiguration.PerUnitStorageThroughput");
const wchar_t *WeeklyMaintenanceStartTime = jResp.stringOf(L"FileSystem.LustreConfiguration.WeeklyMaintenanceStartTime");
int OntapConfigurationAutomaticBackupRetentionDays = jResp.IntOf(L"FileSystem.OntapConfiguration.AutomaticBackupRetentionDays");
const wchar_t *OntapConfigurationDailyAutomaticBackupStartTime = jResp.stringOf(L"FileSystem.OntapConfiguration.DailyAutomaticBackupStartTime");
const wchar_t *OntapConfigurationDeploymentType = jResp.stringOf(L"FileSystem.OntapConfiguration.DeploymentType");
int Iops = jResp.IntOf(L"FileSystem.OntapConfiguration.DiskIopsConfiguration.Iops");
const wchar_t *Mode = jResp.stringOf(L"FileSystem.OntapConfiguration.DiskIopsConfiguration.Mode");
const wchar_t *EndpointIpAddressRange = jResp.stringOf(L"FileSystem.OntapConfiguration.EndpointIpAddressRange");
const wchar_t *InterclusterDNSName = jResp.stringOf(L"FileSystem.OntapConfiguration.Endpoints.Intercluster.DNSName");
const wchar_t *ManagementDNSName = jResp.stringOf(L"FileSystem.OntapConfiguration.Endpoints.Management.DNSName");
const wchar_t *PreferredSubnetId = jResp.stringOf(L"FileSystem.OntapConfiguration.PreferredSubnetId");
int ThroughputCapacity = jResp.IntOf(L"FileSystem.OntapConfiguration.ThroughputCapacity");
const wchar_t *OntapConfigurationWeeklyMaintenanceStartTime = jResp.stringOf(L"FileSystem.OntapConfiguration.WeeklyMaintenanceStartTime");
int OpenZFSConfigurationAutomaticBackupRetentionDays = jResp.IntOf(L"FileSystem.OpenZFSConfiguration.AutomaticBackupRetentionDays");
int OpenZFSConfigurationCopyTagsToBackups = jResp.IntOf(L"FileSystem.OpenZFSConfiguration.CopyTagsToBackups");
int CopyTagsToVolumes = jResp.IntOf(L"FileSystem.OpenZFSConfiguration.CopyTagsToVolumes");
const wchar_t *OpenZFSConfigurationDailyAutomaticBackupStartTime = jResp.stringOf(L"FileSystem.OpenZFSConfiguration.DailyAutomaticBackupStartTime");
const wchar_t *OpenZFSConfigurationDeploymentType = jResp.stringOf(L"FileSystem.OpenZFSConfiguration.DeploymentType");
int DiskIopsConfigurationIops = jResp.IntOf(L"FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Iops");
const wchar_t *DiskIopsConfigurationMode = jResp.stringOf(L"FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Mode");
const wchar_t *RootVolumeId = jResp.stringOf(L"FileSystem.OpenZFSConfiguration.RootVolumeId");
int OpenZFSConfigurationThroughputCapacity = jResp.IntOf(L"FileSystem.OpenZFSConfiguration.ThroughputCapacity");
const wchar_t *OpenZFSConfigurationWeeklyMaintenanceStartTime = jResp.stringOf(L"FileSystem.OpenZFSConfiguration.WeeklyMaintenanceStartTime");
const wchar_t *OwnerId = jResp.stringOf(L"FileSystem.OwnerId");
const wchar_t *ResourceARN = jResp.stringOf(L"FileSystem.ResourceARN");
int StorageCapacity = jResp.IntOf(L"FileSystem.StorageCapacity");
const wchar_t *StorageType = jResp.stringOf(L"FileSystem.StorageType");
const wchar_t *VpcId = jResp.stringOf(L"FileSystem.VpcId");
const wchar_t *ActiveDirectoryId = jResp.stringOf(L"FileSystem.WindowsConfiguration.ActiveDirectoryId");
const wchar_t *AuditLogDestination = jResp.stringOf(L"FileSystem.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination");
const wchar_t *FileAccessAuditLogLevel = jResp.stringOf(L"FileSystem.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel");
const wchar_t *FileShareAccessAuditLogLevel = jResp.stringOf(L"FileSystem.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel");
int WindowsConfigurationAutomaticBackupRetentionDays = jResp.IntOf(L"FileSystem.WindowsConfiguration.AutomaticBackupRetentionDays");
int WindowsConfigurationCopyTagsToBackups = jResp.IntOf(L"FileSystem.WindowsConfiguration.CopyTagsToBackups");
const wchar_t *WindowsConfigurationDailyAutomaticBackupStartTime = jResp.stringOf(L"FileSystem.WindowsConfiguration.DailyAutomaticBackupStartTime");
const wchar_t *WindowsConfigurationDeploymentType = jResp.stringOf(L"FileSystem.WindowsConfiguration.DeploymentType");
const wchar_t *PreferredFileServerIp = jResp.stringOf(L"FileSystem.WindowsConfiguration.PreferredFileServerIp");
const wchar_t *WindowsConfigurationPreferredSubnetId = jResp.stringOf(L"FileSystem.WindowsConfiguration.PreferredSubnetId");
const wchar_t *RemoteAdministrationEndpoint = jResp.stringOf(L"FileSystem.WindowsConfiguration.RemoteAdministrationEndpoint");
const wchar_t *DomainName = jResp.stringOf(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName");
const wchar_t *FileSystemAdministratorsGroup = jResp.stringOf(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup");
const wchar_t *OrganizationalUnitDistinguishedName = jResp.stringOf(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName");
const wchar_t *UserName = jResp.stringOf(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName");
int WindowsConfigurationThroughputCapacity = jResp.IntOf(L"FileSystem.WindowsConfiguration.ThroughputCapacity");
const wchar_t *WindowsConfigurationWeeklyMaintenanceStartTime = jResp.stringOf(L"FileSystem.WindowsConfiguration.WeeklyMaintenanceStartTime");
int i = 0;
int count_i = jResp.SizeOfArray(L"FileSystem.AdministrativeActions");
while (i < count_i) {
jResp.put_I(i);
AdministrativeActionType = jResp.stringOf(L"FileSystem.AdministrativeActions[i].AdministrativeActionType");
FailureDetailsMessage = jResp.stringOf(L"FileSystem.AdministrativeActions[i].FailureDetails.Message");
ProgressPercent = jResp.IntOf(L"FileSystem.AdministrativeActions[i].ProgressPercent");
RequestTime = jResp.IntOf(L"FileSystem.AdministrativeActions[i].RequestTime");
Status = jResp.stringOf(L"FileSystem.AdministrativeActions[i].Status");
TargetFileSystemValues = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetFileSystemValues");
TargetSnapshotValuesCreationTime = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.CreationTime");
TargetSnapshotValuesLifecycle = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.Lifecycle");
LifecycleTransitionReasonMessage = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message");
Name = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.Name");
TargetSnapshotValuesResourceARN = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.ResourceARN");
SnapshotId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.SnapshotId");
VolumeId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.VolumeId");
TargetVolumeValuesCreationTime = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.CreationTime");
TargetVolumeValuesFileSystemId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.FileSystemId");
TargetVolumeValuesLifecycle = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.Lifecycle");
LifecycleTransitionReasonMessage = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.LifecycleTransitionReason.Message");
TargetVolumeValuesName = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.Name");
FlexCacheEndpointType = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.FlexCacheEndpointType");
JunctionPath = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.JunctionPath");
OntapVolumeType = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.OntapVolumeType");
SecurityStyle = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SecurityStyle");
SizeInMegabytes = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SizeInMegabytes");
StorageEfficiencyEnabled = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageEfficiencyEnabled");
StorageVirtualMachineId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineId");
StorageVirtualMachineRoot = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineRoot");
CoolingPeriod = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.CoolingPeriod");
TieringPolicyName = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.Name");
UUID = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.UUID");
CopyTagsToSnapshots = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.CopyTagsToSnapshots");
OpenZFSConfigurationDataCompressionType = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.DataCompressionType");
CopyStrategy = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.CopyStrategy");
SnapshotARN = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.SnapshotARN");
ParentVolumeId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ParentVolumeId");
ReadOnly = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ReadOnly");
RecordSizeKiB = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.RecordSizeKiB");
StorageCapacityQuotaGiB = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityQuotaGiB");
StorageCapacityReservationGiB = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityReservationGiB");
VolumePath = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.VolumePath");
TargetVolumeValuesResourceARN = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.ResourceARN");
TargetVolumeValuesVolumeId = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeId");
VolumeType = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeType");
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions");
while (j < count_j) {
jResp.put_J(j);
strVal = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags");
while (j < count_j) {
jResp.put_J(j);
Key = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key");
Value = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions");
while (j < count_j) {
jResp.put_J(j);
strVal = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions[j]");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports");
while (j < count_j) {
jResp.put_J(j);
k = 0;
count_k = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations");
while (k < count_k) {
jResp.put_K(k);
Clients = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients");
json1 = jResp.ObjectOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]");
i1 = 0;
count_i1 = json1->SizeOfArray(L"Options");
while (i1 < count_i1) {
json1->put_I(i1);
strVal = json1->stringOf(L"Options[i]");
i1 = i1 + 1;
}
delete json1;
k = k + 1;
}
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas");
while (j < count_j) {
jResp.put_J(j);
Id = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Id");
StorageCapacityQuotaGiB = jResp.IntOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB");
v_Type = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Type");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags");
while (j < count_j) {
jResp.put_J(j);
Key = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Key");
Value = jResp.stringOf(L"FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Value");
j = j + 1;
}
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.NetworkInterfaceIds");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.NetworkInterfaceIds[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.OntapConfiguration.RouteTableIds");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.OntapConfiguration.RouteTableIds[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.SubnetIds");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.SubnetIds[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.Tags");
while (i < count_i) {
jResp.put_I(i);
Key = jResp.stringOf(L"FileSystem.Tags[i].Key");
Value = jResp.stringOf(L"FileSystem.Tags[i].Value");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.WindowsConfiguration.Aliases");
while (i < count_i) {
jResp.put_I(i);
Lifecycle = jResp.stringOf(L"FileSystem.WindowsConfiguration.Aliases[i].Lifecycle");
Name = jResp.stringOf(L"FileSystem.WindowsConfiguration.Aliases[i].Name");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[i]");
i = i + 1;
}
// A sample JSON response body parsed by the above code:
// {
// "FileSystem": {
// "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"
// }
// }
// }
}