Scheduled Actions - Run By Scope

지정된 scope 내에서 공유 예약된 작업을 실행합니다.

POST https://management.azure.com/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute?api-version=2023-11-01

URI 매개 변수

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

string

예약된 작업 이름입니다.

scope
path True

string

예약된 작업 작업과 연결된 scope. 여기에는 구독 scope 대한 'subscriptions/{subscriptionId}'가 포함됩니다. 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' scope, 청구 계정 scope 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}', 부서 scope 대한 'providers/Microsoft.Billing/billingAccountId}/{departmentId}'EnrollmentAccount scope 대한 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' BillingProfile scope 대한 'providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/{billingProfileId}' , InvoiceSection scope 대한 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSectionSectionId}', 외부 청구 계정 scope 대한 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' 및 외부 구독 scope 대한 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' 참고: 인사이트 경고는 구독 scope만 사용할 수 있습니다.

api-version
query True

string

이 작업에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

OK. 요청이 성공했습니다. 비용 분석 정보를 받는 데 최대 1시간이 걸릴 수 있습니다.

Other Status Codes

ErrorResponseWithNestedDetails

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow.

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

범위

Name Description
user_impersonation 사용자 계정 가장

예제

ScheduledActionRunByScope

샘플 요청

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource/execute?api-version=2023-11-01

샘플 응답

정의

Name Description
ErrorDetailsWithNestedDetails

오류의 세부 정보입니다.

ErrorResponseWithNestedDetails

오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다.

일부 오류 응답:

  • 429 TooManyRequests - 요청이 제한됩니다. "x-ms-ratelimit-microsoft.consumption-retry-after" 헤더에 지정된 시간을 기다린 후 다시 시도합니다.

  • 503 ServiceUnavailable - 서비스를 일시적으로 사용할 수 없습니다. "Retry-After" 헤더에 지정된 시간 동안 기다린 후 다시 시도합니다.

ErrorDetailsWithNestedDetails

오류의 세부 정보입니다.

Name 형식 Description
code

string

오류 코드

details

ErrorDetailsWithNestedDetails[]

오류의 추가 세부 정보입니다.

message

string

작업이 실패한 이유를 나타내는 오류 메시지입니다.

ErrorResponseWithNestedDetails

오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다.

일부 오류 응답:

  • 429 TooManyRequests - 요청이 제한됩니다. "x-ms-ratelimit-microsoft.consumption-retry-after" 헤더에 지정된 시간을 기다린 후 다시 시도합니다.

  • 503 ServiceUnavailable - 서비스를 일시적으로 사용할 수 없습니다. "Retry-After" 헤더에 지정된 시간 동안 기다린 후 다시 시도합니다.

Name 형식 Description
error

ErrorDetailsWithNestedDetails

오류의 세부 정보입니다.