Deployments interface
表示部署的接口。
方法
方法详细信息
createOrUpdate(string, string, string, string, string, Deployment, DeploymentsCreateOrUpdateOptionalParams)
创建新的或更新现有的 API 部署。
function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceName: string, apiName: string, deploymentName: string, resource: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<DeploymentsCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
Azure API 中心服务的名称。
- workspaceName
-
string
工作区的名称。
- apiName
-
string
API 的名称。
- deploymentName
-
string
API 部署的名称。
- resource
- Deployment
资源创建参数。
选项参数。
返回
Promise<DeploymentsCreateOrUpdateResponse>
delete(string, string, string, string, string, DeploymentsDeleteOptionalParams)
删除 API 部署。
function delete(resourceGroupName: string, serviceName: string, workspaceName: string, apiName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
Azure API 中心服务的名称。
- workspaceName
-
string
工作区的名称。
- apiName
-
string
API 的名称。
- deploymentName
-
string
API 部署的名称。
- options
- DeploymentsDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, string, string, DeploymentsGetOptionalParams)
返回 API 部署的详细信息。
function get(resourceGroupName: string, serviceName: string, workspaceName: string, apiName: string, deploymentName: string, options?: DeploymentsGetOptionalParams): Promise<DeploymentsGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
Azure API 中心服务的名称。
- workspaceName
-
string
工作区的名称。
- apiName
-
string
API 的名称。
- deploymentName
-
string
API 部署的名称。
- options
- DeploymentsGetOptionalParams
选项参数。
返回
Promise<DeploymentsGetResponse>
head(string, string, string, string, string, DeploymentsHeadOptionalParams)
检查指定的 API 部署是否存在。
function head(resourceGroupName: string, serviceName: string, workspaceName: string, apiName: string, deploymentName: string, options?: DeploymentsHeadOptionalParams): Promise<DeploymentsHeadResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
Azure API 中心服务的名称。
- workspaceName
-
string
工作区的名称。
- apiName
-
string
API 的名称。
- deploymentName
-
string
API 部署的名称。
- options
- DeploymentsHeadOptionalParams
选项参数。
返回
Promise<DeploymentsHeadResponse>
list(string, string, string, string, DeploymentsListOptionalParams)
返回 API 部署的集合。
function list(resourceGroupName: string, serviceName: string, workspaceName: string, apiName: string, options?: DeploymentsListOptionalParams): PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
Azure API 中心服务的名称。
- workspaceName
-
string
工作区的名称。
- apiName
-
string
API 的名称。
- options
- DeploymentsListOptionalParams
选项参数。