Object Data Types - List Fields By Module And Type

擷取模組名稱所識別指定型別的欄位清單。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields?api-version=2023-11-01

URI 參數

名稱 位於 必要 類型 Description
automationAccountName
path True

string

自動化帳戶的名稱。

moduleName
path True

string

模組的名稱。

resourceGroupName
path True

string

Azure 資源群組的名稱。

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

取得用來唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。

typeName
path True

string

類型的名稱。

api-version
query True

string

用戶端 API 版本。

回應

名稱 類型 Description
200 OK

TypeFieldListResult

確定

Other Status Codes

ErrorResponse

描述作業失敗原因的自動化錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Get a list of fields of a given type

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/modules/MyModule/objectDataTypes/MyCustomType/fields?api-version=2023-11-01

Sample Response

{
  "value": [
    {
      "name": "Name",
      "type": "System.String"
    },
    {
      "name": "Id",
      "type": "System.Integer"
    },
    {
      "name": "Details",
      "type": "MyModule.AnotherCustomType"
    }
  ]
}

定義

名稱 Description
ErrorResponse

作業失敗的錯誤回應

TypeField

類型欄位的相關信息。

TypeFieldListResult

清單欄位作業的回應模型。

ErrorResponse

作業失敗的錯誤回應

名稱 類型 Description
code

string

錯誤碼

message

string

錯誤訊息,指出作業失敗的原因。

TypeField

類型欄位的相關信息。

名稱 類型 Description
name

string

取得或設定欄位的名稱。

type

string

取得或設定欄位的類型。

TypeFieldListResult

清單欄位作業的回應模型。

名稱 類型 Description
value

TypeField[]

取得或設定欄位清單。