MICROSOFT.MANAGEMENT

CheckNameAvailability

enum_CheckNameAvailabilityRequestType := [ "Microsoft.Management/managementGroups" ]

valid {
    input.Body.name == STRING
    input.Body.type == enum_CheckNameAvailabilityRequestType[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Entities_List

enum_EntityViewParameter := [ "FullHierarchy", "GroupsOnly", "SubscriptionsOnly", "Audit" ]
enum_SearchParameter := [ "AllowedParents", "AllowedChildren", "ParentAndFirstLevelChildren", "ParentOnly", "ChildrenOnly" ]

valid {
    input.Qs.api-version == STRING
    input.Qs.$skiptoken == STRING
    input.Qs.$skip == INTEGER
    input.Qs.$top == INTEGER
    input.Qs.$select == STRING
    input.Qs.$search == enum_SearchParameter[_]
    input.Qs.$filter == STRING
    input.Qs.$view == enum_EntityViewParameter[_]
    input.Qs.groupName == STRING
    input.ProviderMetadata.Region == STRING
}

HierarchySettings_CreateOrUpdate

valid {
    input.Body.properties.requireAuthorizationForGroupCreation == BOOLEAN
    input.Body.properties.defaultManagementGroup == STRING
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

HierarchySettings_Delete

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

HierarchySettings_Get

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

HierarchySettings_List

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

HierarchySettings_Update

valid {
    input.Body.properties.requireAuthorizationForGroupCreation == BOOLEAN
    input.Body.properties.defaultManagementGroup == STRING
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroupSubscriptions_Create

valid {
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

ManagementGroupSubscriptions_Delete

valid {
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

ManagementGroupSubscriptions_GetSubscription

valid {
    input.ReqMap.groupId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

ManagementGroupSubscriptions_GetSubscriptionsUnderManagementGroup

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.Qs.$skiptoken == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_CreateOrUpdate

valid {
    input.Body.name == STRING
    input.Body.properties.displayName == STRING
    input.Body.properties.details.parent.id == STRING
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_Delete

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_Get

enum_ExpandParameter := [ "children", "path", "ancestors" ]

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.Qs.$expand == enum_ExpandParameter[_]
    input.Qs.$recurse == BOOLEAN
    input.Qs.$filter == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_GetDescendants

valid {
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.Qs.$skiptoken == STRING
    input.Qs.$top == INTEGER
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_List

valid {
    input.Qs.api-version == STRING
    input.Qs.$skiptoken == STRING
    input.ProviderMetadata.Region == STRING
}

ManagementGroups_Update

valid {
    input.Body.displayName == STRING
    input.Body.parentGroupId == STRING
    input.ReqMap.groupId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

StartTenantBackfill

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

TenantBackfillStatus

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}