Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"body": [
{
"Name": "isxbox",
"Type": "ResourceProviderTestHost/TestResourceType"
}
],
"api-version": "2020-01-01"
},
"responses": {
"200": {
"body": {
"name": "isxbox",
"type": "ResourceProviderTestHost/TestResourceType",
"status": "Allowed"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,55 @@
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Resources/checkResourceName": {
"post": {
"tags": [
"Tenants"
],
"operationId": "checkResourceName",
"description": "Checks if the resource name is valid or not",
"summary": "Checks resource name validity",
"consumes": [
"application/json"
],
"parameters": [
{
"in": "body",
"name": "",
"schema": {
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns status as allowed or not.",
"schema": {
"$ref": "#/definitions/CheckResourceNameResult"
}
}
},
"x-ms-examples": {
"Check validity for a resource name.": {
"$ref": "./examples/CheckResourceName.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -518,6 +567,23 @@
],
"description": "Tenant Ids information."
},
"CheckResourceNameResult": {
"properties": {
"name": {
"description": "Name of Resource",
"type": "string"
},
"type": {
"description": "Type of Resource",
"type": "string"
},
"status": {
"description": "Is the resource name allowed or not",
"type": "string"
}
},
"description": "Validity of Resource name for the given type"
},
"Operation": {
"description": "Microsoft.Resources operation",
"type": "object",
Expand Down