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

Adding put and delete BMI operations to baremetalinfrastructure.json spec #24059

Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,93 @@
}
}
},
"delete": {
"tags": [
"BareMetalInfrastructure"
],
"operationId": "AzureBareMetalInstances_Delete",
"summary": "Deletes an Azure BareMetal instance.",
"description": "Deletes an Azure BareMetal instance for the specified subscription, resource group, and instance name.",
"x-ms-examples": {
"Delete an AzureBareMetal instance": {
"$ref": "./examples/AzureBareMetalInstances_Delete.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/AzureBareMetalInstanceNameParameter"
}
],
"responses": {
"501": {
"description": "This action must be performed through our operations team.",
"x-ms-error-response": true
},
"default": {
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}
},
"put": {
"tags": [
"BareMetalInfrastructure"
],
"operationId": "AzureBareMetalInstances_Put",
"summary": "Adds an Azure BareMetal Instance.",
"description": "Adds an Azure BareMetal instance for the specified subscription, resource group, and instance name.",
"x-ms-examples": {
"Put a new AzureBareMetal instance": {
"$ref": "./examples/AzureBareMetalInstances_Put.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/AzureBareMetalInstanceNameParameter"
},
{
"in": "body",
"name": "requestBodyParameters",
"required": false,
"schema": {
"$ref": "#/definitions/AzureBareMetalInstance"
},
"description": "request body for put call"
}
],
"responses": {
"501": {
"description": "This action must be performed through our operations team.",
"x-ms-error-response": true
},
"default": {
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
}
},
"patch": {
"tags": [
"BareMetalInfrastructure"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2023-04-06",
"subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd",
"resourceGroupName": "myResourceGroup",
"azureBareMetalInstanceName": "myAzureBareMetalInstance"
},
"responses": {
"501": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2023-04-06",
"subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd",
"resourceGroupName": "myResourceGroup",
"azureBareMetalInstanceName": "myAzureBareMetalInstance"
},
"responses": {
"501": {}
}
}