Object Data Types - List Fields By Module And Type
Retrieve a list of fields of a given type identified by module name.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields?api-version=2019-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
The name of the automation account. |
module
|
path | True |
string |
The name of module. |
resource
|
path | True |
string |
Name of an Azure Resource group. Regex pattern: |
subscription
|
path | True |
string |
Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
type
|
path | True |
string |
The name of type. |
api-version
|
query | True |
string |
Client Api Version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Automation error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
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=2019-06-01
Sample Response
{
"value": [
{
"name": "Name",
"type": "System.String"
},
{
"name": "Id",
"type": "System.Integer"
},
{
"name": "Details",
"type": "MyModule.AnotherCustomType"
}
]
}
Definitions
Name | Description |
---|---|
Error |
Error response of an operation failure |
Type |
Information about a field of a type. |
Type |
The response model for the list fields operation. |
ErrorResponse
Error response of an operation failure
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |
TypeField
Information about a field of a type.
Name | Type | Description |
---|---|---|
name |
string |
Gets or sets the name of the field. |
type |
string |
Gets or sets the type of the field. |
TypeFieldListResult
The response model for the list fields operation.
Name | Type | Description |
---|---|---|
value |
Gets or sets a list of fields. |