Billing Accounts - List Invoice Sections By Create Subscription Permission
Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission?api-version=2020-05-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
billing
|
path | True |
string |
The ID that uniquely identifies a billing account. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2020-05-01. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
Other Status Codes |
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
InvoiceSectionsListWithCreateSubPermission
Sample Request
POST https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission?api-version=2020-05-01
Sample Response
{
"value": [
{
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
"invoiceSectionDisplayName": "invoiceSection1",
"invoiceSectionSystemId": "9XXX-11XX-XX1-XXXX-XXX",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso operations billing",
"billingProfileStatus": "Warned",
"billingProfileStatusReasonCode": "PastDue",
"billingProfileSpendingLimit": "On",
"billingProfileSystemId": "1XXX-11XX-XX1-XXXX-XXX",
"enabledAzurePlans": [
{
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan"
},
{
"skuId": "0002",
"skuDescription": "Microsoft Azure Plan for DevTest"
}
]
}
]
}
Definitions
Name | Description |
---|---|
Azure |
Details of the Azure plan. |
Billing |
The status of the billing profile. |
Error |
The details of the error. |
Error |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. |
Error |
|
Invoice |
The list of invoice section properties with create subscription permission. |
Invoice |
Invoice section properties with create subscription permission. |
Spending |
The billing profile spending limit. |
Status |
Reason for the specified billing profile status. |
AzurePlan
Details of the Azure plan.
Name | Type | Description |
---|---|---|
skuDescription |
string |
The sku description. |
skuId |
string |
The sku id. |
BillingProfileStatus
The status of the billing profile.
Name | Type | Description |
---|---|---|
Active |
string |
|
Disabled |
string |
|
Warned |
string |
ErrorDetails
The details of the error.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
details |
The sub details of the error. |
|
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
ErrorResponse
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
Name | Type | Description |
---|---|---|
error |
The details of the error. |
ErrorSubDetails
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
InvoiceSectionListWithCreateSubPermissionResult
The list of invoice section properties with create subscription permission.
Name | Type | Description |
---|---|---|
nextLink |
string |
The link (url) to the next page of results. |
value |
The list of invoice section properties with create subscription permission. |
InvoiceSectionWithCreateSubPermission
Invoice section properties with create subscription permission.
Name | Type | Description |
---|---|---|
billingProfileDisplayName |
string |
The name of the billing profile for the invoice section. |
billingProfileId |
string |
The ID of the billing profile for the invoice section. |
billingProfileSpendingLimit |
The billing profile spending limit. |
|
billingProfileStatus |
The status of the billing profile. |
|
billingProfileStatusReasonCode |
Reason for the specified billing profile status. |
|
billingProfileSystemId |
string |
The system generated unique identifier for a billing profile. |
enabledAzurePlans |
Enabled azure plans for the associated billing profile. |
|
invoiceSectionDisplayName |
string |
The name of the invoice section. |
invoiceSectionId |
string |
The ID of the invoice section. |
invoiceSectionSystemId |
string |
The system generated unique identifier for an invoice section. |
SpendingLimitForBillingProfile
The billing profile spending limit.
Name | Type | Description |
---|---|---|
Off |
string |
|
On |
string |
StatusReasonCodeForBillingProfile
Reason for the specified billing profile status.
Name | Type | Description |
---|---|---|
PastDue |
string |
|
SpendingLimitExpired |
string |
|
SpendingLimitReached |
string |