// This is an automatically generated code sample. 
// To make this code sample work in your Oracle Cloud tenancy, 
// please replace the values for any parameters whose current values do not fit
// your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and 
// boolean, number, and enum parameters with values not fitting your use case).

import * as database from "oci-database";
import common = require("oci-common");

// Create a default authentication provider that uses the DEFAULT
// profile in the configuration file.
// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.

const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();

(async () => {
    try {
     // Create a service client
     const client = new database.DatabaseClient({ authenticationDetailsProvider: provider });

     // Create a request and dependent object(s).
	const  createExadbVmClusterDetails = {
		compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
		availabilityDomain: "EXAMPLE-availabilityDomain-Value",
		subnetId: "ocid1.test.oc1..<unique_ID>EXAMPLE-subnetId-Value",
		backupSubnetId: "ocid1.test.oc1..<unique_ID>EXAMPLE-backupSubnetId-Value",
		clusterName: "EXAMPLE-clusterName-Value",
		displayName: "EXAMPLE-displayName-Value",
		hostname: "EXAMPLE-hostname-Value",
		domain: "EXAMPLE-domain-Value",
		sshPublicKeys: ["EXAMPLE--Value"				],
		licenseModel: database.models.CreateExadbVmClusterDetails.LicenseModel.BringYourOwnLicense,
		timeZone: "EXAMPLE-timeZone-Value",
		scanListenerPortTcp: 39,
		scanListenerPortTcpSsl: 430,
		privateZoneId: "ocid1.test.oc1..<unique_ID>EXAMPLE-privateZoneId-Value",
		shape: "EXAMPLE-shape-Value",
		nodeCount: 605,
		totalECpuCount: 439,
		enabledECpuCount: 822,
		vmFileSystemStorage: {
			totalSizeInGbs: 520,

			}
,
		exascaleDbStorageVaultId: "ocid1.test.oc1..<unique_ID>EXAMPLE-exascaleDbStorageVaultId-Value",
		nsgIds: ["EXAMPLE--Value"				],
		backupNetworkNsgIds: ["EXAMPLE--Value"				],
		gridImageId: "ocid1.test.oc1..<unique_ID>EXAMPLE-gridImageId-Value",
		systemVersion: "EXAMPLE-systemVersion-Value",
		freeformTags: {
			EXAMPLE_KEY_KsQAB :"EXAMPLE_VALUE_LANimh57HAr1AHqz7YRH"
			},
		definedTags: {
			EXAMPLE_KEY_JLWTu :{
				EXAMPLE_KEY_3mS6Y :"EXAMPLE--Value"
				}
			},
		securityAttributes: {
			EXAMPLE_KEY_FGC5s :{
				EXAMPLE_KEY_fMqng :"EXAMPLE--Value"
				}
			},
		dataCollectionOptions: {
			isDiagnosticsEventsEnabled: true,
			isHealthMonitoringEnabled: true,
			isIncidentLogsEnabled: false,

			}
,
		subscriptionId: "ocid1.test.oc1..<unique_ID>EXAMPLE-subscriptionId-Value",

		}

	const createExadbVmClusterRequest: database.requests.CreateExadbVmClusterRequest = { 
	createExadbVmClusterDetails: createExadbVmClusterDetails,
	opcRetryToken: "EXAMPLE-opcRetryToken-Value",
	opcRequestId: "NLHPZH5SBOLGYOBJUJA0<unique_ID>",

		}; 


     // Send request to the Client.
     const createExadbVmClusterResponse = await client.createExadbVmCluster(createExadbVmClusterRequest);
     }
     catch (error) {
         console.log("createExadbVmCluster Failed with error  " + error);
     }
})();