Delightful Database and Data Management

Discover an all-in-one platform for seamless data management. Simplify provisioning, automate backup and recovery, and ensure data security with robust governance features. Reduce complexity and improve efficiency with a unified control plane for all engines, all clouds, and all types of infrastructure.

Comprehensive DBLM

One platform that takes care of provisioning, patching, performance monitoring, HA/DR, snapshots, backups, cloning, restoring, resizing, parameter updates, etc.

Data Apps

Tessell goes beyond the typical undifferentiated heavy lifting and provides highly differentiated upper-level data management delivered via consumer-grade apps.

Data Governance

Seamlessly manage all environments - prod/dev/QA - in one place. Create data pipelines and integrate data sources with warehouses, lake houses, MDM, and more.

Zero Lock-in

Single control plane for all types of database engines. Choose your preferred cloud provider, bring your cloud account and choose from various infrastructure options.

Automation for cloud-native DevOps

Automate and integrate with your DevOps pipeline using Terraform, REST APIs or any programming language of your choice. Anything you can do from the GUI can also be done via APIs. Leverage the Code Equivalent feature to find context-specific API code.

1terraform {
2	required_providers {
3		tessell = {
4			source  = "tessell-cloud/tessell"
5		}
6	}
7}
8
9provider "tessell" {
10	api_address = "https://api.canary.tessell.com"
11	tenant_id = "a98aa699-66d2-473f-a908-073777f96f87"
12	api_key = <API_KEY>
13}
14
15resource "tessell_db_service" "my_service_6d2a535d" {
16	name = "my-service-6d2a535d"
17	description = ""
18	subscription = "byoa-473255874666-aws"
19	edition = "ENTERPRISE"
20	engine_type = "ORACLE"
21	topology = "single_instance"
22	software_image = "Oracle 21c"
23	software_image_version = "21.0.0.0.0"
24	auto_minor_version_update = true
25	enable_deletion_protection = false
26	enable_stop_protection = false
27	infrastructure {
28		cloud = "aws"
29		region = "ap-south-1"
30		availability_zone = "ap-south-1a"
31		vpc = "canary-default-ac5a288e"
32		compute_type = "tesl_8_c"
33		enable_encryption = true
34		encryption_key = "default-encryption-key"
35		compute_name_prefix = "server1"
36		additional_storage = 0
37		aws_infra_config {
38			aws_cpu_options {
39				vcpus = 8
40			}
41		}
42		timezone = "Asia/Calcutta"
43		enable_compute_sharing = false
44	}
45	service_connectivity {
46		service_port = "1521"
47		enable_public_access = true
48		allowed_ip_addresses = [
49			"57.190.1.17",
50		]
51		enable_ssl = false
52	}
53	creds {
54		master_user = "master"
55		master_password = "Tessell123"
56	}
57	maintenance_window {
58		day = "Sunday"
59		time = "02:00"
60		duration = 30
61	}
62	snapshot_configuration {
63		sla = "2-days-pitr"
64		schedule {
65			backup_start_time {
66				hour = 8
67				minute = 0
68			}
69		}
70	}
71	engine_configuration {
72		oracle_config {
73			multi_tenant = true
74			parameter_profile_id = "7fd659fe-bc06-4c98-b931-3499f97a877a"
75			options_profile = "Oracle 21c Options Profile"
76			character_set = "AL32UTF8"
77			national_character_set = "AL16UTF16"
78			enable_archive_mode = true
79		}
80	}
81	databases {
82		database_name = "orclaba"
83		database_configuration {
84			oracle_config {
85				parameter_profile_id = "7fd659fe-bc06-4c98-b931-3499f97a877a"
86				options_profile = "Oracle 21c Options Profile"
87			}
88		}
89	}
90}
Copy Code
Copied!
terraform { required_providers { tessell = { source = "tessell-cloud/tessell" } } } provider "tessell" { api_address = "https://api.canary.tessell.com" tenant_id = "a98aa699-66d2-473f-a908-073777f96f87" api_key = } resource "tessell_db_service" "my_service_6d2a535d" { name = "my-service-6d2a535d" description = "" subscription = "byoa-473255874666-aws" edition = "ENTERPRISE" engine_type = "ORACLE" topology = "single_instance" software_image = "Oracle 21c" software_image_version = "21.0.0.0.0" auto_minor_version_update = true enable_deletion_protection = false enable_stop_protection = false infrastructure { cloud = "aws" region = "ap-south-1" availability_zone = "ap-south-1a" vpc = "canary-default-ac5a288e" compute_type = "tesl_8_c" enable_encryption = true encryption_key = "default-encryption-key" compute_name_prefix = "server1" additional_storage = 0 aws_infra_config { aws_cpu_options { vcpus = 8 } } timezone = "Asia/Calcutta" enable_compute_sharing = false } service_connectivity { service_port = "1521" enable_public_access = true allowed_ip_addresses = [ "57.190.1.17", ] enable_ssl = false } creds { master_user = "master" master_password = "Tessell123" } maintenance_window { day = "Sunday" time = "02:00" duration = 30 } snapshot_configuration { sla = "2-days-pitr" schedule { backup_start_time { hour = 8 minute = 0 } } } engine_configuration { oracle_config { multi_tenant = true parameter_profile_id = "7fd659fe-bc06-4c98-b931-3499f97a877a" options_profile = "Oracle 21c Options Profile" character_set = "AL32UTF8" national_character_set = "AL16UTF16" enable_archive_mode = true } } databases { database_name = "orclaba" database_configuration { oracle_config { parameter_profile_id = "7fd659fe-bc06-4c98-b931-3499f97a877a" options_profile = "Oracle 21c Options Profile" } } } }
1#!/bin/sh
2
3curl -k -X POST \
4	https://api.canary.tessell.com/services \
5	-H 'Content-Type: application/json' \
6	-H 'Authorization: eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA' \
7	-H 'tenant-id: a98aa699-66d2-473f-a908-073777f96f87' \
8	-d \
9	'{
10  "name": "my-service-6d2a535d",
11  "description": "",
12  "subscription": "byoa-473255874666-aws",
13  "edition": "ENTERPRISE",
14  "engineType": "ORACLE",
15  "topology": "single_instance",
16  "softwareImage": "Oracle 21c",
17  "softwareImageVersion": "21.0.0.0.0",
18  "autoMinorVersionUpdate": true,
19  "enableDeletionProtection": false,
20  "enableStopProtection": false,
21  "infrastructure": {
22    "cloud": "aws",
23    "region": "ap-south-1",
24    "availabilityZone": "ap-south-1a",
25    "vpc": "canary-default-ac5a288e",
26    "computeType": "tesl_8_c",
27    "enableEncryption": true,
28    "encryptionKey": "default-encryption-key",
29    "computeNamePrefix": "server1",
30    "additionalStorage": 0,
31    "awsInfraConfig": {
32      "awsCpuOptions": {
33        "vcpus": 8
34      }
35    },
36    "timezone": "Asia/Calcutta",
37    "enableComputeSharing": false,
38    "computes": []
39  },
40  "serviceConnectivity": {
41    "servicePort": "1521",
42    "enablePublicAccess": true,
43    "allowedIpAddresses": [
44      "57.190.1.17"
45    ],
46    "enableSSL": false
47  },
48  "creds": {
49    "masterUser": "master",
50    "masterPassword": "Tessell123"
51  },
52  "maintenanceWindow": {
53    "day": "Sunday",
54    "time": "02:00",
55    "duration": 30
56  },
57  "snapshotConfiguration": {
58    "sla": "2-days-pitr",
59    "schedule": {
60      "backupStartTime": {
61        "hour": 8,
62        "minute": 0
63      }
64    }
65  },
66  "engineConfiguration": {
67    "oracleConfig": {
68      "multiTenant": true,
69      "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
70      "optionsProfile": "Oracle 21c Options Profile",
71      "characterSet": "AL32UTF8",
72      "nationalCharacterSet": "AL16UTF16",
73      "enableArchiveMode": true
74    }
75  },
76  "databases": [
77    {
78      "databaseName": "orclaba",
79      "databaseConfiguration": {
80        "oracleConfig": {
81          "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
82          "optionsProfile": "Oracle 21c Options Profile"
83        }
84      }
85    }
86  ],
87  "tags": []
88}'
Copy Code
Copied!
#!/bin/sh curl -k -X POST \ https://api.canary.tessell.com/services \ -H 'Content-Type: application/json' \ -H 'Authorization: eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA' \ -H 'tenant-id: a98aa699-66d2-473f-a908-073777f96f87' \ -d \ '{ "name": "my-service-6d2a535d", "description": "", "subscription": "byoa-473255874666-aws", "edition": "ENTERPRISE", "engineType": "ORACLE", "topology": "single_instance", "softwareImage": "Oracle 21c", "softwareImageVersion": "21.0.0.0.0", "autoMinorVersionUpdate": true, "enableDeletionProtection": false, "enableStopProtection": false, "infrastructure": { "cloud": "aws", "region": "ap-south-1", "availabilityZone": "ap-south-1a", "vpc": "canary-default-ac5a288e", "computeType": "tesl_8_c", "enableEncryption": true, "encryptionKey": "default-encryption-key", "computeNamePrefix": "server1", "additionalStorage": 0, "awsInfraConfig": { "awsCpuOptions": { "vcpus": 8 } }, "timezone": "Asia/Calcutta", "enableComputeSharing": false, "computes": [] }, "serviceConnectivity": { "servicePort": "1521", "enablePublicAccess": true, "allowedIpAddresses": [ "57.190.1.17" ], "enableSSL": false }, "creds": { "masterUser": "master", "masterPassword": "Tessell123" }, "maintenanceWindow": { "day": "Sunday", "time": "02:00", "duration": 30 }, "snapshotConfiguration": { "sla": "2-days-pitr", "schedule": { "backupStartTime": { "hour": 8, "minute": 0 } } }, "engineConfiguration": { "oracleConfig": { "multiTenant": true, "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile", "characterSet": "AL32UTF8", "nationalCharacterSet": "AL16UTF16", "enableArchiveMode": true } }, "databases": [ { "databaseName": "orclaba", "databaseConfiguration": { "oracleConfig": { "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile" } } } ], "tags": [] }'
1/apxe/
2import requests
3
4url = "https://api.canary.tessell.com/services"
5
6data = '''
7{
8  "name": "my-service-6d2a535d",
9  "description": "",
10  "subscription": "byoa-473255874666-aws",
11  "edition": "ENTERPRISE",
12  "engineType": "ORACLE",
13  "topology": "single_instance",
14  "softwareImage": "Oracle 21c",
15  "softwareImageVersion": "21.0.0.0.0",
16  "autoMinorVersionUpdate": true,
17  "enableDeletionProtection": false,
18  "enableStopProtection": false,
19  "infrastructure": {
20    "cloud": "aws",
21    "region": "ap-south-1",
22    "availabilityZone": "ap-south-1a",
23    "vpc": "canary-default-ac5a288e",
24    "computeType": "tesl_8_c",
25    "enableEncryption": true,
26    "encryptionKey": "default-encryption-key",
27    "computeNamePrefix": "server1",
28    "additionalStorage": 0,
29    "awsInfraConfig": {
30      "awsCpuOptions": {
31        "vcpus": 8
32      }
33    },
34    "timezone": "Asia/Calcutta",
35    "enableComputeSharing": false,
36    "computes": []
37  },
38  "serviceConnectivity": {
39    "servicePort": "1521",
40    "enablePublicAccess": true,
41    "allowedIpAddresses": [
42      "57.190.1.17"
43    ],
44    "enableSSL": false
45  },
46  "creds": {
47    "masterUser": "master",
48    "masterPassword": "Tessell123"
49  },
50  "maintenanceWindow": {
51    "day": "Sunday",
52    "time": "02:00",
53    "duration": 30
54  },
55  "snapshotConfiguration": {
56    "sla": "2-days-pitr",
57    "schedule": {
58      "backupStartTime": {
59        "hour": 8,
60        "minute": 0
61      }
62    }
63  },
64  "engineConfiguration": {
65    "oracleConfig": {
66      "multiTenant": true,
67      "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
68      "optionsProfile": "Oracle 21c Options Profile",
69      "characterSet": "AL32UTF8",
70      "nationalCharacterSet": "AL16UTF16",
71      "enableArchiveMode": true
72    }
73  },
74  "databases": [
75    {
76      "databaseName": "orclaba",
77      "databaseConfiguration": {
78        "oracleConfig": {
79          "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
80          "optionsProfile": "Oracle 21c Options Profile"
81        }
82      }
83    }
84  ],
85  "tags": []
86}
87'''
88
89headers = {
90	"Content-Type": "application/json",
91	"Authorization": "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA",
92	"tenant-id": "a98aa699-66d2-473f-a908-073777f96f87"
93}
94
95requests.packages.urllib3.disable_warnings()
96response = requests.request("POST", url, data=data, headers=headers, verify=False)
97
98print(response.status_code)
99print(response.text)
Copy Code
Copied!
/apxe/ import requests url = "https://api.canary.tessell.com/services" data = ''' { "name": "my-service-6d2a535d", "description": "", "subscription": "byoa-473255874666-aws", "edition": "ENTERPRISE", "engineType": "ORACLE", "topology": "single_instance", "softwareImage": "Oracle 21c", "softwareImageVersion": "21.0.0.0.0", "autoMinorVersionUpdate": true, "enableDeletionProtection": false, "enableStopProtection": false, "infrastructure": { "cloud": "aws", "region": "ap-south-1", "availabilityZone": "ap-south-1a", "vpc": "canary-default-ac5a288e", "computeType": "tesl_8_c", "enableEncryption": true, "encryptionKey": "default-encryption-key", "computeNamePrefix": "server1", "additionalStorage": 0, "awsInfraConfig": { "awsCpuOptions": { "vcpus": 8 } }, "timezone": "Asia/Calcutta", "enableComputeSharing": false, "computes": [] }, "serviceConnectivity": { "servicePort": "1521", "enablePublicAccess": true, "allowedIpAddresses": [ "57.190.1.17" ], "enableSSL": false }, "creds": { "masterUser": "master", "masterPassword": "Tessell123" }, "maintenanceWindow": { "day": "Sunday", "time": "02:00", "duration": 30 }, "snapshotConfiguration": { "sla": "2-days-pitr", "schedule": { "backupStartTime": { "hour": 8, "minute": 0 } } }, "engineConfiguration": { "oracleConfig": { "multiTenant": true, "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile", "characterSet": "AL32UTF8", "nationalCharacterSet": "AL16UTF16", "enableArchiveMode": true } }, "databases": [ { "databaseName": "orclaba", "databaseConfiguration": { "oracleConfig": { "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile" } } } ], "tags": [] } ''' headers = { "Content-Type": "application/json", "Authorization": "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA", "tenant-id": "a98aa699-66d2-473f-a908-073777f96f87" } requests.packages.urllib3.disable_warnings() response = requests.request("POST", url, data=data, headers=headers, verify=False) print(response.status_code) print(response.text)
1package main
2
3import (
4	"fmt"
5	"strings"
6	"net/http"
7	"io/ioutil"
8	"crypto/tls"
9)
10
11func main() {
12
13	url := "https://api.canary.tessell.com/services"
14
15	payload := strings.NewReader("{\"name\":\"my-service-6d2a535d\",\"description\":\"\",\"subscription\":\"byoa-473255874666-aws\",\"edition\":\"ENTERPRISE\",\"engineType\":\"ORACLE\",\"topology\":\"single_instance\",\"softwareImage\":\"Oracle 21c\",\"softwareImageVersion\":\"21.0.0.0.0\",\"autoMinorVersionUpdate\":true,\"enableDeletionProtection\":false,\"enableStopProtection\":false,\"infrastructure\":{\"cloud\":\"aws\",\"region\":\"ap-south-1\",\"availabilityZone\":\"ap-south-1a\",\"vpc\":\"canary-default-ac5a288e\",\"computeType\":\"tesl_8_c\",\"enableEncryption\":true,\"encryptionKey\":\"default-encryption-key\",\"computeNamePrefix\":\"server1\",\"additionalStorage\":0,\"awsInfraConfig\":{\"awsCpuOptions\":{\"vcpus\":8}},\"timezone\":\"Asia/Calcutta\",\"enableComputeSharing\":false,\"computes\":[]},\"serviceConnectivity\":{\"servicePort\":\"1521\",\"enablePublicAccess\":true,\"allowedIpAddresses\":[\"57.190.1.17\"],\"enableSSL\":false},\"creds\":{\"masterUser\":\"master\",\"masterPassword\":\"Tessell123\"},\"maintenanceWindow\":{\"day\":\"Sunday\",\"time\":\"02:00\",\"duration\":30},\"snapshotConfiguration\":{\"sla\":\"2-days-pitr\",\"schedule\":{\"backupStartTime\":{\"hour\":8,\"minute\":0}}},\"engineConfiguration\":{\"oracleConfig\":{\"multiTenant\":true,\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\",\"characterSet\":\"AL32UTF8\",\"nationalCharacterSet\":\"AL16UTF16\",\"enableArchiveMode\":true}},\"databases\":[{\"databaseName\":\"orclaba\",\"databaseConfiguration\":{\"oracleConfig\":{\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\"}}}],\"tags\":[]}")
16
17	http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
18
19	req, _ := http.NewRequest("POST", url, payload)
20
21	req.Header.Add("Content-Type", "application/json")
22	req.Header.Add("Authorization", "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA")
23
24	req.Header.Add("tenant-id", "a98aa699-66d2-473f-a908-073777f96f87")
25
26	res, _ := http.DefaultClient.Do(req)
27
28	defer res.Body.Close()
29	body, _ := ioutil.ReadAll(res.Body)
30
31	fmt.Println(res)
32	fmt.Println(string(body))
33
34}
Copy Code
Copied!
package main import ( "fmt" "strings" "net/http" "io/ioutil" "crypto/tls" ) func main() { url := "https://api.canary.tessell.com/services" payload := strings.NewReader("{\"name\":\"my-service-6d2a535d\",\"description\":\"\",\"subscription\":\"byoa-473255874666-aws\",\"edition\":\"ENTERPRISE\",\"engineType\":\"ORACLE\",\"topology\":\"single_instance\",\"softwareImage\":\"Oracle 21c\",\"softwareImageVersion\":\"21.0.0.0.0\",\"autoMinorVersionUpdate\":true,\"enableDeletionProtection\":false,\"enableStopProtection\":false,\"infrastructure\":{\"cloud\":\"aws\",\"region\":\"ap-south-1\",\"availabilityZone\":\"ap-south-1a\",\"vpc\":\"canary-default-ac5a288e\",\"computeType\":\"tesl_8_c\",\"enableEncryption\":true,\"encryptionKey\":\"default-encryption-key\",\"computeNamePrefix\":\"server1\",\"additionalStorage\":0,\"awsInfraConfig\":{\"awsCpuOptions\":{\"vcpus\":8}},\"timezone\":\"Asia/Calcutta\",\"enableComputeSharing\":false,\"computes\":[]},\"serviceConnectivity\":{\"servicePort\":\"1521\",\"enablePublicAccess\":true,\"allowedIpAddresses\":[\"57.190.1.17\"],\"enableSSL\":false},\"creds\":{\"masterUser\":\"master\",\"masterPassword\":\"Tessell123\"},\"maintenanceWindow\":{\"day\":\"Sunday\",\"time\":\"02:00\",\"duration\":30},\"snapshotConfiguration\":{\"sla\":\"2-days-pitr\",\"schedule\":{\"backupStartTime\":{\"hour\":8,\"minute\":0}}},\"engineConfiguration\":{\"oracleConfig\":{\"multiTenant\":true,\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\",\"characterSet\":\"AL32UTF8\",\"nationalCharacterSet\":\"AL16UTF16\",\"enableArchiveMode\":true}},\"databases\":[{\"databaseName\":\"orclaba\",\"databaseConfiguration\":{\"oracleConfig\":{\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\"}}}],\"tags\":[]}") http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true} req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") req.Header.Add("Authorization", "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA") req.Header.Add("tenant-id", "a98aa699-66d2-473f-a908-073777f96f87") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
1import java.net.HttpURLConnection;
2import java.net.URL;
3import java.io.InputStream;
4import java.io.OutputStream;
5import java.io.FileOutputStream;
6
7public class RestClient {
8	public static void main(String[] args) throws Exception {
9		URL url = new URL("https://api.canary.tessell.com/services");
10		HttpURLConnection conn = (HttpURLConnection) url.openConnection();
11		conn.setDoOutput(true);
12		conn.setRequestMethod("POST");
13		conn.setRequestProperty("Content-Type", "application/json");
14		conn.setRequestProperty("Authorization", "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA");
15		conn.setRequestProperty("tenant-id", "a98aa699-66d2-473f-a908-073777f96f87");
16		
17		String input = "{\"name\":\"my-service-6d2a535d\",\"description\":\"\",\"subscription\":\"byoa-473255874666-aws\",\"edition\":\"ENTERPRISE\",\"engineType\":\"ORACLE\",\"topology\":\"single_instance\",\"softwareImage\":\"Oracle 21c\",\"softwareImageVersion\":\"21.0.0.0.0\",\"autoMinorVersionUpdate\":true,\"enableDeletionProtection\":false,\"enableStopProtection\":false,\"infrastructure\":{\"cloud\":\"aws\",\"region\":\"ap-south-1\",\"availabilityZone\":\"ap-south-1a\",\"vpc\":\"canary-default-ac5a288e\",\"computeType\":\"tesl_8_c\",\"enableEncryption\":true,\"encryptionKey\":\"default-encryption-key\",\"computeNamePrefix\":\"server1\",\"additionalStorage\":0,\"awsInfraConfig\":{\"awsCpuOptions\":{\"vcpus\":8}},\"timezone\":\"Asia/Calcutta\",\"enableComputeSharing\":false,\"computes\":[]},\"serviceConnectivity\":{\"servicePort\":\"1521\",\"enablePublicAccess\":true,\"allowedIpAddresses\":[\"57.190.1.17\"],\"enableSSL\":false},\"creds\":{\"masterUser\":\"master\",\"masterPassword\":\"Tessell123\"},\"maintenanceWindow\":{\"day\":\"Sunday\",\"time\":\"02:00\",\"duration\":30},\"snapshotConfiguration\":{\"sla\":\"2-days-pitr\",\"schedule\":{\"backupStartTime\":{\"hour\":8,\"minute\":0}}},\"engineConfiguration\":{\"oracleConfig\":{\"multiTenant\":true,\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\",\"characterSet\":\"AL32UTF8\",\"nationalCharacterSet\":\"AL16UTF16\",\"enableArchiveMode\":true}},\"databases\":[{\"databaseName\":\"orclaba\",\"databaseConfiguration\":{\"oracleConfig\":{\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\"}}}],\"tags\":[]}";
18		OutputStream os = conn.getOutputStream();
19		os.write(input.getBytes());
20		os.flush();
21		
22		InputStream is = connection.getInputStream();
23		String output;
24		while ((output = br.readLine()) != null)
25			System.out.println(output);
26		
27		conn.disconnect();
28	}
29}
Copy Code
Copied!
import java.net.HttpURLConnection; import java.net.URL; import java.io.InputStream; import java.io.OutputStream; import java.io.FileOutputStream; public class RestClient { public static void main(String[] args) throws Exception { URL url = new URL("https://api.canary.tessell.com/services"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST"); conn.setRequestProperty("Content-Type", "application/json"); conn.setRequestProperty("Authorization", "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA"); conn.setRequestProperty("tenant-id", "a98aa699-66d2-473f-a908-073777f96f87"); String input = "{\"name\":\"my-service-6d2a535d\",\"description\":\"\",\"subscription\":\"byoa-473255874666-aws\",\"edition\":\"ENTERPRISE\",\"engineType\":\"ORACLE\",\"topology\":\"single_instance\",\"softwareImage\":\"Oracle 21c\",\"softwareImageVersion\":\"21.0.0.0.0\",\"autoMinorVersionUpdate\":true,\"enableDeletionProtection\":false,\"enableStopProtection\":false,\"infrastructure\":{\"cloud\":\"aws\",\"region\":\"ap-south-1\",\"availabilityZone\":\"ap-south-1a\",\"vpc\":\"canary-default-ac5a288e\",\"computeType\":\"tesl_8_c\",\"enableEncryption\":true,\"encryptionKey\":\"default-encryption-key\",\"computeNamePrefix\":\"server1\",\"additionalStorage\":0,\"awsInfraConfig\":{\"awsCpuOptions\":{\"vcpus\":8}},\"timezone\":\"Asia/Calcutta\",\"enableComputeSharing\":false,\"computes\":[]},\"serviceConnectivity\":{\"servicePort\":\"1521\",\"enablePublicAccess\":true,\"allowedIpAddresses\":[\"57.190.1.17\"],\"enableSSL\":false},\"creds\":{\"masterUser\":\"master\",\"masterPassword\":\"Tessell123\"},\"maintenanceWindow\":{\"day\":\"Sunday\",\"time\":\"02:00\",\"duration\":30},\"snapshotConfiguration\":{\"sla\":\"2-days-pitr\",\"schedule\":{\"backupStartTime\":{\"hour\":8,\"minute\":0}}},\"engineConfiguration\":{\"oracleConfig\":{\"multiTenant\":true,\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\",\"characterSet\":\"AL32UTF8\",\"nationalCharacterSet\":\"AL16UTF16\",\"enableArchiveMode\":true}},\"databases\":[{\"databaseName\":\"orclaba\",\"databaseConfiguration\":{\"oracleConfig\":{\"parameterProfileId\":\"7fd659fe-bc06-4c98-b931-3499f97a877a\",\"optionsProfile\":\"Oracle 21c Options Profile\"}}}],\"tags\":[]}"; OutputStream os = conn.getOutputStream(); os.write(input.getBytes()); os.flush(); InputStream is = connection.getInputStream(); String output; while ((output = br.readLine()) != null) System.out.println(output); conn.disconnect(); } }
1const url = "https://api.canary.tessell.com/services";
2
3const body = {
4  "name": "my-service-6d2a535d",
5  "description": "",
6  "subscription": "byoa-473255874666-aws",
7  "edition": "ENTERPRISE",
8  "engineType": "ORACLE",
9  "topology": "single_instance",
10  "softwareImage": "Oracle 21c",
11  "softwareImageVersion": "21.0.0.0.0",
12  "autoMinorVersionUpdate": true,
13  "enableDeletionProtection": false,
14  "enableStopProtection": false,
15  "infrastructure": {
16    "cloud": "aws",
17    "region": "ap-south-1",
18    "availabilityZone": "ap-south-1a",
19    "vpc": "canary-default-ac5a288e",
20    "computeType": "tesl_8_c",
21    "enableEncryption": true,
22    "encryptionKey": "default-encryption-key",
23    "computeNamePrefix": "server1",
24    "additionalStorage": 0,
25    "awsInfraConfig": {
26      "awsCpuOptions": {
27        "vcpus": 8
28      }
29    },
30    "timezone": "Asia/Calcutta",
31    "enableComputeSharing": false,
32    "computes": []
33  },
34  "serviceConnectivity": {
35    "servicePort": "1521",
36    "enablePublicAccess": true,
37    "allowedIpAddresses": [
38      "57.190.1.17"
39    ],
40    "enableSSL": false
41  },
42  "creds": {
43    "masterUser": "master",
44    "masterPassword": "Tessell123"
45  },
46  "maintenanceWindow": {
47    "day": "Sunday",
48    "time": "02:00",
49    "duration": 30
50  },
51  "snapshotConfiguration": {
52    "sla": "2-days-pitr",
53    "schedule": {
54      "backupStartTime": {
55        "hour": 8,
56        "minute": 0
57      }
58    }
59  },
60  "engineConfiguration": {
61    "oracleConfig": {
62      "multiTenant": true,
63      "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
64      "optionsProfile": "Oracle 21c Options Profile",
65      "characterSet": "AL32UTF8",
66      "nationalCharacterSet": "AL16UTF16",
67      "enableArchiveMode": true
68    }
69  },
70  "databases": [
71    {
72      "databaseName": "orclaba",
73      "databaseConfiguration": {
74        "oracleConfig": {
75          "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
76          "optionsProfile": "Oracle 21c Options Profile"
77        }
78      }
79    }
80  ],
81  "tags": []
82};
83
84const headers = {
85	"content-type": "application/json",
86	"authorization": "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA",
87	"tenant-id": "a98aa699-66d2-473f-a908-073777f96f87"
88};
89
90const req = fetch(url, {
91	"headers": headers,
92	"body": JSON.stringify(body),
93	"method": "POST"
94});
95
96req.then((response) => {
97	console.log(response.status);
98	response.json().then((responseData) => {
99		console.log(responseData);
100	});
101});
Copy Code
Copied!
const url = "https://api.canary.tessell.com/services"; const body = { "name": "my-service-6d2a535d", "description": "", "subscription": "byoa-473255874666-aws", "edition": "ENTERPRISE", "engineType": "ORACLE", "topology": "single_instance", "softwareImage": "Oracle 21c", "softwareImageVersion": "21.0.0.0.0", "autoMinorVersionUpdate": true, "enableDeletionProtection": false, "enableStopProtection": false, "infrastructure": { "cloud": "aws", "region": "ap-south-1", "availabilityZone": "ap-south-1a", "vpc": "canary-default-ac5a288e", "computeType": "tesl_8_c", "enableEncryption": true, "encryptionKey": "default-encryption-key", "computeNamePrefix": "server1", "additionalStorage": 0, "awsInfraConfig": { "awsCpuOptions": { "vcpus": 8 } }, "timezone": "Asia/Calcutta", "enableComputeSharing": false, "computes": [] }, "serviceConnectivity": { "servicePort": "1521", "enablePublicAccess": true, "allowedIpAddresses": [ "57.190.1.17" ], "enableSSL": false }, "creds": { "masterUser": "master", "masterPassword": "Tessell123" }, "maintenanceWindow": { "day": "Sunday", "time": "02:00", "duration": 30 }, "snapshotConfiguration": { "sla": "2-days-pitr", "schedule": { "backupStartTime": { "hour": 8, "minute": 0 } } }, "engineConfiguration": { "oracleConfig": { "multiTenant": true, "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile", "characterSet": "AL32UTF8", "nationalCharacterSet": "AL16UTF16", "enableArchiveMode": true } }, "databases": [ { "databaseName": "orclaba", "databaseConfiguration": { "oracleConfig": { "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile" } } } ], "tags": [] }; const headers = { "content-type": "application/json", "authorization": "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA", "tenant-id": "a98aa699-66d2-473f-a908-073777f96f87" }; const req = fetch(url, { "headers": headers, "body": JSON.stringify(body), "method": "POST" }); req.then((response) => { console.log(response.status); response.json().then((responseData) => { console.log(responseData); }); });
1Add-Type @"
2	using System.Net;
3	using System.Security.Cryptography.X509Certificates;
4	public class TrustAllCertsPolicy : ICertificatePolicy {
5		public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) {
6			return true;
7		}
8	}
9"@
10[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
11[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3, [Net.SecurityProtocolType]::Tls, [Net.SecurityProtocolType]::Tls11, [Net.SecurityProtocolType]::Tls12
12
13$URL = "https://api.canary.tessell.com/services"
14$headers = @{
15    Authorization = "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGT..."
16    "tenant-id"  = "a98aa699-66d2-473f-a908-073777f96f87"
17}
18
19$body = @"
20{
21  "name": "my-service-6d2a535d",
22  "description": "",
23  "subscription": "byoa-473255874666-aws",
24  "edition": "ENTERPRISE",
25  "engineType": "ORACLE",
26  "topology": "single_instance",
27  "softwareImage": "Oracle 21c",
28  "softwareImageVersion": "21.0.0.0.0",
29  "autoMinorVersionUpdate": true,
30  "enableDeletionProtection": false,
31  "enableStopProtection": false,
32  "infrastructure": {
33    "cloud": "aws",
34    "region": "ap-south-1",
35    "availabilityZone": "ap-south-1a",
36    "vpc": "canary-default-ac5a288e",
37    "computeType": "tesl_8_c",
38    "enableEncryption": true,
39    "encryptionKey": "default-encryption-key",
40    "computeNamePrefix": "server1",
41    "additionalStorage": 0,
42    "awsInfraConfig": {
43      "awsCpuOptions": {
44        "vcpus": 8
45      }
46    },
47    "timezone": "Asia/Calcutta",
48    "enableComputeSharing": false,
49    "computes": []
50  },
51  "serviceConnectivity": {
52    "servicePort": "1521",
53    "enablePublicAccess": true,
54    "allowedIpAddresses": [
55      "57.190.1.17"
56    ],
57    "enableSSL": false
58  },
59  "creds": {
60    "masterUser": "master",
61    "masterPassword": "Tessell123"
62  },
63  "maintenanceWindow": {
64    "day": "Sunday",
65    "time": "02:00",
66    "duration": 30
67  },
68  "snapshotConfiguration": {
69    "sla": "2-days-pitr",
70    "schedule": {
71      "backupStartTime": {
72        "hour": 8,
73        "minute": 0
74      }
75    }
76  },
77  "engineConfiguration": {
78    "oracleConfig": {
79      "multiTenant": true,
80      "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
81      "optionsProfile": "Oracle 21c Options Profile",
82      "characterSet": "AL32UTF8",
83      "nationalCharacterSet": "AL16UTF16",
84      "enableArchiveMode": true
85    }
86  },
87  "databases": [
88    {
89      "databaseName": "orclaba",
90      "databaseConfiguration": {
91        "oracleConfig": {
92          "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a",
93          "optionsProfile": "Oracle 21c Options Profile"
94        }
95      }
96    }
97  ],
98  "tags": []
99}
100"@
101
102try {
103    $result = Invoke-RestMethod -Uri $URL -Method POST -Body $body -ContentType "application/json" -Headers $headers
104    $result
105} catch {
106    $_.Exception.Message
107    $respStream = $_.Exception.Response.GetResponseStream()
108    $reader = New-Object System.IO.StreamReader($respStream)
109    $respBody = $reader.ReadToEnd() | ConvertFrom-Json
110    $respBody
111}
Copy Code
Copied!
add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { return true; } } "@ [System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3, [Net.SecurityProtocolType]::Tls, [Net.SecurityProtocolType]::Tls11, [Net.SecurityProtocolType]::Tls12 $URL = "https://api.canary.tessell.com/services"; $headers = @{ Authorization = "eyJhbGciOiJSUzUxMiJ9.eyJwcnZsZyI6IklBTTtTVUJTQ1JJUFRJT05TO0NPTVBVVEU7TkVUV09SS1M7REJfR09WRVJOQU5DRTtNWV9TRVJWSUNFUztQUk9WSVNJT05JTkc7QVZBSUxBQklMSVRZX01BQ0hJTkVTO0RBVEFGTElYO0JJTExJTkc7VVRJTElaQVRJT047VElDS0VUUztQQVlNRU5UUztJTlRFR1JBVElPTlM7QURNSU47U0NSSVBUX0xJQlJBUlk7U0VDVVJJVFk7QkVOQ0hNQVJLUztTRVJWRVJTIiwic3ViIjoiYmFrdWwuYmFudGhpYUB0ZXNzZWxsLmNvbSIsInNjb3BlIjoiYWNjZXNzIiwiaXNzIjoidGVzc2VsbCIsImV4cCI6MTcxODk0MTMxMywiaWF0IjoxNzE4ODU0OTE0LCJlbWFpbCI6ImJha3VsLmJhbnRoaWFAdGVzc2VsbC5jb20iLCJ0aWQiOiJhOThhYTY5OS02NmQyLTQ3M2YtYTkwOC0wNzM3NzdmOTZmODcifQ.iT-Q6weR1yVn8Vcw4Y_2FX7rcI7dbwsNtXCuuwRW8h5Da_zOMIWJGihGDKgu_165k8zF-jXhw08qsGS9J92OgVWkflE05UUZXoAB2B8HU20ZA9GMD1lCo_Gih21vKE4IV0tFn-ZZXtw-oOx0PeiFwpdfe21af-HC83xIxwqNlxgiyDLA_xw3eOR6vnfAgfwIfqvB4PxF3TqLMexFfEQIRbDX_FrOjjDMy74JGvV6EEezyidpxPCf2_bPHjdHwtx2TMvD4AcYfyOrUQcBXDl6Q4Gzbh0LN3ZYcBCe2qj4odb2jd_jG57uLkxAQVMSabL0DyY88RaqjInZst1k_vAIAA"; "tenant-id" = "a98aa699-66d2-473f-a908-073777f96f87"} $body = @" { "name": "my-service-6d2a535d", "description": "", "subscription": "byoa-473255874666-aws", "edition": "ENTERPRISE", "engineType": "ORACLE", "topology": "single_instance", "softwareImage": "Oracle 21c", "softwareImageVersion": "21.0.0.0.0", "autoMinorVersionUpdate": true, "enableDeletionProtection": false, "enableStopProtection": false, "infrastructure": { "cloud": "aws", "region": "ap-south-1", "availabilityZone": "ap-south-1a", "vpc": "canary-default-ac5a288e", "computeType": "tesl_8_c", "enableEncryption": true, "encryptionKey": "default-encryption-key", "computeNamePrefix": "server1", "additionalStorage": 0, "awsInfraConfig": { "awsCpuOptions": { "vcpus": 8 } }, "timezone": "Asia/Calcutta", "enableComputeSharing": false, "computes": [] }, "serviceConnectivity": { "servicePort": "1521", "enablePublicAccess": true, "allowedIpAddresses": [ "57.190.1.17" ], "enableSSL": false }, "creds": { "masterUser": "master", "masterPassword": "Tessell123" }, "maintenanceWindow": { "day": "Sunday", "time": "02:00", "duration": 30 }, "snapshotConfiguration": { "sla": "2-days-pitr", "schedule": { "backupStartTime": { "hour": 8, "minute": 0 } } }, "engineConfiguration": { "oracleConfig": { "multiTenant": true, "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile", "characterSet": "AL32UTF8", "nationalCharacterSet": "AL16UTF16", "enableArchiveMode": true } }, "databases": [ { "databaseName": "orclaba", "databaseConfiguration": { "oracleConfig": { "parameterProfileId": "7fd659fe-bc06-4c98-b931-3499f97a877a", "optionsProfile": "Oracle 21c Options Profile" } } } ], "tags": [] } "@ try { $result = Invoke-RestMethod -Uri $URL -method POST -body $body -ContentType "application/json" -headers $headers; $result; } catch { $_.Exception.Message $respStream = $_.Exception.Response.GetResponseStream() $reader = New-Object System.IO.StreamReader($respStream) $respBody = $reader.ReadToEnd() | ConvertFrom-Json $respBody; }

Availability Machine

Protect your production database with continuous backup of transactional data and logs. Create and store all kinds of data, including table dumps and anonymized data, for secondary environments. Policy-driven and secure sharing of enterprise data across regions and clouds.

Dataflix - Netflix for enterprise data

Browse your data catalog by time, sensitivity, and region to find exactly what you need. Enjoy instant access to clone, import, or download data in any format across multiple regions. Preview data, pin your favorite data points, and dive deeper into insights with easy annotation, comparison, and customizable metadata.

Customer Feature

Media Giant

"Tessell enables Forbes’ mission, reducing database costs >25%, improving customer database-backed page load times 42%-50%, and by providing internal on-demand development environments in less than 7 minutes."

Sameer Patwardhan

Sameer Patwardhan

SVP, Technology, Forbes

Media Giant

"Tessell enables Forbes’ mission, reducing database costs >25%, improving customer database-backed page load times 42%-50%, and by providing internal on-demand development environments in less than 7 minutes."

Read Case Study
42%-50%
decrease in query times
> 25%
in cost savings
< 7 minutes
on-demand provisioning

Sameer Patwardhan

SVP, Technology, Forbes

Create a database in 10 minutes