Apps - Delete
IoT Central 애플리케이션을 삭제합니다.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}?api-version=2021-06-01
URI 매개 변수
Name
In(다음 안에)
필수
형식
Description
resourceGroupName
path
True
string
IoT Central 애플리케이션을 포함하는 리소스 그룹의 이름입니다.
resourceName
path
True
string
IoT Central 애플리케이션의 ARM 리소스 이름입니다.
subscriptionId
path
True
string
구독 식별자입니다.
api-version
query
True
string
API의 버전입니다.
응답
Name
형식
Description
200 OK
삭제 작업에 대한 상태 폴링 요청에 대한 응답으로 반환됩니다. 본문에는 전환 프로비전 상태를 나타내는 리소스 표현이 포함됩니다.
202 Accepted
수락됨 - 삭제 요청 수락됨; 작업이 비동기적으로 완료됩니다.
204 No Content
장기 실행 삭제 작업이 성공적으로 완료되면 상태 폴링 요청이 서비스에서 IoT Central 애플리케이션 메타데이터를 찾고 삭제 작업의 상태가 완료된 상태로 설정되면 204 콘텐츠 없음 상태 코드가 반환됩니다.
Other Status Codes
CloudError
DefaultErrorResponse
보안
azure_auth
Azure Active Directory OAuth2 Flow
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
Name
Description
user_impersonation
사용자 계정 가장
예제
Apps_Delete
샘플 요청
DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp?api-version=2021-06-01
import com.azure.core.util.Context;
/** Samples for Apps Delete. */
public final class Main {
/*
* x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Delete.json
*/
/**
* Sample code: Apps_Delete.
*
* @param manager Entry point to IotCentralManager.
*/
public static void appsDelete(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
manager.apps().delete("resRg", "myIoTCentralApp", Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.iotcentral import IotCentralClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-iotcentral
# USAGE
python apps_delete.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = IotCentralClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
response = client.apps.begin_delete(
resource_group_name="resRg",
resource_name="myIoTCentralApp",
).result()
print(response)
# x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Delete.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
package armiotcentral_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotcentral"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Delete.json
func ExampleAppsClient_BeginDelete() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armiotcentral.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAppsClient().BeginDelete(ctx, "resRg", "myIoTCentralApp", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
샘플 응답
message: Created
code: 200
{
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
정의
CloudError
Object
오류 세부 정보입니다.
Name
형식
Description
error.code
string
오류 코드입니다.
error.details
CloudErrorBody []
오류에 대한 추가 세부 정보 목록입니다.
error.message
string
오류 메시지입니다.
error.target
string
특정 오류의 대상입니다.
CloudErrorBody
Object
오류 응답에 대한 세부 정보입니다.
Name
형식
Description
code
string
오류 코드입니다.
details
CloudErrorBody []
오류에 대한 추가 세부 정보 목록입니다.
message
string
오류 메시지입니다.
target
string
특정 오류의 대상입니다.