Client library for Management Groups
npm install --save @datafire/azure_resources_management
let azure_resources_management = require('@datafire/azure_resources_management').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
The Azure Management Groups API enables consolidation of multiple subscriptions/resources into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources.
List management groups for the authenticated user.
azure_resources_management.ManagementGroups_List({
"api-version": ""
}, context)
- input
object
- api-version required
string
: Version of the API to be used with the client request. The current version is 2017-08-31-preview. - $skiptoken
string
: Page continuation token is only used if a previous operation returned a partial result.
- api-version required
- output ManagementGroupListResult
Get the details of the management group.
azure_resources_management.ManagementGroups_Get({
"groupId": "",
"api-version": ""
}, context)
- input
object
- groupId required
string
: Management Group ID. - api-version required
string
: Version of the API to be used with the client request. The current version is 2017-08-31-preview. - $expand
string
(values: children): The $expand=children query string parameter allows clients to request inclusion of children in the response payload. - $recurse
boolean
: The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload.
- groupId required
- output ManagementGroupWithHierarchy
Lists all of the available management REST API operations.
azure_resources_management.Operations_List({
"api-version": ""
}, context)
- input
object
- api-version required
string
: Version of the API to be used with the client request. The current version is 2017-08-31-preview.
- api-version required
- output OperationListResult
- ErrorDetails
object
: The details of the error.- code
string
: One of a server-defined set of error codes. - message
string
: A human-readable representation of the error. - target
string
: (Optional) The target of the error.
- code
- ErrorResponse
object
: The error object.- error ErrorDetails
- ManagementGroup
object
: The management group details.- id
string
: The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000 - name
string
: The name of the management group. E.g. 20000000-0000-0000-0000-000000000000 - properties ManagementGroupProperties
- type
string
: The type of the resource. E.g. /providers/Microsoft.Management/managementGroups
- id
- ManagementGroupChildInfo
object
: The unique identifier (ID) of a management group.- childId
string
: The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000 - childType ManagementGroupType
- displayName
string
: The friendly name of the child resource. - tenantId
string
: (Optional) The AAD Tenant ID associated with the child resource.
- childId
- ManagementGroupDetailsProperties
object
: The details properties of a management group.- managementGroupType ManagementGroupType
- parent ParentGroupInfo
- updatedBy
string
: The identity of the principal or process that updated the object. - updatedTime
string
: The date and time when this object was last updated. - version
number
: The version number of the object.
- ManagementGroupInfo
object
: The management group.- id
string
: The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000 - name
string
: The name of the management group. E.g. 20000000-0000-0000-0000-000000000000 - properties ManagementGroupInfoProperties
- type
string
: The type of the resource. E.g. /providers/Microsoft.Management/managementGroups
- id
- ManagementGroupInfoProperties
object
: The generic properties of a management group.- displayName
string
: The friendly name of the management group. - tenantId
string
: The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000
- displayName
- ManagementGroupListResult
object
: The result of listing management groups.- nextLink
string
: The URL to the next page of results. - value
array
: The list of management groups.- items ManagementGroupInfo
- nextLink
- ManagementGroupProperties
object
: The generic properties of a management group.- details ManagementGroupDetailsProperties
- displayName
string
: The friendly name of the management group. - tenantId
string
: The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000
- ManagementGroupPropertiesWithChildren
object
: The generic properties of a management group.- children
array
: The list of children.- items ManagementGroupChildInfo
- details ManagementGroupDetailsProperties
- displayName
string
: The friendly name of the management group. - tenantId
string
: The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000
- children
- ManagementGroupPropertiesWithHierarchy
object
: The generic properties of a management group.- children
array
: The list of children. - details ManagementGroupDetailsProperties
- displayName
string
: The friendly name of the management group. - tenantId
string
: The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000
- children
- ManagementGroupRecursiveChildInfo
object
: The unique identifier (ID) of a management group.- childId
string
: The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000 - childType ManagementGroupType
- children
array
: The list of children. - displayName
string
: The friendly name of the child resource. - tenantId
string
: (Optional) The AAD Tenant ID associated with the child resource.
- childId
- ManagementGroupType
string
(values: Enrollment, Department, Account, Subscription): (Optional) The type of the management group.
- ManagementGroupWithChildren
object
: The management group details.- id
string
: The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000 - name
string
: The name of the management group. E.g. 20000000-0000-0000-0000-000000000000 - properties ManagementGroupPropertiesWithChildren
- type
string
: The type of the resource. E.g. /providers/Microsoft.Management/managementGroups
- id
- ManagementGroupWithHierarchy
object
: The management group details.- id
string
: The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000 - name
string
: The name of the management group. E.g. 20000000-0000-0000-0000-000000000000 - properties ManagementGroupPropertiesWithHierarchy
- type
string
: The type of the resource. E.g. /providers/Microsoft.Management/managementGroups
- id
- Operation
object
: A Management REST API operation.- display
object
: The object that represents the operation.- operation
string
: Operation type: Read, write, delete, etc. - provider
string
: Service provider: Microsoft.Management. - resource
string
: Resource on which the operation is performed: Invoice, etc.
- operation
- name
string
: Operation name: {provider}/{resource}/{operation}.
- display
- OperationListResult
object
: Result listing operations. It contains a list of operations and a URL link to get the next set of results.- nextLink
string
: URL to get the next set of operation list results if there are any. - value
array
: List of management operations supported by the Microsoft.Management resource provider.- items Operation
- nextLink
- ParentGroupInfo
object
: (Optional) The ID of the parent management group.- displayName
string
: The friendly name of the management group. - parentId
string
: The ID of the parent management group. E.g. /providers/Microsoft.Management/managementGroups/30000000-0000-0000-0000-000000000000
- displayName