Azure Database for PostgreSQL Tuning Options Operation Group API
The TuningOptionsOperationGroup API from Azure Database for PostgreSQL — 3 operation(s) for tuningoptionsoperationgroup.
The TuningOptionsOperationGroup API from Azure Database for PostgreSQL — 3 operation(s) for tuningoptionsoperationgroup.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure-postgresql:microsoft-azure-postgresql-tuningoptionsoperationgroup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PostgreSQLManagementClient Tuning Options Operation Group…
version: '2026-10-01'
description: The Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: TuningOptionsOperationGroup
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions
: get:
operationId: TuningOptions_ListByServer
tags:
- TuningOptionsOperationGroup
description: Lists the tuning options of a server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/TuningOptionsList'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Tuning options list by server
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}
: get:
operationId: TuningOptions_Get
tags:
- TuningOptionsOperationGroup
description: Gets the tuning options of a server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: tuningOption
in: path
description: The name of the tuning option.
required: true
x-ms-enum:
name: TuningOptionParameterEnum
modelAsString: true
values:
- name: index
value: index
description: Index related recommendations.
- name: table
value: table
description: Table related recommendations.
schema:
type: string
enum:
- index
- table
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/TuningOptions'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Tuning options get
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}/recommendations
: get:
operationId: TuningOptions_ListRecommendations
tags:
- TuningOptionsOperationGroup
description: Lists available object recommendations.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: tuningOption
in: path
description: The name of the tuning option.
required: true
x-ms-enum:
name: TuningOptionParameterEnum
modelAsString: true
values:
- name: index
value: index
description: Index related recommendations.
- name: table
value: table
description: Table related recommendations.
schema:
type: string
enum:
- index
- table
- name: recommendationType
in: query
description: Recommendations list filter. Retrieves recommendations based on type.
required: false
x-ms-enum:
name: RecommendationTypeParameterEnum
modelAsString: true
values:
- name: CreateIndex
value: CreateIndex
description: Recommendation to create an index to improve query performance.
- name: DropIndex
value: DropIndex
description: Recommendation to drop an existing index because it's duplicate or unused.
- name: ReIndex
value: ReIndex
description: Recommendation to reindex an existing invalid index.
- name: AnalyzeTable
value: AnalyzeTable
description: Recommendation to analyze a table to update statistics for the query optimizer.
- name: VacuumTable
value: VacuumTable
description: Recommendation to vacuum a table to reclaim storage and optimize performance.
schema:
type: string
enum:
- CreateIndex
- DropIndex
- ReIndex
- AnalyzeTable
- VacuumTable
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectRecommendationList'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Tuning options list recommendations
x-summary-source: derived
components:
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
schemas:
ObjectRecommendationPropertiesImplementationDetails:
type: object
description: Implementation details for the recommended action.
properties:
method:
type: string
description: Method of implementation for recommended action.
script:
type: string
description: Implementation script for the recommended action.
ObjectRecommendationDetails:
type: object
description: Recommendation details for the recommended action.
properties:
databaseName:
type: string
description: Database name.
schema:
type: string
description: Schema name.
table:
type: string
description: Table name.
indexType:
type: string
description: Index type.
indexName:
type: string
description: Index name.
indexColumns:
type: array
description: Index columns.
items:
type: string
includedColumns:
type: array
description: Index included columns.
items:
type: string
RecommendationTypeEnum:
type: string
description: Type for this recommendation.
enum:
- CreateIndex
- DropIndex
- ReIndex
- AnalyzeTable
- VacuumTable
x-ms-enum:
name: RecommendationTypeEnum
modelAsString: true
values:
- name: CreateIndex
value: CreateIndex
description: Recommendation to create an index to improve query performance.
- name: DropIndex
value: DropIndex
description: Recommendation to drop an existing index because it's duplicate or unused.
- name: ReIndex
value: ReIndex
description: Recommendation to reindex an existing invalid index.
- name: AnalyzeTable
value: AnalyzeTable
description: Recommendation to analyze a table to update statistics for the query optimizer.
- name: VacuumTable
value: VacuumTable
description: Recommendation to vacuum a table to reclaim storage and optimize performance.
ImpactRecord:
type: object
description: Impact on some metric if this recommended action is applied.
properties:
dimensionName:
type: string
description: Dimension name.
unit:
type: string
description: Dimension unit.
queryId:
type: integer
format: int64
description: Optional property that can be used to store the identifier of the query, if the metric is for a specific query.
absoluteValue:
type: number
format: double
description: Absolute value.
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
TuningOptionsList:
type: object
description: List of server tuning options.
properties:
value:
type: array
description: The TuningOptions items on this page
items:
$ref: '#/components/schemas/TuningOptions'
x-ms-identifiers:
- name
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
ProxyResource:
type: object
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
allOf:
- $ref: '#/components/schemas/Resource'
ErrorResponse:
type: object
title: Error response
description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
ObjectRecommendation:
type: object
description: Object recommendation properties.
properties:
kind:
type: string
description: Always empty.
properties:
$ref: '#/components/schemas/ObjectRecommendationProperties'
description: Properties of an object recommendation.
readOnly: true
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/ProxyResource'
ObjectRecommendationList:
type: object
description: List of available object recommendations.
properties:
value:
type: array
description: The ObjectRecommendation items on this page
items:
$ref: '#/components/schemas/ObjectRecommendation'
x-ms-identifiers:
- name
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
ObjectRecommendationProperties:
type: object
description: Object recommendation properties.
properties:
initialRecommendedTime:
type: string
format: date-time
description: Creation time (UTC) of this recommendation.
lastRecommendedTime:
type: string
format: date-time
description: Last time (UTC) that this recommendation was produced.
timesRecommended:
type: integer
format: int32
description: Number of times this recommendation has been produced.
improvedQueryIds:
type: array
description: List of identifiers for all queries identified as targets for improvement if the recommendation is applied. The list is only populated for CREATE INDEX recommendations.
items:
type: integer
format: int64
recommendationReason:
type: string
description: Reason for this recommendation.
currentState:
type: string
description: Current state.
recommendationType:
$ref: '#/components/schemas/RecommendationTypeEnum'
description: Type for this recommendation.
implementationDetails:
$ref: '#/components/schemas/ObjectRecommendationPropertiesImplementationDetails'
description: Implementation details for the recommended action.
analyzedWorkload:
$ref: '#/components/schemas/ObjectRecommendationPropertiesAnalyzedWorkload'
description: Workload information for the recommended action.
estimatedImpact:
type: array
description: Estimated impact of this recommended action.
items:
$ref: '#/components/schemas/ImpactRecord'
readOnly: true
x-ms-identifiers:
- dimensionName
details:
$ref: '#/components/schemas/ObjectRecommendationDetails'
description: Recommendation details for the recommended action.
readOnly: true
ObjectRecommendationPropertiesAnalyzedWorkload:
type: object
description: Workload information for the recommended action.
properties:
startTime:
type: string
format: date-time
description: Start time (UTC) of the workload analyzed.
endTime:
type: string
format: date-time
description: End time (UTC) of the workload analyzed.
queryCount:
type: integer
format: int32
description: Number of queries from the workload that were examined to produce this recommendation. For DROP INDEX recommendations it's 0 (zero).
TuningOptions:
type: object
description: Impact on some metric if this recommended action is applied.
properties:
properties:
$ref: '#/components/schemas/TuningOptionsProperties'
description: The resource-specific properties for this resource.
allOf:
- $ref: '#/components/schemas/ProxyResource'
TuningOptionsProperties:
type: object
description: Properties of a tuning option.
properties:
state:
type: string
description: State of the tuning option.
readOnly: true
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.