다음을 통해 공유


Web Apps - Deploy Workflow Artifacts

웹 사이트 또는 배포 슬롯에 대한 아티팩트 만들기에 대한 설명입니다.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployWorkflowArtifacts?api-version=2023-12-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
name
path True

string

사이트 이름입니다.

resourceGroupName
path True

string

리소스가 속한 리소스 그룹의 이름입니다.

regex 패턴: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

Azure 구독 ID. GUID 형식 문자열입니다(예: 000000000-0000-0000-0000-0000-000000000000).

api-version
query True

string

API 버전

요청 본문

Name 형식 Description
appSettings

Object

워크플로의 애플리케이션 설정입니다.

files

object

앱의 파일입니다.

filesToDelete

string[]

삭제할 앱의 파일입니다.

응답

Name 형식 Description
200 OK

배포된 아티팩트입니다.

Other Status Codes

DefaultErrorResponse

오류 응답을 App Service.

보안

azure_auth

Azure Active Directory OAuth2 Flow

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Delete workflow artifacts
Deploys workflow artifacts

Delete workflow artifacts

샘플 요청

POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/deployWorkflowArtifacts?api-version=2023-12-01

{
  "filesToDelete": [
    "test/workflow.json",
    "test/"
  ]
}

샘플 응답

Deploys workflow artifacts

샘플 요청

POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/deployWorkflowArtifacts?api-version=2023-12-01

{
  "files": {
    "test1/workflow.json": {
      "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
          "When_events_are_available_in_Event_hub": {
            "inputs": {
              "parameters": {
                "eventHubName": "test123"
              },
              "serviceProviderConfiguration": {
                "connectionName": "eventHub",
                "operationId": "receiveEvents",
                "serviceProviderId": "/serviceProviders/eventHub"
              }
            },
            "splitOn": "@triggerOutputs()?['body']",
            "type": "ServiceProvider"
          }
        }
      },
      "kind": "Stateful"
    },
    "connections.json": {
      "serviceProviderConnections": {
        "eventHub": {
          "parameterValues": {
            "connectionString": "@appsetting('eventHub_connectionString')"
          },
          "serviceProvider": {
            "id": "/serviceProviders/eventHub"
          },
          "displayName": "example1"
        }
      },
      "managedApiConnections": {}
    }
  },
  "appSettings": {
    "eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE="
  }
}

샘플 응답

정의

Name Description
DefaultErrorResponse

오류 응답을 App Service.

Details
Error

오류 모델.

Object
WorkflowArtifacts

워크플로 필터입니다.

DefaultErrorResponse

오류 응답을 App Service.

Name 형식 Description
error

Error

오류 모델.

Details

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.

Error

오류 모델.

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

details

Details[]

자세한 오류입니다.

innererror

string

디버그 오류에 대한 자세한 정보입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.

Object

WorkflowArtifacts

워크플로 필터입니다.

Name 형식 Description
appSettings

Object

워크플로의 애플리케이션 설정입니다.

files

object

앱의 파일입니다.

filesToDelete

string[]

삭제할 앱의 파일입니다.