List all modules
The List all modules operation returns information about the modules in an automation account.
Request
To specify the request, replace <subscription-id> with your subscription ID, <cloud-service-name> with the name of the cloud service to use for making the request, <automation-account-name> with the name of the automation account to use for making the request. Include required URI parameters.
Method |
Request URI |
---|---|
GET |
https://management.core.windows.net/<subscription-id>/cloudServices/<cloud-service-name>/resources/automation/~/automationAccounts/<automation-account-name>/modules?api-version=2014-12-08 |
URI Parameters
Parameter |
Description |
---|---|
api-version |
Required. Must be set to 2014-12-08. |
Request Headers
The request header in the following table is required.
Request Header |
Description |
---|---|
x-ms-version |
Specifies the version of the operation. Set to 2013-06-01 or a later version. |
Request Body
None
Response
Status Code
A successful operation returns 200 (OK). For information about common error codes, see HTTP/1.1 Status Code Definitions.
Response Headers
Request Header |
Description |
---|---|
x-ms-request-id |
A unique identifier for the current operation. |
Response Body
{
"value":[
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Azure",
"location":"East US 2",
"name":"Azure",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2014-07-25T08:56:31.65+00:00",
"lastModifiedTime":"2015-04-30T04:15:44.363+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/ModuleA",
"location":"East US 2",
"name":"ModuleA",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":false,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-04-21T18:45:36.787+00:00",
"lastModifiedTime":"2015-04-21T18:47:43.76+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.PowerShell.Core",
"location":"East US 2",
"name":"Microsoft.PowerShell.Core",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:43.303+00:00",
"lastModifiedTime":"2015-04-30T04:15:46.037+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.PowerShell.Diagnostics",
"location":"East US 2",
"name":"Microsoft.PowerShell.Diagnostics",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:45.253+00:00",
"lastModifiedTime":"2015-04-30T04:15:47.68+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.PowerShell.Management",
"location":"East US 2",
"name":"Microsoft.PowerShell.Management",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:47.01+00:00",
"lastModifiedTime":"2015-04-30T04:15:49.26+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.PowerShell.Security",
"location":"East US 2",
"name":"Microsoft.PowerShell.Security",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:48.797+00:00",
"lastModifiedTime":"2015-04-30T04:15:50.857+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.PowerShell.Utility",
"location":"East US 2",
"name":"Microsoft.PowerShell.Utility",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:50.513+00:00",
"lastModifiedTime":"2015-04-30T04:15:52.437+00:00"
}
},
{
"id":"\/subscriptions\/2310a662-9154-4254-a8e1-34286f3bf56a\/cloudservices\/CLSV2_Litware\/resources\/~\/automationAccounts\/LitwareDataCenter\/modules\/Microsoft.WSMan.Management",
"location":"East US 2",
"name":"Microsoft.WSMan.Management",
"type":"Microsoft.Automation\/AutomationAccount\/Module",
"properties":{
"isGlobal":true,
"version":0,
"sizeInBytes":0,
"activityCount":0,
"creationTime":"2015-03-05T04:56:52.283+00:00",
"lastModifiedTime":"2015-04-30T04:15:53.997+00:00"
}
}
]
}
Element |
Description |
---|---|
id |
The URI for this entity, excluding hostname/schema and api version. Not URL encoded. This field is used by the platform as the identifier for references for other objects. |
location |
The location of the resource. The resource must be built in this geographical region. |
name |
The name of the module. |
type |
The type of the resource (e.g., Microsoft.Automation/AutomationAccount/Module) |
location |
|
properties/isGlobal |
Flag indicating whether the module is global. |
properties/version |
The version of the module. |
properties/sizeInBytes |
The size of the module in bytes. |
properties/activityCount |
The number of activities contained within the module. |
properties/creationTime |
The date and time the module was created. |
properties/lastModifiedTime |
The date and time the module was last changed. |
nextLink |
Returned only when the number of records exceeds the page size (100 records). This link, and any subsequent links, returns the next page of records. |