Operations - List
清單 所有可用的 REST API 作業。
GET https://management.azure.com/providers/Microsoft.DBforMySQL/operations?api-version=2023-12-30
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
OperationList
Sample Request
Sample Response
{
"value": [
{
"name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/read",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Firewall Rules",
"operation": "List/Get Firewall Rules",
"description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/write",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Firewall Rules",
"operation": "Create/Update Firewall Rule",
"description": "Creates a firewall rule with the specified parameters or update an existing rule."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/delete",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Firewall Rules",
"operation": "Delete Firewall Rule",
"description": "Deletes an existing firewall rule."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/read",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "MySQL Server",
"operation": "List/Get MySQL Servers",
"description": "Return the list of servers or gets the properties for the specified server."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/write",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "MySQL Server",
"operation": "Create/Update MySQL Server",
"description": "Creates a server with the specified parameters or update the properties or tags for the specified server."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/delete",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "MySQL Server",
"operation": "Delete MySQL Server",
"description": "Deletes an existing server."
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Database Metric Definition",
"operation": "Get database metric definitions",
"description": "Return types of metrics that are available for databases"
},
"properties": {
"serviceSpecification": {
"metricSpecifications": [
{
"name": "cpu_percent",
"displayName": "CPU percent",
"displayDescription": "CPU percent",
"unit": "Percent",
"aggregationType": "Average",
"fillGapWithZero": true
},
{
"name": "memory_percent",
"displayName": "Memory percent",
"displayDescription": "Memory percent",
"unit": "Percent",
"aggregationType": "Average",
"fillGapWithZero": true
},
{
"name": "io_consumption_percent",
"displayName": "IO percent",
"displayDescription": "IO percent",
"unit": "Percent",
"aggregationType": "Average",
"fillGapWithZero": true
},
{
"name": "storage_percent",
"displayName": "Storage percentage",
"displayDescription": "Storage percentage",
"unit": "Percent",
"aggregationType": "Average"
},
{
"name": "storage_used",
"displayName": "Storage used",
"displayDescription": "Storage used",
"unit": "Bytes",
"aggregationType": "Average"
},
{
"name": "storage_limit",
"displayName": "Storage limit",
"displayDescription": "Storage limit",
"unit": "Bytes",
"aggregationType": "Average"
},
{
"name": "serverlog_storage_percent",
"displayName": "Server Log storage percent",
"displayDescription": "Server Log storage percent",
"unit": "Percent",
"aggregationType": "Average"
},
{
"name": "serverlog_storage_usage",
"displayName": "Server Log storage used",
"displayDescription": "Server Log storage used",
"unit": "Bytes",
"aggregationType": "Average"
},
{
"name": "serverlog_storage_limit",
"displayName": "Server Log storage limit",
"displayDescription": "Server Log storage limit",
"unit": "Bytes",
"aggregationType": "Average"
},
{
"name": "active_connections",
"displayName": "Total active connections",
"displayDescription": "Total active connections",
"unit": "Count",
"aggregationType": "Average",
"fillGapWithZero": true
},
{
"name": "connections_failed",
"displayName": "Total failed connections",
"displayDescription": "Total failed connections",
"unit": "Count",
"aggregationType": "Average",
"fillGapWithZero": true
},
{
"name": "seconds_behind_master",
"displayName": "Replication lag in seconds",
"displayDescription": "Replication lag in seconds",
"unit": "Count",
"aggregationType": "Average",
"fillGapWithZero": true
}
]
}
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Database Metric Definition",
"operation": "Read diagnostic setting",
"description": "Gets the disagnostic setting for the resource"
}
},
{
"name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write",
"display": {
"provider": "Microsoft DB for MySQL",
"resource": "Database Metric Definition",
"operation": "Write diagnostic setting",
"description": "Creates or updates the diagnostic setting for the resource"
}
}
]
}
定義
名稱 | Description |
---|---|
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Operation |
REST API 作業定義。 |
Operation |
顯示與作業相關聯的元數據。 |
Operation |
資源提供者作業的清單。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細資料。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
Operation
REST API 作業定義。
名稱 | 類型 | Description |
---|---|---|
display |
這個特定作業或動作的當地語系化顯示資訊。 |
|
name |
string |
在這個特定物件上執行的作業名稱。 |
origin |
string |
作業的預定執行程式。 |
properties |
object |
作業的其他描述。 |
OperationDisplay
顯示與作業相關聯的元數據。
名稱 | 類型 | Description |
---|---|---|
description |
string |
作業描述。 |
operation |
string |
作業的當地語系化易記名稱。 |
provider |
string |
作業資源提供者名稱。 |
resource |
string |
執行作業的資源。 |
OperationListResult
資源提供者作業的清單。
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
URL 用戶端應該使用 來擷取每個伺服器端分頁) 的下一個頁面 (。 |
value |
可用作業詳細數據的集合 |