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

Workspaces interface

表示工作区的接口。

方法

createOrUpdate(string, string, string, Workspace, WorkspacesCreateOrUpdateOptionalParams)

创建新的或更新现有工作区。

delete(string, string, string, WorkspacesDeleteOptionalParams)

删除指定的工作区。

get(string, string, string, WorkspacesGetOptionalParams)

返回工作区的详细信息。

head(string, string, string, WorkspacesHeadOptionalParams)

检查指定的工作区是否存在。

list(string, string, WorkspacesListOptionalParams)

返回工作区的集合。

方法详细信息

createOrUpdate(string, string, string, Workspace, WorkspacesCreateOrUpdateOptionalParams)

创建新的或更新现有工作区。

function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceName: string, resource: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>

参数

resourceGroupName

string

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

serviceName

string

Azure API 中心服务的名称。

workspaceName

string

工作区的名称。

resource
Workspace

资源创建参数。

options
WorkspacesCreateOrUpdateOptionalParams

选项参数。

返回

delete(string, string, string, WorkspacesDeleteOptionalParams)

删除指定的工作区。

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

参数

resourceGroupName

string

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

serviceName

string

Azure API 中心服务的名称。

workspaceName

string

工作区的名称。

options
WorkspacesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, WorkspacesGetOptionalParams)

返回工作区的详细信息。

function get(resourceGroupName: string, serviceName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>

参数

resourceGroupName

string

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

serviceName

string

Azure API 中心服务的名称。

workspaceName

string

工作区的名称。

options
WorkspacesGetOptionalParams

选项参数。

返回

head(string, string, string, WorkspacesHeadOptionalParams)

检查指定的工作区是否存在。

function head(resourceGroupName: string, serviceName: string, workspaceName: string, options?: WorkspacesHeadOptionalParams): Promise<WorkspacesHeadResponse>

参数

resourceGroupName

string

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

serviceName

string

Azure API 中心服务的名称。

workspaceName

string

工作区的名称。

options
WorkspacesHeadOptionalParams

选项参数。

返回

list(string, string, WorkspacesListOptionalParams)

返回工作区的集合。

function list(resourceGroupName: string, serviceName: string, options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace, Workspace[], PageSettings>

参数

resourceGroupName

string

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

serviceName

string

Azure API 中心服务的名称。

options
WorkspacesListOptionalParams

选项参数。

返回