@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api BlueprintClient
@base https://management.azure.com
@version 2018-11-01-preview
@auth OAuth2
@endpoints 5
@toc {resourceScope}(5)

@endpoint PUT /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}
@desc Create or update a blueprint assignment.
@required {api-version: any # Client API Version., resourceScope: any # The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}')., assignmentName: any # Name of the blueprint assignment., assignment: map # Blueprint assignment object to save.}
@returns(201) Created -- blueprint assignment saved.

@endpoint GET /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}
@desc Get a blueprint assignment.
@required {api-version: any # Client API Version., resourceScope: any # The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}')., assignmentName: any # Name of the blueprint assignment.}
@returns(200) OK -- blueprint assignment retrieved.

@endpoint DELETE /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}
@desc Delete a blueprint assignment.
@required {api-version: any # Client API Version., resourceScope: any # The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}')., assignmentName: any # Name of the blueprint assignment.}
@optional {deleteBehavior: any # When deleteBehavior=all, the resources that were created by the blueprint assignment will be deleted.}
@returns(202) OK -- blueprint assignment deleted.
@returns(204) No Content

@endpoint POST /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/whoIsBlueprint
@desc Get Blueprints service SPN objectId
@required {api-version: any # Client API Version., resourceScope: any # The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}')., assignmentName: any # Name of the blueprint assignment.}
@returns(200) Blueprints service SPN objectId

@endpoint GET /{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments
@desc List blueprint assignments within a subscription or a management group.
@required {api-version: any # Client API Version., resourceScope: any # The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').}
@returns(200) OK -- all blueprint assignments retrieved.

@end
