diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json index 93b766f08b6f..5ade41f06fad 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerApps.json @@ -755,94 +755,129 @@ "CustomHostnameAnalysisResult": { "description": "Custom domain analysis.", "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" - } - ], "properties": { - "properties": { - "description": "CustomHostnameAnalysisResult resource specific properties", + "hostName": { + "description": "Host name that was analyzed", + "type": "string", + "readOnly": true + }, + "isHostnameAlreadyVerified": { + "description": "true if hostname is already verified; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "customDomainVerificationTest": { + "description": "DNS verification test result.", + "enum": [ + "Passed", + "Failed", + "Skipped" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DnsVerificationTestResult", + "modelAsString": false + } + }, + "customDomainVerificationFailureInfo": { + "description": "Raw failure information if DNS verification fails.", "type": "object", "properties": { - "hostName": { - "description": "Host name that was analyzed", + "code": { + "description": "Standardized string to programmatically identify the error.", "type": "string", "readOnly": true }, - "isHostnameAlreadyVerified": { - "description": "true if hostname is already verified; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "customDomainVerificationTest": { - "description": "DNS verification test result.", - "enum": [ - "Passed", - "Failed", - "Skipped" - ], + "message": { + "description": "Detailed error description and debugging information.", "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "DnsVerificationTestResult", - "modelAsString": false - } - }, - "customDomainVerificationFailureInfo": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse", - "description": "Raw failure information if DNS verification fails.", "readOnly": true }, - "hasConflictOnManagedEnvironment": { - "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", - "type": "boolean", - "readOnly": true - }, - "conflictingContainerAppResourceId": { - "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "target": { + "description": "Detailed error description and debugging information.", "type": "string", "readOnly": true }, - "cNameRecords": { - "description": "CName records visible for this hostname.", + "details": { "type": "array", + "description": "Details or the error", "items": { - "type": "string" - } - }, - "txtRecords": { - "description": "TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "aRecords": { - "description": "A records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateCNameRecords": { - "description": "Alternate CName records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } - }, - "alternateTxtRecords": { - "description": "Alternate TXT records visible for this hostname.", - "type": "array", - "items": { - "type": "string" - } + "description": "Detailed errors.", + "type": "object", + "properties": { + "code": { + "description": "Standardized string to programmatically identify the error.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Detailed error description and debugging information.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, + "x-ms-identifiers": [ + "code" + ] } }, - "x-ms-client-flatten": true + "readOnly": true + }, + "hasConflictOnManagedEnvironment": { + "description": "true if there is a conflict on the Container App's managed environment; otherwise, false.", + "type": "boolean", + "readOnly": true + }, + "conflictingContainerAppResourceId": { + "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.", + "type": "string", + "readOnly": true + }, + "cNameRecords": { + "description": "CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "txtRecords": { + "description": "TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "aRecords": { + "description": "A records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateCNameRecords": { + "description": "Alternate CName records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } + }, + "alternateTxtRecords": { + "description": "Alternate TXT records visible for this hostname.", + "type": "array", + "items": { + "type": "string" + } } - } + }, + "x-ms-client-flatten": true } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json index 50a0e415f06a..a5bfe5a7dea9 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json @@ -10,35 +10,32 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0", - "properties": { - "hostName": "my.name.corp", - "isHostnameAlreadyVerified": true, - "customDomainVerificationTest": "Passed", - "customDomainVerificationFailureInfo": {}, - "hasConflictOnManagedEnvironment": false, - "conflictingContainerAppResourceId": "", - "cNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "txtRecords": [ - "txtRecord1", - "txtRecord2" - ], - "aRecords": [ - "aRecord1", - "aRecord2" - ], - "alternateCNameRecords": [ - "cNameRecord1", - "cNameRecord2" - ], - "alternateTxtRecords": [ - "txtRecord1", - "txtRecord2" - ] - } + "hostName": "my.name.corp", + "isHostnameAlreadyVerified": true, + "customDomainVerificationTest": "Passed", + "customDomainVerificationFailureInfo": {}, + "hasConflictOnManagedEnvironment": false, + "conflictingContainerAppResourceId": "", + "cNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "txtRecords": [ + "txtRecord1", + "txtRecord2" + ], + "aRecords": [ + "aRecord1", + "aRecord2" + ], + "alternateCNameRecords": [ + "cNameRecord1", + "cNameRecord2" + ], + "alternateTxtRecords": [ + "txtRecord1", + "txtRecord2" + ] } } }