Configuring an existing private DNS zone for a database and a Storage Account File Share using the API (Technical Preview)
Learn about how to configure existing private DNS zones for a database and a Storage Account File Share using the API.
To learn about the CLI option and about the prerequisites:
- for the database, see Configuring an existing private DNS zone for a database
- for the Storage Account File Share, see Configuring an existing private DNS zone for a Storage Account File Share
To configure the private DNS zones for the database and the Storage Account
File Share, specify the full resource ID of the private DNS zones where you want
to configure them.
To configure the Azure private DNS zone IDs for the database and the Storage
Account File Share, in config.properties
of the
cluster
endpoint, post the full resource IDs in the
following parameters respectively:
- For the database, use
azure.database.privateDNSZoneId
- For the Storage Account, use
azure.fileshare.privateDNSZoneId
Request example
Example for the base URL, which changes according to the region:
https://console.us-west-1.cdp.cloudera.com
curl -H "Cookie: cdp-session-token=${CST}" '[***BASE-URL***]/dex/api/v1/cluster' \
-H "Content-Type: application/json" \
-H 'accept: application/json' \
-X POST -d '{
"name": "[***NAME***]",
"env": "[***ENVIRONMENT-NAME***]",
"config": {
"properties": {
"loadbalancer.internal": "true",
"dbus-wxm-client.enabled": "false",
"kubernetes.api.allowList": "",
"loadbalancer.allowList": "",
"kubernetes.api.proxyCIDRList": "",
"subnets": "",
"loadBalancerSubnets": "",
"default-vc.create": "true",
"cde.deployPreviousVersion": "false",
"privateNetwork.enabled": "true",
"azure.fileshare.privateDNSZoneId": "[***AZURE-PRIVATEDNSZONE-RESOURCE-ID-FOR-STORAGE-ACCOUNT-FILE-SHARE***]",
"azure.database.privateDNSZoneId": "[***AZURE-PRIVATEDNSZONE-RESOURCE-ID-FOR-DATABASE***]"
},
"resources": {
"instance_type": "Standard_D8s_v4",
"min_spot_instances": "0",
"max_spot_instances": "0",
"min_instances": "0",
"max_instances": "50",
"initial_instances": "0",
"initial_spot_instances": "0",
"root_vol_size": "100",
"allp_instance_group_details": {
"instance_type": "Standard_D8s_v4",
"min_spot_instances": "0",
"max_spot_instances": "0",
"min_instances": "0",
"max_instances": "50",
"initial_instances": "0",
"initial_spot_instances": "0",
"root_vol_size": "100"
}
},
"tags": {}
},
"skipValidation": false
}'