Skip to content

Commit

Permalink
Change initial Azure Region Key 'location' to 'Region' in AdminWeb Re…
Browse files Browse the repository at this point in the history
…gion Page
  • Loading branch information
powerkimhub committed Apr 11, 2024
1 parent 0451e20 commit fafe0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api-runtime/rest-runtime/admin-web/AdminWeb-CIM.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func makeOnchangeRegionProviderFunc_js() string {
region = '(ohio)us-east-2a'
break;
case "AZURE":
regionInfo = '[{"Key":"location", "Value":"northeurope"}, {"Key":"Zone", "Value":"1"}]'
regionInfo = '[{"Key":"Region", "Value":"northeurope"}, {"Key":"Zone", "Value":"1"}]'
region = 'northeurope'
break;
case "GCP":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ curl -X POST http://$RESTSERVER:1024/spider/driver -H 'Content-Type: application
curl -X POST http://$RESTSERVER:1024/spider/credential -H 'Content-Type: application/json' -d '{"CredentialName":"azure-credential01","ProviderName":"AZURE", "KeyValueInfoList": [{"Key":"ClientId", "Value":"XXXX-XXXX"}, {"Key":"ClientSecret", "Value":"xxxx-xxxx"}, {"Key":"TenantId", "Value":"xxxx-xxxx"}, {"Key":"SubscriptionId", "Value":"xxxx-xxxx"}]}'

# for Cloud Region Info
curl -X POST http://$RESTSERVER:1024/spider/region -H 'Content-Type: application/json' -d '{"RegionName":"azure-northeu","ProviderName":"AZURE", "KeyValueInfoList": [{"Key":"location", "Value":"northeurope"}, {"Key":"Zone", "Value":"1"}]}'
curl -X POST http://$RESTSERVER:1024/spider/region -H 'Content-Type: application/json' -d '{"RegionName":"azure-northeu","ProviderName":"AZURE", "KeyValueInfoList": [{"Key":"Region", "Value":"northeurope"}, {"Key":"Zone", "Value":"1"}]}'

# for Cloud Connection Config Info
curl -X POST http://$RESTSERVER:1024/spider/connectionconfig -H 'Content-Type: application/json' -d '{"ConfigName":"azure-northeu-config","ProviderName":"AZURE", "DriverName":"azure-driver01", "CredentialName":"azure-credential01", "RegionName":"azure-northeu"}'
Expand Down

0 comments on commit fafe0d6

Please sign in to comment.