你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Services interface

表示服务的接口。

方法详细信息

beginExportMetadataSchema(string, string, MetadataSchemaExportRequest, ServicesExportMetadataSchemaOptionalParams)

导出有效的元数据架构。

function beginExportMetadataSchema(resourceGroupName: string, serviceName: string, body: MetadataSchemaExportRequest, options?: ServicesExportMetadataSchemaOptionalParams): Promise<SimplePollerLike<OperationState<MetadataSchemaExportResult>, MetadataSchemaExportResult>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

body
MetadataSchemaExportRequest

作请求的内容

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<MetadataSchemaExportResult>, MetadataSchemaExportResult>>

beginExportMetadataSchemaAndWait(string, string, MetadataSchemaExportRequest, ServicesExportMetadataSchemaOptionalParams)

导出有效的元数据架构。

function beginExportMetadataSchemaAndWait(resourceGroupName: string, serviceName: string, body: MetadataSchemaExportRequest, options?: ServicesExportMetadataSchemaOptionalParams): Promise<MetadataSchemaExportResult>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

body
MetadataSchemaExportRequest

作请求的内容

返回

createOrUpdate(string, string, Service, ServicesCreateOrUpdateOptionalParams)

创建新的或更新现有 API。

function createOrUpdate(resourceGroupName: string, serviceName: string, resource: Service, options?: ServicesCreateOrUpdateOptionalParams): Promise<Service>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

resource
Service

资源创建参数。

options
ServicesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Service>

delete(string, string, ServicesDeleteOptionalParams)

删除指定的服务。

function delete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

options
ServicesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, ServicesGetOptionalParams)

返回服务的详细信息。

function get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<Service>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

options
ServicesGetOptionalParams

选项参数。

返回

Promise<Service>

listByResourceGroup(string, ServicesListByResourceGroupOptionalParams)

返回资源组中的服务集合。

function listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Service, Service[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

返回

listBySubscription(ServicesListBySubscriptionOptionalParams)

列出 Azure 订阅中的服务。

function listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Service, Service[], PageSettings>

参数

返回

update(string, string, ServiceUpdate, ServicesUpdateOptionalParams)

更新现有服务。

function update(resourceGroupName: string, serviceName: string, properties: ServiceUpdate, options?: ServicesUpdateOptionalParams): Promise<Service>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

Azure API 中心服务的名称。

properties
ServiceUpdate

要更新的资源属性。

options
ServicesUpdateOptionalParams

选项参数。

返回

Promise<Service>