Dela via


Configurations - List By Server

Visa en lista över alla konfigurationer på en viss server.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations?api-version=2024-12-30
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations?api-version=2024-12-30&tags={tags}&keyword={keyword}&page={page}&pageSize={pageSize}

URI-parametrar

Name I Obligatorisk Typ Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

serverName
path True

string

minLength: 1
maxLength: 63
pattern: ^[a-z0-9][-a-z0-9]*(?

Namnet på servern.

subscriptionId
path True

string (uuid)

ID för målprenumerationen. Värdet måste vara ett UUID.

api-version
query True

string

minLength: 1

Den API-version som ska användas för den här åtgärden.

keyword
query

string

Nyckelordet för serverkonfigurationen.

page
query

integer (int32)

Sidan för serverkonfigurationen.

pageSize
query

integer (int32)

SidanSize för serverkonfigurationen.

tags
query

string

Taggarna för serverkonfigurationen.

Svar

Name Typ Description
200 OK

ConfigurationListResult

Azure-åtgärden har slutförts.

Other Status Codes

ErrorResponse

Ett oväntat felsvar.

Säkerhet

azure_auth

Azure Active Directory OAuth2-flöde.

Typ: oauth2
Flow: implicit
Auktoriseringswebbadress: https://login.microsoftonline.com/common/oauth2/authorize

Omfattningar

Name Description
user_impersonation personifiera ditt användarkonto

Exempel

List all configurations for a server

Exempelbegäran

GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations?api-version=2024-12-30&page=1&pageSize=8

Exempelsvar

{
  "value": [
    {
      "name": "archive",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/archive",
      "properties": {
        "description": "Tell the server to enable or disable archive engine.",
        "allowedValues": "ON,OFF",
        "dataType": "Enumeration",
        "defaultValue": "OFF",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "False",
        "isReadOnly": "True",
        "source": "system-default",
        "value": "OFF"
      }
    },
    {
      "name": "audit_log_enabled",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_enabled",
      "properties": {
        "description": "Allow to audit the log.",
        "allowedValues": "ON,OFF",
        "dataType": "Enumeration",
        "defaultValue": "OFF",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "False",
        "source": "system-default",
        "value": "OFF"
      }
    },
    {
      "name": "audit_log_events",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_events",
      "properties": {
        "description": "Select the events to audit logs.",
        "allowedValues": "DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS",
        "dataType": "Set",
        "defaultValue": "CONNECTION",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "False",
        "source": "system-default",
        "value": "CONNECTION"
      }
    },
    {
      "name": "audit_log_exclude_users",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_exclude_users",
      "properties": {
        "description": "The comma-separated user list whose commands will not be in the audit logs.",
        "allowedValues": "",
        "dataType": "String",
        "defaultValue": "azure_superuser",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "False",
        "source": "system-default",
        "value": "azure_superuser"
      }
    },
    {
      "name": "audit_log_include_users",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_include_users",
      "properties": {
        "description": "The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.",
        "allowedValues": "",
        "dataType": "String",
        "defaultValue": "",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "False",
        "source": "system-default",
        "value": ""
      }
    },
    {
      "name": "audit_slow_log_enabled",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_slow_log_enabled",
      "properties": {
        "description": "Allow to audit the slow log.",
        "allowedValues": "ON,OFF",
        "dataType": "Enumeration",
        "defaultValue": "ON",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "True",
        "source": "system-default",
        "value": "ON"
      }
    },
    {
      "name": "auto_generate_certs",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_generate_certs",
      "properties": {
        "description": "Controls whether the server autogenerates SSL key and certificate files in the data directory, if they do not already exist.",
        "allowedValues": "ON,OFF",
        "dataType": "Enumeration",
        "defaultValue": "OFF",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "False",
        "isReadOnly": "True",
        "source": "system-default",
        "value": "OFF"
      }
    },
    {
      "name": "auto_increment_increment",
      "type": "Microsoft.DBforMySQL/flexibleServers/configurations",
      "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_increment_increment",
      "properties": {
        "description": "The auto_increment_increment is intended for use with source-to-source replication, and can be used to control the operation of AUTO_INCREMENT columns.",
        "allowedValues": "1-65535",
        "dataType": "Integer",
        "defaultValue": "1",
        "isConfigPendingRestart": "False",
        "isDynamicConfig": "True",
        "isReadOnly": "False",
        "source": "system-default",
        "value": "1"
      }
    }
  ]
}

Definitioner

Name Description
Configuration

Representerar en konfiguration.

ConfigurationListResult

Svaret på en åtgärd i en konfigurationslista.

ConfigurationSource

Källan till konfigurationen.

createdByType

Den typ av identitet som skapade resursen.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorDetail

Felinformationen.

ErrorResponse

Felsvar

IsConfigPendingRestart

Om är konfigurationen väntande, omstart eller inte.

IsDynamicConfig

Om är konfigurationen dynamisk.

IsReadOnly

Om är konfigurationen skrivskyddad.

systemData

Metadata som rör skapande och senaste ändring av resursen.

Configuration

Representerar en konfiguration.

Name Typ Description
id

string (arm-id)

Fullständigt kvalificerat resurs-ID för resursen. Till exempel "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

Namnet på resursen

properties.allowedValues

string

Tillåtna värden för konfigurationen.

properties.currentValue

string

Konfigurationens aktuella värde.

properties.dataType

string

Datatyp för konfigurationen.

properties.defaultValue

string

Standardvärde för konfigurationen.

properties.description

string

Beskrivning av konfigurationen.

properties.documentationLink

string

Länken som används för att hämta dokumentet från communityn eller Azure-webbplatsen.

properties.isConfigPendingRestart

IsConfigPendingRestart

Om är konfigurationen väntande, omstart eller inte.

properties.isDynamicConfig

IsDynamicConfig

Om är konfigurationen dynamisk.

properties.isReadOnly

IsReadOnly

Om är konfigurationen skrivskyddad.

properties.source

ConfigurationSource

Källan till konfigurationen.

properties.value

string

Värdet för konfigurationen.

systemData

systemData

Azure Resource Manager-metadata som innehåller createdBy och modifiedBy information.

type

string

Resurstypen. T.ex. "Microsoft.Compute/virtualMachines" eller "Microsoft.Storage/storageAccounts"

ConfigurationListResult

Svaret på en åtgärd i en konfigurationslista.

Name Typ Description
nextLink

string (uri)

Länken till nästa sida med objekt

value

Configuration[]

Konfigurationsobjekten på den här sidan

ConfigurationSource

Källan till konfigurationen.

Värde Description
system-default
user-override

createdByType

Den typ av identitet som skapade resursen.

Värde Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Ytterligare information.

type

string

Ytterligare informationstyp.

ErrorDetail

Felinformationen.

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Ytterligare information om felet.

code

string

Felkoden.

details

ErrorDetail[]

Felinformationen.

message

string

Felmeddelandet.

target

string

Felmålet.

ErrorResponse

Felsvar

Name Typ Description
error

ErrorDetail

Felobjektet.

IsConfigPendingRestart

Om är konfigurationen väntande, omstart eller inte.

Värde Description
True
False

IsDynamicConfig

Om är konfigurationen dynamisk.

Värde Description
True
False

IsReadOnly

Om är konfigurationen skrivskyddad.

Värde Description
True
False

systemData

Metadata som rör skapande och senaste ändring av resursen.

Name Typ Description
createdAt

string (date-time)

Tidsstämpeln för resursskapande (UTC).

createdBy

string

Identiteten som skapade resursen.

createdByType

createdByType

Den typ av identitet som skapade resursen.

lastModifiedAt

string (date-time)

Tidsstämpeln för resursens senaste ändring (UTC)

lastModifiedBy

string

Identiteten som senast ändrade resursen.

lastModifiedByType

createdByType

Den typ av identitet som senast ändrade resursen.