共用方式為


ResourcesListOptionalParams interface

選擇性參數。

Extends

屬性

expand

要包含在回應中的其他屬性逗號分隔清單。 有效值包括 createdTimechangedTimeprovisioningState。 例如,$expand=createdTime,changedTime

filter

要套用至作業的篩選條件。

篩選比較運算符包括 eq (equals) 和 ne (不等於),可以搭配下列屬性使用:locationresourceTypenameresourceGroupidentityidentity/principalIdplanplan/publisherplan/productplan/nameplan/versionplan/promotionCode

例如,若要依資源類型進行篩選,請使用 $filter=resourceType eq 'Microsoft.Network/virtualNetworks'


substringof(value, property) 可用來篩選下列目前支援之屬性的子字串:nameresourceGroup

例如,若要在資源名稱中的任何位置取得具有 『demo』 的所有資源,請使用 $filter=substringof('demo', name)

您也可以使用 and/or 運算符來合併多個子字串作業。

請注意,使用篩選時,透過 $top 查詢的任何截斷結果數目也可能不相容。


資源可以依標籤名稱和值進行篩選。 例如,若要篩選標籤名稱和值,請使用 $filter=tagName eq 'tag1' and tagValue eq 'Value1'。 請注意,當資源依標籤名稱和值篩選時,結果中不會傳回每個資源的原始標籤。 透過 $expand 查詢的其他屬性清單,在依卷標名稱/值進行篩選時可能也不相容。

僅針對標籤名稱,可以使用下列語法來篩選資源:$filter=startswith(tagName, 'depart')。 此查詢會傳回前面加上片語 depart 標籤名稱的所有資源(例如,departmentdepartureDatedepartureTime等)


請注意,篩選資源時可以結合某些屬性,包括下列內容:substringof() and/or resourceTypeplan and plan/publisher and plan/nameidentity and identity/principalId

top

如果使用此 API 的分頁版本,則每個頁面的建議數目。

繼承的屬性

abortSignal

可用來中止要求的訊號。

onResponse

每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。

requestOptions

建立和傳送此作業之 HTTP 要求時所使用的選項。

serializerOptions

覆寫串行化/取消串行化行為的選項。

tracingOptions

啟用追蹤時所使用的選項。

屬性詳細資料

expand

要包含在回應中的其他屬性逗號分隔清單。 有效值包括 createdTimechangedTimeprovisioningState。 例如,$expand=createdTime,changedTime

expand?: string

屬性值

string

filter

要套用至作業的篩選條件。

篩選比較運算符包括 eq (equals) 和 ne (不等於),可以搭配下列屬性使用:locationresourceTypenameresourceGroupidentityidentity/principalIdplanplan/publisherplan/productplan/nameplan/versionplan/promotionCode

例如,若要依資源類型進行篩選,請使用 $filter=resourceType eq 'Microsoft.Network/virtualNetworks'


substringof(value, property) 可用來篩選下列目前支援之屬性的子字串:nameresourceGroup

例如,若要在資源名稱中的任何位置取得具有 『demo』 的所有資源,請使用 $filter=substringof('demo', name)

您也可以使用 and/or 運算符來合併多個子字串作業。

請注意,使用篩選時,透過 $top 查詢的任何截斷結果數目也可能不相容。


資源可以依標籤名稱和值進行篩選。 例如,若要篩選標籤名稱和值,請使用 $filter=tagName eq 'tag1' and tagValue eq 'Value1'。 請注意,當資源依標籤名稱和值篩選時,結果中不會傳回每個資源的原始標籤。 透過 $expand 查詢的其他屬性清單,在依卷標名稱/值進行篩選時可能也不相容。

僅針對標籤名稱,可以使用下列語法來篩選資源:$filter=startswith(tagName, 'depart')。 此查詢會傳回前面加上片語 depart 標籤名稱的所有資源(例如,departmentdepartureDatedepartureTime等)


請注意,篩選資源時可以結合某些屬性,包括下列內容:substringof() and/or resourceTypeplan and plan/publisher and plan/nameidentity and identity/principalId

filter?: string

屬性值

string

top

如果使用此 API 的分頁版本,則每個頁面的建議數目。

top?: number

屬性值

number

繼承的屬性詳細資料

abortSignal

可用來中止要求的訊號。

abortSignal?: AbortSignalLike

屬性值

繼承自 coreClient.OperationOptions.abortSignal

onResponse

每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。

onResponse?: RawResponseCallback

屬性值

繼承自 coreClient.OperationOptions.onResponse

requestOptions

建立和傳送此作業之 HTTP 要求時所使用的選項。

requestOptions?: OperationRequestOptions

屬性值

繼承自 coreClient.OperationOptions.requestOptions

serializerOptions

覆寫串行化/取消串行化行為的選項。

serializerOptions?: SerializerOptions

屬性值

繼承自 coreClient.OperationOptions.serializerOptions

tracingOptions

啟用追蹤時所使用的選項。

tracingOptions?: OperationTracingOptions

屬性值

繼承自 coreClient.OperationOptions.tracingOptions