你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Workspaces interface
Interface representing a Workspaces.
Methods
create |
Create or update a workspace. |
delete(string, string, Workspaces |
Remove a workspace. |
get(string, string, Workspaces |
Get a workspace. |
list |
List workspaces. |
list |
List workspaces in subscription. |
update(string, string, Workspaces |
Update a workspace. |
Method Details
createOrUpdate(string, string, Workspace, WorkspacesCreateOrUpdateOptionalParams)
Create or update a workspace.
function createOrUpdate(resourceGroupName: string, workspaceName: string, workspace: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<Workspace>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace
- workspace
- Workspace
Object containing Workspace definitions.
The options parameters.
Returns
Promise<Workspace>
delete(string, string, WorkspacesDeleteOptionalParams)
Remove a workspace.
function delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace
- options
- WorkspacesDeleteOptionalParams
The options parameters.
Returns
Promise<void>
get(string, string, WorkspacesGetOptionalParams)
Get a workspace.
function get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<Workspace>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace
- options
- WorkspacesGetOptionalParams
The options parameters.
Returns
Promise<Workspace>
listByResourceGroup(string, WorkspacesListByResourceGroupOptionalParams)
List workspaces.
function listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace, Workspace[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
listBySubscription(WorkspacesListBySubscriptionOptionalParams)
List workspaces in subscription.
function listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Workspace, Workspace[], PageSettings>
Parameters
The options parameters.
Returns
update(string, string, WorkspacesUpdateOptionalParams)
Update a workspace.
function update(resourceGroupName: string, workspaceName: string, options?: WorkspacesUpdateOptionalParams): Promise<Workspace>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace
- options
- WorkspacesUpdateOptionalParams
The options parameters.
Returns
Promise<Workspace>