Diagnostic interface
表示诊断的接口。
方法
| create |
创建新的诊断或更新现有诊断。 |
| delete(string, string, string, string, Diagnostic |
删除指定的诊断。 |
| get(string, string, string, Diagnostic |
获取由其标识符指定的诊断的详细信息。 |
| get |
获取由其标识符指定的诊断的实体状态 (Etag) 版本。 |
| list |
列出 API 管理服务实例的所有诊断。 |
| update(string, string, string, string, Diagnostic |
更新由其标识符指定的诊断的详细信息。 |
方法详细信息
createOrUpdate(string, string, string, DiagnosticContract, DiagnosticCreateOrUpdateOptionalParams)
创建新的诊断或更新现有诊断。
function createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise<DiagnosticCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- diagnosticId
-
string
诊断标识符。 当前 API 管理服务实例中必须是唯一的。
- parameters
- DiagnosticContract
创建参数。
选项参数。
返回
Promise<DiagnosticCreateOrUpdateResponse>
delete(string, string, string, string, DiagnosticDeleteOptionalParams)
删除指定的诊断。
function delete(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: DiagnosticDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- diagnosticId
-
string
诊断标识符。 当前 API 管理服务实例中必须是唯一的。
- ifMatch
-
string
实体的 ETag。 ETag 应与 GET 请求的标头响应中的当前实体状态匹配,或者它应为 * 进行无条件更新。
- options
- DiagnosticDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, DiagnosticGetOptionalParams)
获取由其标识符指定的诊断的详细信息。
function get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetOptionalParams): Promise<DiagnosticGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- diagnosticId
-
string
诊断标识符。 当前 API 管理服务实例中必须是唯一的。
- options
- DiagnosticGetOptionalParams
选项参数。
返回
Promise<DiagnosticGetResponse>
getEntityTag(string, string, string, DiagnosticGetEntityTagOptionalParams)
获取由其标识符指定的诊断的实体状态 (Etag) 版本。
function getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetEntityTagOptionalParams): Promise<DiagnosticGetEntityTagHeaders>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- diagnosticId
-
string
诊断标识符。 当前 API 管理服务实例中必须是唯一的。
选项参数。
返回
Promise<DiagnosticGetEntityTagHeaders>
listByService(string, string, DiagnosticListByServiceOptionalParams)
列出 API 管理服务实例的所有诊断。
function listByService(resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams): PagedAsyncIterableIterator<DiagnosticContract, DiagnosticContract[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
选项参数。
返回
update(string, string, string, string, DiagnosticContract, DiagnosticUpdateOptionalParams)
更新由其标识符指定的诊断的详细信息。
function update(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, options?: DiagnosticUpdateOptionalParams): Promise<DiagnosticUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceName
-
string
API 管理服务的名称。
- diagnosticId
-
string
诊断标识符。 当前 API 管理服务实例中必须是唯一的。
- ifMatch
-
string
实体的 ETag。 ETag 应与 GET 请求的标头响应中的当前实体状态匹配,或者它应为 * 进行无条件更新。
- parameters
- DiagnosticContract
诊断更新参数。
- options
- DiagnosticUpdateOptionalParams
选项参数。
返回
Promise<DiagnosticUpdateResponse>