Get-FinOpsCostExport 명령
Get-FinOpsCostExport 명령은 지정된 범위에 대한 Cost Management 내보내기 목록을 가져옵니다.
이 명령은 다음 API 버전으로 테스트되었습니다.
- 2023-07-01-preview(기본값) – FocusCost 및 기타 데이터 세트를 사용하도록 설정합니다.
- 2023-08-01
- 2023-03-01
구문
Get-FinOpsCostExport `
[-Name <string>] `
[-Scope <string>] `
[-DataSet <string>] `
[-StorageAccountId <string>] `
[-StorageContainer <string>] `
[-RunHistory] `
[-ApiVersion <string>]
매개 변수
속성 | 설명 |
---|---|
‑Name |
선택 사항입니다. 내보내기의 이름입니다. 와일드카드를 지원합니다. |
‑Scope |
선택 사항. 내보내기를 만든 범위의 리소스 ID입니다. 비어 있는 경우 기본값은 현재 구독 컨텍스트입니다. |
‑DataSet |
선택 사항. 내보내기를 가져올 데이터 세트입니다. 허용되는 값 = "ActualCost", "AmortizedCost". 기본값 = null(모든 내보내기). |
‑StorageAccountId |
선택 사항. 내보내기를 가져올 스토리지 계정의 리소스 ID입니다. 기본값 = null(모든 내보내기). |
‑StorageContainer |
선택 사항. 내보내기를 가져올 컨테이너의 이름입니다. 와일드카드를 지원합니다. 기본값 = null(모든 내보내기). |
‑RunHistory |
선택 사항. 실행 기록을 확장해야 하는지 여부를 나타냅니다. 기본값은 False입니다. |
‑ApiVersion |
선택 사항. Cost Management를 호출할 때 사용할 API 버전은 API를 내보냅니다. 기본값 = 2023-07-01-preview. |
반환 값
FinOpsCostExport 개체
속성 | Type | JSON 경로 |
---|---|---|
Name |
문자열 | name |
Id |
문자열 | id |
Type |
문자열 | type |
eTag |
문자열 | eTag |
Description |
문자열 | properties.exportDescription |
Dataset |
문자열 | properties.definition.type |
DatasetVersion |
문자열 | properties.definition.configuration.dataVersion |
DatasetFilters |
문자열 | properties.definition.configuration.filter |
DatasetTimeFrame |
문자열 | properties.definition.timeframe |
DatasetStartDate |
DateTime | properties.definition.timePeriod.from |
DatasetEndDate |
DateTime | properties.definition.timePeriod.to |
DatasetGranularity |
문자열 | properties.definition.dataset.granularity |
ScheduleStatus |
문자열 | properties.schedule.status |
ScheduleRecurrence |
문자열 | properties.schedule.recurrence |
ScheduleStartDate |
DateTime | properties.schedule.recurrencePeriod.from |
ScheduleEndDate |
DateTime | properties.schedule.recurrencePeriod.to |
NextRuntimeEstimate |
DateTime | properties.nextRunTimeEstimate |
Format |
문자열 | properties.format |
StorageAccountId |
문자열 | properties.deliveryInfo.destination.resourceId |
StorageContainer |
문자열 | properties.deliveryInfo.destination.container |
StoragePath |
문자열 | properties.deliveryInfo.destination.rootfolderpath |
OverwriteData |
Boolean | properties.deliveryInfo.dataOverwriteBehavior == "OverwritePreviousReport" |
PartitionData |
Boolean | properties.deliveryInfo.partitionData |
CompressionMode |
문자열 | properties.deliveryInfo.compressionMode |
RunHistory |
FinOpsCostExportRunHistory[] | properties.runHistory.value |
FinOpsCostExportRunHistory 개체
속성 | Type | JSON 경로 |
---|---|---|
Id |
문자열 | properties.runHistory.value[].id |
ExecutionType |
문자열 | properties.runHistory.value[].properties.executionType |
FileName |
문자열 | properties.runHistory.value[].fileName |
StartTime |
DateTime | properties.runHistory.value[].processingStartTime |
EndTime |
DateTime | properties.runHistory.value[].processingEndTime |
Status |
문자열 | properties.runHistory.value[].status |
SubmittedBy |
문자열 | properties.runHistory.value[].submittedBy |
SubmittedTime |
DateTime | properties.runHistory.value[].submittedTime |
예제
구독에 대한 모든 비용 내보내기 가져오기
Get-FinOpsCostExport `
-Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
구독에 대한 모든 내보내기를 가져옵니다. 중첩된 리소스 그룹에 내보내기가 포함되지 않습니다.
와일드카드 이름과 일치하는 내보내기 가져오기
Get-FinOpsCostExport `
-Name mtd* `
-Scope "providers/Microsoft.Billing/billingAccounts/00000000"
지정된 청구 계정 범위 내에서 이름이 일치하는 와일드카드 mtd*를 사용하여 내보내기를 가져옵니다. 중첩된 리소스 그룹에 내보내기가 포함되지 않습니다.
모든 분할 상환 비용 내보내기 가져오기
Get-FinOpsCostExport `
-DataSet "AmortizedCost"
현재 컨텍스트 구독 범위 내의 모든 내보내기를 가져오고 데이터 세트 AmortizedCost로 필터링합니다.
특정 스토리지 계정을 사용하여 내보내기 가져오기
Get-FinOpsCostExport `
-Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"`
-StorageAccountId "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount"
특정 스토리지 계정으로 필터링된 구독 범위 내의 모든 내보내기를 가져옵니다.
특정 컨테이너를 사용하여 내보내기 가져오기
Get-FinOpsCostExport `
-Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" `
-StorageContainer "MyContainer*"
특정 컨테이너에 대한 구독 범위 내의 모든 내보내기를 가져옵니다. 와일드카드를 지원합니다.
특정 API 버전을 사용하여 내보내기 가져오기
Get-FinOpsCostExport `
-Scope "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
-StorageContainer "mtd*"
-ApiVersion "2023-08-01"
-StorageContainer "MyContainer*"
특정 API 버전을 사용하여 와일드카드 패턴과 일치하는 컨테이너에 대한 구독 범위 내의 모든 내보내기를 가져옵니다.
관련 콘텐츠
관련 제품:
관련 솔루션: