你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResourceProviderCollection.GetAll(String, CancellationToken) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取订阅的所有资源提供程序。
- 请求路径/订阅/{subscriptionId}/providers
- 操作IdProviders_List
public virtual Azure.Pageable<Azure.ResourceManager.Resources.ResourceProviderResource> GetAll (string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.ResourceProviderResource>
override this.GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.ResourceProviderResource>
Public Overridable Function GetAll (Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ResourceProviderResource)
参数
- expand
- String
要包含在结果中的属性。 例如,在查询字符串中使用 &$expand=metadata 来检索资源提供程序元数据。 若要在响应中包含属性别名,请使用 $expand=resourceTypes/aliases。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
可能需要多个服务请求来循环访问的 的 ResourceProviderResource 集合。