你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Operations - List
Lists所有可用的 REST API 操作。
GET https://management.azure.com/providers/Microsoft.DBforPostgreSQL/operations?api-version=2017-12-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
OperationList
Sample Request
GET https://management.azure.com/providers/Microsoft.DBforPostgreSQL/operations?api-version=2017-12-01
Sample Response
{
"value": [
{
"name": "Microsoft.DBforPostgreSQL/locations/performanceTiers/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Performance Tiers",
"operation": "List Performance Tiers",
"description": "Returns the list of Performance Tiers available."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "PostgreSQL Server",
"operation": "List/Get PostgreSQL Servers",
"description": "Return the list of servers or gets the properties for the specified server."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/write",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "PostgreSQL Server",
"operation": "Create/Update PostgreSQL Server",
"description": "Creates a server with the specified parameters or update the properties or tags for the specified server."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/delete",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "PostgreSQL Server",
"operation": "Delete PostgreSQL Server",
"description": "Deletes an existing server."
}
},
{
"name": "Microsoft.DBforPostgreSQL/performanceTiers/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Performance Tiers",
"operation": "List Performance Tiers",
"description": "Returns the list of Performance Tiers available."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/firewallRules/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"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.DBforPostgreSQL/servers/firewallRules/write",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Firewall Rules",
"operation": "Create/Update Firewall Rule",
"description": "Creates a firewall rule with the specified parameters or update an existing rule."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/firewallRules/delete",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Firewall Rules",
"operation": "Delete Firewall Rule",
"description": "Deletes an existing firewall rule."
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/metricDefinitions/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"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": "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": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/read",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Database Metric Definition",
"operation": "Read diagnostic setting",
"description": "Gets the disagnostic setting for the resource"
}
},
{
"name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/write",
"display": {
"provider": "Microsoft DB for PostgreSQL",
"resource": "Database Metric Definition",
"operation": "Write diagnostic setting",
"description": "Creates or updates the diagnostic setting for the resource"
}
}
]
}
定义
名称 | 说明 |
---|---|
Cloud |
Batch 服务的错误响应。 |
Error |
资源管理错误附加信息。 |
Error |
错误响应 |
Operation |
REST API 操作定义。 |
Operation |
显示与操作关联的元数据。 |
Operation |
资源提供程序操作的列表。 |
Operation |
操作的预期执行程序。 |
CloudError
Batch 服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误响应 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
Operation
REST API 操作定义。
名称 | 类型 | 说明 |
---|---|---|
display |
此特定操作或操作的本地化显示信息。 |
|
name |
string |
正在对此特定对象执行的操作的名称。 |
origin |
操作的预期执行程序。 |
|
properties |
object |
操作的其他说明。 |
OperationDisplay
显示与操作关联的元数据。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
操作说明。 |
operation |
string |
操作的本地化友好名称。 |
provider |
string |
操作资源提供程序名称。 |
resource |
string |
对其执行操作的资源。 |
OperationListResult
资源提供程序操作的列表。
名称 | 类型 | 说明 |
---|---|---|
value |
资源提供程序操作的列表。 |
OperationOrigin
操作的预期执行程序。
名称 | 类型 | 说明 |
---|---|---|
NotSpecified |
string |
|
system |
string |
|
user |
string |