Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dataController onPremise property #10263

Merged
merged 14 commits into from
Jul 28, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,15 @@
{
"$ref": "#/parameters/resourceGroupName"
},
{
"name": "dataControllerResource",
"description": "desc",
"required": true,
"in": "body",
"schema": {
"$ref": "#/definitions/DataControllerResource"
}
},
{
"name": "dataControllerName",
"in": "path",
Expand Down Expand Up @@ -2290,10 +2299,11 @@
}
},
"DataControllerProperties": {
"description": "The data controller properties.",
"type": "object",
"properties": {
"dataController": {
"$ref": "#/definitions/DataController"
"onPremiseProperty": {
"$ref": "#/definitions/OnPremiseProperty"
},
"requestType": {
"$ref": "#/definitions/RequestType"
Expand All @@ -2312,28 +2322,22 @@
}
}
},
"DataController": {
"OnPremiseProperty": {
"description": "Properties from the on premise data controller",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"azureResourceType": {
"type": "string"
"format": "uuid",
"description": "A globally unique ID identifying the associated on premise cluster"
},
"subscription": {
"publicSigningKey": {
"type": "string",
"format": "uuid"
},
"resourceGroup": {
"type": "string"
"description": "Certificate that contains the on premise cluster public key used to verify signing"
},
"location": {
"type": "string"
"signingCertificateThumbprint": {
"type": "string",
"description": "Unique thumbprint returned to customer to verify the certificate being uploaded"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,29 @@
"resourceGroupName": "testrg",
"dataControllerName": "testdataController",
"api-version": "2017-07-24",
"parameters": {
"dataControllerResource": {
"location": "northeurope",
"tags": {
"mytag": "myval"
},
"properties": {}
"properties": {
"onPremiseProperty": {
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f",
"publicSigningKey": "publicOnPremSigningKey"
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {},
"properties": {
"onPremiseProperty": {
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f",
"publicSigningKey": "publicOnPremSigningKey",
"signingCertificateThumbprint": "Unique thumbprint returned to customer to verify the certificate being uploaded"
}
},
"systemData": {
"createdBy": "user1",
"createdByType": "user",
Expand All @@ -35,7 +46,13 @@
},
"201": {
"body": {
"properties": {},
"properties": {
"onPremiseProperty": {
"id": "12345678-1234-1234-ab12-1a2b3c4d5e6f",
"publicSigningKey": "publicOnPremSigningKey",
"signingCertificateThumbprint": "Unique thumbprint returned to customer to verify the certificate being uploaded"
}
},
"location": "northeurope",
"systemData": {
"createdBy": "user1",
Expand Down