зеркало из https://github.com/microsoft/azure-cli.git
[Billing] Add new command groups to manage Agreement, RoleAssignment, RoleDefinition and Instructions (#15697)
This commit is contained in:
Родитель
aaa2ee7c1f
Коммит
6b5d78ffbf
Двоичные данные
src/azure-cli/azure/cli/command_modules/billing/gen.zip
Двоичные данные
src/azure-cli/azure/cli/command_modules/billing/gen.zip
Двоичный файл не отображается.
|
@ -24,6 +24,10 @@ def cf_balance(cli_ctx, *_):
|
|||
return cf_billing_cl(cli_ctx).available_balances
|
||||
|
||||
|
||||
def cf_instruction(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).instructions
|
||||
|
||||
|
||||
def cf_profile(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_profiles
|
||||
|
||||
|
@ -36,6 +40,10 @@ def cf_invoice_section(cli_ctx, *_):
|
|||
return cf_billing_cl(cli_ctx).invoice_sections
|
||||
|
||||
|
||||
def cf_permission(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_permissions
|
||||
|
||||
|
||||
def cf_subscription(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_subscriptions
|
||||
|
||||
|
@ -58,3 +66,15 @@ def cf_policy(cli_ctx, *_):
|
|||
|
||||
def cf_property(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_property
|
||||
|
||||
|
||||
def cf_role_definition(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_role_definitions
|
||||
|
||||
|
||||
def cf_role_assignment(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).billing_role_assignments
|
||||
|
||||
|
||||
def cf_agreement(cli_ctx, *_):
|
||||
return cf_billing_cl(cli_ctx).agreements
|
||||
|
|
|
@ -102,6 +102,43 @@ Microsoft Customer Agreement."
|
|||
az billing balance show --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction'] = """
|
||||
type: group
|
||||
short-summary: billing instruction
|
||||
"""
|
||||
|
||||
helps['billing instruction list'] = """
|
||||
type: command
|
||||
short-summary: "Lists the instructions by billing profile id."
|
||||
examples:
|
||||
- name: InstructionsListByBillingProfile
|
||||
text: |-
|
||||
az billing instruction list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction show'] = """
|
||||
type: command
|
||||
short-summary: "Get the instruction by name. These are custom billing instructions and are only applicable for \
|
||||
certain customers."
|
||||
examples:
|
||||
- name: Instruction
|
||||
text: |-
|
||||
az billing instruction show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--name "{instructionName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction create'] = """
|
||||
type: command
|
||||
short-summary: "Creates or updates an instruction. These are custom billing instructions and are only applicable \
|
||||
for certain customers."
|
||||
examples:
|
||||
- name: PutInstruction
|
||||
text: |-
|
||||
az billing instruction create --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --name "{instructionName}" --amount 5000 --end-date "2020-12-30T21:26:47.997Z" --start-date \
|
||||
"2019-12-30T21:26:47.997Z"
|
||||
"""
|
||||
|
||||
helps['billing profile'] = """
|
||||
type: group
|
||||
short-summary: billing profile
|
||||
|
@ -311,6 +348,21 @@ helps['billing invoice section wait'] = """
|
|||
"{billingProfileName}" --name "{invoiceSectionName}" --updated
|
||||
"""
|
||||
|
||||
helps['billing permission'] = """
|
||||
type: group
|
||||
short-summary: billing permission
|
||||
"""
|
||||
|
||||
helps['billing permission list'] = """
|
||||
type: command
|
||||
short-summary: "Lists the billing permissions the caller has on a billing account."
|
||||
examples:
|
||||
- name: InvoiceSectionPermissionsList
|
||||
text: |-
|
||||
az billing permission list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing subscription'] = """
|
||||
type: group
|
||||
short-summary: billing subscription
|
||||
|
@ -548,3 +600,69 @@ operation is supported only for billing accounts with agreement type Microsoft C
|
|||
text: |-
|
||||
az billing property update --cost-center "1010"
|
||||
"""
|
||||
|
||||
helps['billing role-definition'] = """
|
||||
type: group
|
||||
short-summary: billing role-definition
|
||||
"""
|
||||
|
||||
helps['billing role-definition list'] = """
|
||||
type: command
|
||||
short-summary: "Lists the role definitions for a billing account. The operation is supported for billing accounts \
|
||||
with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: InvoiceSectionRoleDefinitionsList
|
||||
text: |-
|
||||
az billing role-definition list --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-assignment'] = """
|
||||
type: group
|
||||
short-summary: billing role-assignment
|
||||
"""
|
||||
|
||||
helps['billing role-assignment list'] = """
|
||||
type: command
|
||||
short-summary: "Lists the role assignments for the caller on a billing account. The operation is supported for \
|
||||
billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: InvoiceSectionRoleAssignmentList
|
||||
text: |-
|
||||
az billing role-assignment list --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-assignment delete'] = """
|
||||
type: command
|
||||
short-summary: "Deletes a role assignment for the caller on a billing account. The operation is supported for \
|
||||
billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: InvoiceSectionRoleAssignmentDelete
|
||||
text: |-
|
||||
az billing role-assignment delete --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --name "{billingRoleAssignmentName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing agreement'] = """
|
||||
type: group
|
||||
short-summary: billing agreement
|
||||
"""
|
||||
|
||||
helps['billing agreement list'] = """
|
||||
type: command
|
||||
short-summary: "Lists the agreements for a billing account."
|
||||
examples:
|
||||
- name: AgreementsListByBillingAccount
|
||||
text: |-
|
||||
az billing agreement list --account-name "{billingAccountName}"
|
||||
"""
|
||||
|
||||
helps['billing agreement show'] = """
|
||||
type: command
|
||||
short-summary: "Gets an agreement by ID."
|
||||
examples:
|
||||
- name: AgreementByName
|
||||
text: |-
|
||||
az billing agreement show --name "{agreementName}" --account-name "{billingAccountName}"
|
||||
"""
|
||||
|
|
|
@ -57,6 +57,24 @@ def load_arguments(self, _):
|
|||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
|
||||
with self.argument_context('billing instruction list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
|
||||
with self.argument_context('billing instruction show') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('name', options_list=['--name', '-n'], type=str, help='Instruction Name.')
|
||||
|
||||
with self.argument_context('billing instruction create') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('name', options_list=['--name', '-n'], type=str, help='Instruction Name.')
|
||||
c.argument('amount', type=float, help='The amount budgeted for this billing instruction.')
|
||||
c.argument('start_date', help='The date this billing instruction goes into effect.')
|
||||
c.argument('end_date', help='The date this billing instruction is no longer in effect.')
|
||||
c.argument('creation_date', help='The date this billing instruction was created.')
|
||||
|
||||
with self.argument_context('billing profile list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('expand', type=str, help='May be used to expand the invoice sections.')
|
||||
|
@ -151,6 +169,12 @@ def load_arguments(self, _):
|
|||
c.argument('invoice_section_name', options_list=['--name', '-n', '--invoice-section-name'], type=str, help=''
|
||||
'The ID that uniquely identifies an invoice section.')
|
||||
|
||||
with self.argument_context('billing permission list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('invoice_section_name', type=str, help='The ID that uniquely identifies an invoice section.')
|
||||
c.argument('customer_name', type=str, help='The ID that uniquely identifies a customer.')
|
||||
|
||||
with self.argument_context('billing subscription list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
|
@ -248,3 +272,30 @@ def load_arguments(self, _):
|
|||
|
||||
with self.argument_context('billing property update') as c:
|
||||
c.argument('cost_center', type=str, help='The cost center applied to the subscription.')
|
||||
|
||||
with self.argument_context('billing role-definition list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('invoice_section_name', type=str, help='The ID that uniquely identifies an invoice section.')
|
||||
|
||||
with self.argument_context('billing role-assignment list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('invoice_section_name', type=str, help='The ID that uniquely identifies an invoice section.')
|
||||
|
||||
with self.argument_context('billing role-assignment delete') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('profile_name', type=str, help='The ID that uniquely identifies a billing profile.')
|
||||
c.argument('invoice_section_name', type=str, help='The ID that uniquely identifies an invoice section.')
|
||||
c.argument('name', options_list=['--name', '-n'], type=str, help='The ID that uniquely identifies a role '
|
||||
'assignment.')
|
||||
|
||||
with self.argument_context('billing agreement list') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('expand', type=str, help='May be used to expand the participants.')
|
||||
|
||||
with self.argument_context('billing agreement show') as c:
|
||||
c.argument('account_name', type=str, help='The ID that uniquely identifies a billing account.')
|
||||
c.argument('name', options_list=['--name', '-n'], type=str, help='The ID that uniquely identifies an '
|
||||
'agreement.')
|
||||
c.argument('expand', type=str, help='May be used to expand the participants.')
|
||||
|
|
|
@ -32,6 +32,16 @@ def load_command_table(self, _):
|
|||
with self.command_group('billing balance', billing_balance, client_factory=cf_balance, is_preview=True) as g:
|
||||
g.custom_show_command('show', 'billing_balance_show')
|
||||
|
||||
from ..generated._client_factory import cf_instruction
|
||||
billing_instruction = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#InstructionsOperations.{}',
|
||||
client_factory=cf_instruction)
|
||||
with self.command_group('billing instruction', billing_instruction, client_factory=cf_instruction,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_instruction_list')
|
||||
g.custom_show_command('show', 'billing_instruction_show')
|
||||
g.custom_command('create', 'billing_instruction_create')
|
||||
|
||||
from ..generated._client_factory import cf_profile
|
||||
billing_profile = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingProfilesOperations.{}',
|
||||
|
@ -63,6 +73,14 @@ def load_command_table(self, _):
|
|||
g.custom_command('update', 'billing_invoice_section_update', supports_no_wait=True)
|
||||
g.custom_wait_command('wait', 'billing_invoice_section_show')
|
||||
|
||||
from ..generated._client_factory import cf_permission
|
||||
billing_permission = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingPermissionsOperations.{}',
|
||||
client_factory=cf_permission)
|
||||
with self.command_group('billing permission', billing_permission, client_factory=cf_permission,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_permission_list')
|
||||
|
||||
from ..generated._client_factory import cf_subscription
|
||||
billing_subscription = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingSubscriptionsOperations.{}',
|
||||
|
@ -117,3 +135,29 @@ def load_command_table(self, _):
|
|||
with self.command_group('billing property', billing_property, client_factory=cf_property, is_preview=True) as g:
|
||||
g.custom_show_command('show', 'billing_property_show')
|
||||
g.custom_command('update', 'billing_property_update')
|
||||
|
||||
from ..generated._client_factory import cf_role_definition
|
||||
billing_role_definition = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingRoleDefinitionsOperations.{}',
|
||||
client_factory=cf_role_definition)
|
||||
with self.command_group('billing role-definition', billing_role_definition, client_factory=cf_role_definition,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_role_definition_list')
|
||||
|
||||
from ..generated._client_factory import cf_role_assignment
|
||||
billing_role_assignment = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingRoleAssignmentsOperations.{}',
|
||||
client_factory=cf_role_assignment)
|
||||
with self.command_group('billing role-assignment', billing_role_assignment, client_factory=cf_role_assignment,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_role_assignment_list')
|
||||
g.custom_command('delete', 'billing_role_assignment_delete', confirmation=True)
|
||||
|
||||
from ..generated._client_factory import cf_agreement
|
||||
billing_agreement = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#AgreementsOperations.{}',
|
||||
client_factory=cf_agreement)
|
||||
with self.command_group('billing agreement', billing_agreement, client_factory=cf_agreement,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_agreement_list')
|
||||
g.custom_show_command('show', 'billing_agreement_show')
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=line-too-long
|
||||
# pylint: disable=too-many-lines
|
||||
# pylint: disable=no-else-return
|
||||
|
||||
from azure.cli.core.util import sdk_no_wait
|
||||
|
||||
|
@ -53,6 +54,41 @@ def billing_balance_show(client,
|
|||
billing_profile_name=profile_name)
|
||||
|
||||
|
||||
def billing_instruction_list(client,
|
||||
account_name,
|
||||
profile_name):
|
||||
return client.list_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name)
|
||||
|
||||
|
||||
def billing_instruction_show(client,
|
||||
account_name,
|
||||
profile_name,
|
||||
name):
|
||||
return client.get(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
instruction_name=name)
|
||||
|
||||
|
||||
def billing_instruction_create(client,
|
||||
account_name,
|
||||
profile_name,
|
||||
name,
|
||||
amount=None,
|
||||
start_date=None,
|
||||
end_date=None,
|
||||
creation_date=None):
|
||||
parameters = {}
|
||||
parameters['amount'] = amount
|
||||
parameters['start_date'] = start_date
|
||||
parameters['end_date'] = end_date
|
||||
parameters['creation_date'] = creation_date
|
||||
return client.put(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
instruction_name=name,
|
||||
parameters=parameters)
|
||||
|
||||
|
||||
def billing_profile_list(client,
|
||||
account_name,
|
||||
expand=None):
|
||||
|
@ -191,7 +227,24 @@ def billing_invoice_section_update(client,
|
|||
labels=labels)
|
||||
|
||||
|
||||
# pylint: disable=no-else-return
|
||||
def billing_permission_list(client,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None,
|
||||
customer_name=None):
|
||||
if account_name is not None and profile_name is not None and invoice_section_name is not None:
|
||||
return client.list_by_invoice_sections(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name)
|
||||
elif account_name is not None and customer_name is not None:
|
||||
return client.list_by_customer(billing_account_name=account_name,
|
||||
customer_name=customer_name)
|
||||
elif account_name is not None and profile_name is not None:
|
||||
return client.list_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name)
|
||||
return client.list_by_billing_account(billing_account_name=account_name)
|
||||
|
||||
|
||||
def billing_subscription_list(client,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
|
@ -361,3 +414,65 @@ def billing_property_show(client):
|
|||
def billing_property_update(client,
|
||||
cost_center=None):
|
||||
return client.update(cost_center=cost_center)
|
||||
|
||||
|
||||
def billing_role_definition_list(client,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None):
|
||||
if account_name is not None and profile_name is not None and invoice_section_name is not None:
|
||||
return client.list_by_invoice_section(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name)
|
||||
elif account_name is not None and profile_name is not None:
|
||||
return client.list_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name)
|
||||
return client.list_by_billing_account(billing_account_name=account_name)
|
||||
|
||||
|
||||
def billing_role_assignment_list(client,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None):
|
||||
if account_name is not None and profile_name is not None and invoice_section_name is not None:
|
||||
return client.list_by_invoice_section(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name)
|
||||
elif account_name is not None and profile_name is not None:
|
||||
return client.list_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name)
|
||||
return client.list_by_billing_account(billing_account_name=account_name)
|
||||
|
||||
|
||||
def billing_role_assignment_delete(client,
|
||||
account_name,
|
||||
name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None):
|
||||
if account_name is not None and profile_name is not None and invoice_section_name is not None and name is not None:
|
||||
return client.delete_by_invoice_section(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name,
|
||||
billing_role_assignment_name=name)
|
||||
elif account_name is not None and profile_name is not None and name is not None:
|
||||
return client.delete_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
billing_role_assignment_name=name)
|
||||
return client.delete_by_billing_account(billing_account_name=account_name,
|
||||
billing_role_assignment_name=name)
|
||||
|
||||
|
||||
def billing_agreement_list(client,
|
||||
account_name,
|
||||
expand=None):
|
||||
return client.list_by_billing_account(billing_account_name=account_name,
|
||||
expand=expand)
|
||||
|
||||
|
||||
def billing_agreement_show(client,
|
||||
account_name,
|
||||
name,
|
||||
expand=None):
|
||||
return client.get(billing_account_name=account_name,
|
||||
agreement_name=name,
|
||||
expand=expand)
|
||||
|
|
|
@ -84,6 +84,53 @@ Microsoft Customer Agreement."
|
|||
az billing balance show --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction'] = """
|
||||
type: group
|
||||
short-summary: Manage billing instruction
|
||||
"""
|
||||
|
||||
helps['billing instruction list'] = """
|
||||
type: command
|
||||
short-summary: "List the instructions by billing profile id."
|
||||
examples:
|
||||
- name: List instructions by billing profile
|
||||
text: |-
|
||||
az billing instruction list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction show'] = """
|
||||
type: command
|
||||
short-summary: "Show the instruction by name. These are custom billing instructions and are only applicable for \
|
||||
certain customers."
|
||||
examples:
|
||||
- name: Instruction
|
||||
text: |-
|
||||
az billing instruction show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--name "{instructionName}"
|
||||
"""
|
||||
|
||||
helps['billing instruction create'] = """
|
||||
type: command
|
||||
short-summary: "Create an instruction. These are custom billing instructions and are only applicable \
|
||||
for certain customers."
|
||||
examples:
|
||||
- name: Create an instruction
|
||||
text: |-
|
||||
az billing instruction create --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --name "{instructionName}" --amount 5000 --end-date "2020-12-30T21:26:47.997Z" --start-date \
|
||||
"2019-12-30T21:26:47.997Z"
|
||||
"""
|
||||
|
||||
helps['billing instruction update'] = """
|
||||
type: command
|
||||
short-summary: "Update an instruction. These are custom billing instructions and are only applicable \
|
||||
for certain customers."
|
||||
examples:
|
||||
- name: Create an instruction
|
||||
text: |-
|
||||
az billing instruction update --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name "{instructionName}" --amount 5000
|
||||
"""
|
||||
|
||||
helps['billing profile'] = """
|
||||
type: group
|
||||
short-summary: Manage billing profile of billing account
|
||||
|
@ -261,6 +308,30 @@ helps['billing invoice section wait'] = """
|
|||
"{billingProfileName}" --name "{invoiceSectionName}" --updated
|
||||
"""
|
||||
|
||||
helps['billing permission'] = """
|
||||
type: group
|
||||
short-summary: List billing permissions
|
||||
"""
|
||||
|
||||
helps['billing permission list'] = """
|
||||
type: command
|
||||
short-summary: "List the billing permissions the caller has on a billing account."
|
||||
examples:
|
||||
- name: List permissions by billing account scope
|
||||
text: |-
|
||||
az billing permission list --account-name "{billingAccountName}"
|
||||
- name: List permissions by billing profile scope
|
||||
text: |-
|
||||
az billing permission list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
- name: List permission by invoice section scope
|
||||
text: |-
|
||||
az billing permission list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--invoice-section-name "{invoiceSectionName}"
|
||||
- name: List permissions by customer scope
|
||||
text: |-
|
||||
az billing permission list --account-name "{billingAccountName}" --customer-name "{customerName}"
|
||||
"""
|
||||
|
||||
helps['billing subscription'] = """
|
||||
type: group
|
||||
short-summary: billing subscription
|
||||
|
@ -526,3 +597,110 @@ operation is supported only for billing accounts with agreement type Microsoft C
|
|||
text: |-
|
||||
az billing property update --cost-center "1010"
|
||||
"""
|
||||
|
||||
helps['billing role-definition'] = """
|
||||
type: group
|
||||
short-summary: Display billing role-definition
|
||||
"""
|
||||
|
||||
helps['billing role-definition list'] = """
|
||||
type: command
|
||||
short-summary: "List the role definitions for a billing account. The operation is supported for billing accounts \
|
||||
with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: Lists the role definitions for a billing account
|
||||
text: |-
|
||||
az billing role-definition list --account-name "{billingAccountName}"
|
||||
- name: List the role definitions for a billing profile.
|
||||
text: |-
|
||||
az billing role-definition list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
- name: List the role definitions for an invoice section.
|
||||
text: |-
|
||||
az billing role-definition list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-definition show'] = """
|
||||
type: command
|
||||
short-summary: Show the role definition details
|
||||
examples:
|
||||
- name: Show the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
||||
text: |-
|
||||
az billing role-definition show --account-name "{billingAccountName}" --name "{billingRoleDefinitionName}"
|
||||
- name: Show the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
||||
text: |-
|
||||
az billing role-definition show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name "{billingRoleDefinitionName}"
|
||||
- name: Show the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement
|
||||
text: |-
|
||||
az billing role-definition show --account-name "{billingAccountName}" --invoice-section-name "{invoiceSectionName}" --name "{billingRoleDefinitionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-assignment'] = """
|
||||
type: group
|
||||
short-summary: billing role-assignment
|
||||
"""
|
||||
|
||||
helps['billing role-assignment list'] = """
|
||||
type: command
|
||||
short-summary: "List the role assignments for the caller on a billing account. The operation is supported for \
|
||||
billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: List role assignements by billing account scope
|
||||
text: |-
|
||||
az billing role-assignment list --account-name "{billingAccountName}"
|
||||
- name: List role assignments by billing profile scope
|
||||
text: |-
|
||||
az billing role-assignment list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
- name: List role assignments by invoice section scope
|
||||
text: |-
|
||||
az billing role-assignment list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-assignment show'] = """
|
||||
type: command
|
||||
short-summary: Show the role assignment detail for the caller within different scopes. The operation is supported for \
|
||||
billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
||||
examples:
|
||||
- name: Show a role assignment for the caller on a billing account
|
||||
text: |-
|
||||
az billing role-assignment show --account-name "{billingAccountName}" --name "{billingRoleAssignmentName}"
|
||||
- name: Show a role assignment for the caller on a billing profile
|
||||
text: |-
|
||||
az billing role-assignment show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name "{billingRoleAssignmentName}"
|
||||
- name: Show a role assignment for the caller on an invoice section
|
||||
text: |-
|
||||
az billing role-assignment show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name "{billingRoleAssignmentName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing role-assignment delete'] = """
|
||||
type: command
|
||||
short-summary: "Delete a role assignment for the caller on a billing account. The operation is supported for \
|
||||
billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement."
|
||||
examples:
|
||||
- name: InvoiceSectionRoleAssignmentDelete
|
||||
text: |-
|
||||
az billing role-assignment delete --account-name "{billingAccountName}" --profile-name \
|
||||
"{billingProfileName}" --name "{billingRoleAssignmentName}" --invoice-section-name "{invoiceSectionName}"
|
||||
"""
|
||||
|
||||
helps['billing agreement'] = """
|
||||
type: group
|
||||
short-summary: Display billing agreement
|
||||
"""
|
||||
|
||||
helps['billing agreement list'] = """
|
||||
type: command
|
||||
short-summary: "List the agreements for a billing account."
|
||||
examples:
|
||||
- name: List agreements by billing account
|
||||
text: |-
|
||||
az billing agreement list --account-name "{billingAccountName}"
|
||||
"""
|
||||
|
||||
helps['billing agreement show'] = """
|
||||
type: command
|
||||
short-summary: "Get an agreement by ID."
|
||||
examples:
|
||||
- name: Show an agreement by billing account and its name
|
||||
text: |-
|
||||
az billing agreement show --name "{agreementName}" --account-name "{billingAccountName}"
|
||||
"""
|
||||
|
|
|
@ -11,6 +11,37 @@ from ..action import AddSoldTo
|
|||
|
||||
def load_arguments(self, _):
|
||||
|
||||
with self.argument_context("billing instruction") as c:
|
||||
c.argument(
|
||||
"billing_account_name", # override the parameter name comes from getter method
|
||||
options_list=["--account-name"],
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing account.",
|
||||
)
|
||||
c.argument(
|
||||
"billing_profile_name", # override the parameter name comes from getter method
|
||||
options_list=["--profile-name"],
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing profile.",
|
||||
)
|
||||
c.argument(
|
||||
"instruction_name", options_list=["--name", "-n"], type=str, help="Instruction Name."
|
||||
)
|
||||
c.argument(
|
||||
"amount",
|
||||
type=float,
|
||||
help="The amount budgeted for this billing instruction.",
|
||||
)
|
||||
c.argument(
|
||||
"start_date", help="The date this billing instruction goes into effect."
|
||||
)
|
||||
c.argument(
|
||||
"end_date", help="The date this billing instruction is no longer in effect."
|
||||
)
|
||||
c.argument(
|
||||
"creation_date", help="The date this billing instruction was created."
|
||||
)
|
||||
|
||||
with self.argument_context("billing invoice") as c:
|
||||
c.argument(
|
||||
"account_name", help="The ID that uniquely identifies a billing account"
|
||||
|
@ -53,8 +84,54 @@ def load_arguments(self, _):
|
|||
)
|
||||
c.argument("customer_name", help="The ID that uniquely identifies a customer")
|
||||
|
||||
with self.argument_context('billing profile create') as c:
|
||||
c.argument('bill_to', action=AddSoldTo, nargs='*', help='Billing address.')
|
||||
with self.argument_context("billing profile create") as c:
|
||||
c.argument("bill_to", action=AddSoldTo, nargs="*", help="Billing address.")
|
||||
|
||||
with self.argument_context('billing profile update') as c:
|
||||
c.argument('bill_to', action=AddSoldTo, nargs='*', help='Billing address.')
|
||||
with self.argument_context("billing profile update") as c:
|
||||
c.argument("bill_to", action=AddSoldTo, nargs="*", help="Billing address.")
|
||||
|
||||
with self.argument_context("billing role-definition") as c:
|
||||
c.argument(
|
||||
"name",
|
||||
options_list=["--name", "-n"],
|
||||
type=str,
|
||||
help="The name that uniquely identifies a role definition.",
|
||||
)
|
||||
c.argument(
|
||||
"account_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing account.",
|
||||
)
|
||||
c.argument(
|
||||
"profile_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing profile.",
|
||||
)
|
||||
c.argument(
|
||||
"invoice_section_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies an invoice section.",
|
||||
)
|
||||
|
||||
with self.argument_context("billing role-assignment") as c:
|
||||
c.argument(
|
||||
"account_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing account.",
|
||||
)
|
||||
c.argument(
|
||||
"name",
|
||||
options_list=["--name", "-n"],
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a role " "assignment.",
|
||||
)
|
||||
c.argument(
|
||||
"profile_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies a billing profile.",
|
||||
)
|
||||
c.argument(
|
||||
"invoice_section_name",
|
||||
type=str,
|
||||
help="The ID that uniquely identifies an invoice section.",
|
||||
)
|
||||
|
|
|
@ -124,3 +124,18 @@ def billing_policy_update_validator(namespace):
|
|||
"--account-name, --customer-name, [--view-charges] "
|
||||
"is valid"
|
||||
)
|
||||
|
||||
|
||||
def billing_permission_list_validator(namespace):
|
||||
from azure.cli.core.azclierror import MutuallyExclusiveArgumentError
|
||||
|
||||
if namespace.customer_name is not None:
|
||||
if namespace.invoice_section_name is not None:
|
||||
raise MutuallyExclusiveArgumentError(
|
||||
"--customer-name can't be used with --invoice-section-name"
|
||||
)
|
||||
|
||||
if namespace.profile_name is not None:
|
||||
raise MutuallyExclusiveArgumentError(
|
||||
"--customer-name can't be used with --profile-name"
|
||||
)
|
||||
|
|
|
@ -12,14 +12,27 @@ from ._validators import (
|
|||
billing_invoice_download_validator,
|
||||
billing_invoice_show_validator,
|
||||
billing_profile_show_validator,
|
||||
billing_policy_update_validator
|
||||
billing_policy_update_validator,
|
||||
billing_permission_list_validator
|
||||
)
|
||||
|
||||
|
||||
def load_command_table(self, _):
|
||||
|
||||
from ..generated._client_factory import cf_invoice_section
|
||||
from ..generated._client_factory import cf_instruction
|
||||
billing_instruction = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#InstructionsOperations.{}',
|
||||
client_factory=cf_instruction)
|
||||
with self.command_group('billing instruction', billing_instruction, client_factory=cf_instruction,
|
||||
is_preview=True) as g:
|
||||
g.generic_update_command('update',
|
||||
operations_tmpl='azure.cli.command_modules.billing.manual.custom#{}',
|
||||
getter_type=billing_instruction,
|
||||
setter_name='put',
|
||||
setter_type=billing_instruction,
|
||||
custom_func_name='billing_instruction_update')
|
||||
|
||||
from ..generated._client_factory import cf_invoice_section
|
||||
billing_invoice_section = CliCommandType(
|
||||
operations_tmpl="azure.mgmt.billing.operations#InvoiceSectionsOperations.{}",
|
||||
client_factory=cf_invoice_section,
|
||||
|
@ -31,7 +44,6 @@ def load_command_table(self, _):
|
|||
pass # inherit commands from generated/ and add is_preview=True
|
||||
|
||||
from ..generated._client_factory import cf_invoice
|
||||
|
||||
billing_invoice = CliCommandType(
|
||||
operations_tmpl="azure.mgmt.billing.operations#InvoicesOperations.{}",
|
||||
client_factory=cf_invoice,
|
||||
|
@ -54,3 +66,27 @@ def load_command_table(self, _):
|
|||
with self.command_group('billing policy', billing_policy, client_factory=cf_policy, is_preview=True) as g:
|
||||
g.custom_show_command('show', 'billing_policy_show', validator=billing_profile_show_validator)
|
||||
g.custom_command('update', 'billing_policy_update', validator=billing_policy_update_validator)
|
||||
|
||||
from ..generated._client_factory import cf_permission
|
||||
billing_permission = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingPermissionsOperations.{}',
|
||||
client_factory=cf_permission)
|
||||
with self.command_group('billing permission', billing_permission, client_factory=cf_permission,
|
||||
is_preview=True) as g:
|
||||
g.custom_command('list', 'billing_permission_list', validator=billing_permission_list_validator)
|
||||
|
||||
from ..generated._client_factory import cf_role_assignment
|
||||
billing_role_assignment = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingRoleAssignmentsOperations.{}',
|
||||
client_factory=cf_role_assignment)
|
||||
with self.command_group('billing role-assignment', billing_role_assignment, client_factory=cf_role_assignment,
|
||||
is_preview=True) as g:
|
||||
g.custom_show_command('show', 'billing_role_assignment_show')
|
||||
|
||||
from ..generated._client_factory import cf_role_definition
|
||||
billing_role_definition = CliCommandType(
|
||||
operations_tmpl='azure.mgmt.billing.operations#BillingRoleDefinitionsOperations.{}',
|
||||
client_factory=cf_role_definition)
|
||||
with self.command_group('billing role-definition', billing_role_definition, client_factory=cf_role_definition,
|
||||
is_preview=True) as g:
|
||||
g.custom_show_command('show', 'billing_role_definition_show')
|
||||
|
|
|
@ -95,3 +95,58 @@ def billing_policy_update(client,
|
|||
return CLIInternalError(
|
||||
"Uncaught argument combinations for Azure CLI to handle. Please submit an issue"
|
||||
)
|
||||
|
||||
|
||||
def billing_role_assignment_show(client,
|
||||
name,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None):
|
||||
if profile_name is not None and invoice_section_name is None:
|
||||
return client.get_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
billing_role_assignment_name=name)
|
||||
if profile_name is not None and invoice_section_name is not None:
|
||||
return client.get_by_invoice_section(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name,
|
||||
billing_role_assignment_name=name)
|
||||
|
||||
return client.get_by_billing_account(billing_account_name=account_name,
|
||||
billing_role_assignment_name=name)
|
||||
|
||||
|
||||
def billing_role_definition_show(client,
|
||||
name,
|
||||
account_name,
|
||||
profile_name=None,
|
||||
invoice_section_name=None):
|
||||
if profile_name is not None and invoice_section_name is None:
|
||||
return client.get_by_billing_profile(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
billing_role_definition_name=name)
|
||||
|
||||
if profile_name is not None and invoice_section_name is not None:
|
||||
return client.get_by_invoice_section(billing_account_name=account_name,
|
||||
billing_profile_name=profile_name,
|
||||
invoice_section_name=invoice_section_name,
|
||||
billing_role_definition_name=name)
|
||||
|
||||
return client.get_by_billing_account(billing_account_name=account_name,
|
||||
billing_role_definition_name=name)
|
||||
|
||||
|
||||
def billing_instruction_update(cmd,
|
||||
instance,
|
||||
amount=None,
|
||||
start_date=None,
|
||||
end_date=None,
|
||||
creation_date=None):
|
||||
|
||||
with cmd.update_context(instance) as c:
|
||||
c.set_param('amount', amount)
|
||||
c.set_param('start_date', start_date)
|
||||
c.set_param('end_date', end_date)
|
||||
c.set_param('creation_date', creation_date)
|
||||
|
||||
return instance
|
||||
|
|
|
@ -11,15 +11,20 @@
|
|||
|---------|------------|--------|
|
||||
|az billing account|BillingAccounts|[commands](#CommandsInBillingAccounts)|
|
||||
|az billing balance|AvailableBalances|[commands](#CommandsInAvailableBalances)|
|
||||
|az billing instruction|Instructions|[commands](#CommandsInInstructions)|
|
||||
|az billing profile|BillingProfiles|[commands](#CommandsInBillingProfiles)|
|
||||
|az billing customer|Customers|[commands](#CommandsInCustomers)|
|
||||
|az billing invoice section|InvoiceSections|[commands](#CommandsInInvoiceSections)|
|
||||
|az billing permission|BillingPermissions|[commands](#CommandsInBillingPermissions)|
|
||||
|az billing subscription|BillingSubscriptions|[commands](#CommandsInBillingSubscriptions)|
|
||||
|az billing product|Products|[commands](#CommandsInProducts)|
|
||||
|az billing invoice|Invoices|[commands](#CommandsInInvoices)|
|
||||
|az billing transaction|Transactions|[commands](#CommandsInTransactions)|
|
||||
|az billing policy|Policies|[commands](#CommandsInPolicies)|
|
||||
|az billing property|BillingProperty|[commands](#CommandsInBillingProperty)|
|
||||
|az billing role-definition|BillingRoleDefinitions|[commands](#CommandsInBillingRoleDefinitions)|
|
||||
|az billing role-assignment|BillingRoleAssignments|[commands](#CommandsInBillingRoleAssignments)|
|
||||
|az billing agreement|Agreements|[commands](#CommandsInAgreements)|
|
||||
|
||||
## COMMANDS
|
||||
### <a name="CommandsInBillingAccounts">Commands in `az billing account` group</a>
|
||||
|
@ -29,6 +34,12 @@
|
|||
|[az billing account show](#BillingAccountsGet)|Get|[Parameters](#ParametersBillingAccountsGet)|[Example](#ExamplesBillingAccountsGet)|
|
||||
|[az billing account update](#BillingAccountsUpdate)|Update|[Parameters](#ParametersBillingAccountsUpdate)|[Example](#ExamplesBillingAccountsUpdate)|
|
||||
|
||||
### <a name="CommandsInAgreements">Commands in `az billing agreement` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|[az billing agreement list](#AgreementsListByBillingAccount)|ListByBillingAccount|[Parameters](#ParametersAgreementsListByBillingAccount)|[Example](#ExamplesAgreementsListByBillingAccount)|
|
||||
|[az billing agreement show](#AgreementsGet)|Get|[Parameters](#ParametersAgreementsGet)|[Example](#ExamplesAgreementsGet)|
|
||||
|
||||
### <a name="CommandsInAvailableBalances">Commands in `az billing balance` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|
@ -41,6 +52,13 @@
|
|||
|[az billing customer list](#CustomersListByBillingAccount)|ListByBillingAccount|[Parameters](#ParametersCustomersListByBillingAccount)|[Example](#ExamplesCustomersListByBillingAccount)|
|
||||
|[az billing customer show](#CustomersGet)|Get|[Parameters](#ParametersCustomersGet)|[Example](#ExamplesCustomersGet)|
|
||||
|
||||
### <a name="CommandsInInstructions">Commands in `az billing instruction` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|[az billing instruction list](#InstructionsListByBillingProfile)|ListByBillingProfile|[Parameters](#ParametersInstructionsListByBillingProfile)|[Example](#ExamplesInstructionsListByBillingProfile)|
|
||||
|[az billing instruction show](#InstructionsGet)|Get|[Parameters](#ParametersInstructionsGet)|[Example](#ExamplesInstructionsGet)|
|
||||
|[az billing instruction create](#InstructionsPut)|Put|[Parameters](#ParametersInstructionsPut)|[Example](#ExamplesInstructionsPut)|
|
||||
|
||||
### <a name="CommandsInInvoices">Commands in `az billing invoice` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|
@ -57,6 +75,14 @@
|
|||
|[az billing invoice section create](#InvoiceSectionsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersInvoiceSectionsCreateOrUpdate#Create)|[Example](#ExamplesInvoiceSectionsCreateOrUpdate#Create)|
|
||||
|[az billing invoice section update](#InvoiceSectionsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersInvoiceSectionsCreateOrUpdate#Update)|Not Found|
|
||||
|
||||
### <a name="CommandsInBillingPermissions">Commands in `az billing permission` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|[az billing permission list](#BillingPermissionsListByInvoiceSections)|ListByInvoiceSections|[Parameters](#ParametersBillingPermissionsListByInvoiceSections)|[Example](#ExamplesBillingPermissionsListByInvoiceSections)|
|
||||
|[az billing permission list](#BillingPermissionsListByCustomer)|ListByCustomer|[Parameters](#ParametersBillingPermissionsListByCustomer)|[Example](#ExamplesBillingPermissionsListByCustomer)|
|
||||
|[az billing permission list](#BillingPermissionsListByBillingProfile)|ListByBillingProfile|[Parameters](#ParametersBillingPermissionsListByBillingProfile)|[Example](#ExamplesBillingPermissionsListByBillingProfile)|
|
||||
|[az billing permission list](#BillingPermissionsListByBillingAccount)|ListByBillingAccount|[Parameters](#ParametersBillingPermissionsListByBillingAccount)|[Example](#ExamplesBillingPermissionsListByBillingAccount)|
|
||||
|
||||
### <a name="CommandsInPolicies">Commands in `az billing policy` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|
@ -88,6 +114,23 @@
|
|||
|[az billing property show](#BillingPropertyGet)|Get|[Parameters](#ParametersBillingPropertyGet)|[Example](#ExamplesBillingPropertyGet)|
|
||||
|[az billing property update](#BillingPropertyUpdate)|Update|[Parameters](#ParametersBillingPropertyUpdate)|[Example](#ExamplesBillingPropertyUpdate)|
|
||||
|
||||
### <a name="CommandsInBillingRoleAssignments">Commands in `az billing role-assignment` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|[az billing role-assignment list](#BillingRoleAssignmentsListByInvoiceSection)|ListByInvoiceSection|[Parameters](#ParametersBillingRoleAssignmentsListByInvoiceSection)|[Example](#ExamplesBillingRoleAssignmentsListByInvoiceSection)|
|
||||
|[az billing role-assignment list](#BillingRoleAssignmentsListByBillingProfile)|ListByBillingProfile|[Parameters](#ParametersBillingRoleAssignmentsListByBillingProfile)|[Example](#ExamplesBillingRoleAssignmentsListByBillingProfile)|
|
||||
|[az billing role-assignment list](#BillingRoleAssignmentsListByBillingAccount)|ListByBillingAccount|[Parameters](#ParametersBillingRoleAssignmentsListByBillingAccount)|[Example](#ExamplesBillingRoleAssignmentsListByBillingAccount)|
|
||||
|[az billing role-assignment delete](#BillingRoleAssignmentsDeleteByInvoiceSection)|DeleteByInvoiceSection|[Parameters](#ParametersBillingRoleAssignmentsDeleteByInvoiceSection)|[Example](#ExamplesBillingRoleAssignmentsDeleteByInvoiceSection)|
|
||||
|[az billing role-assignment delete](#BillingRoleAssignmentsDeleteByBillingProfile)|DeleteByBillingProfile|[Parameters](#ParametersBillingRoleAssignmentsDeleteByBillingProfile)|[Example](#ExamplesBillingRoleAssignmentsDeleteByBillingProfile)|
|
||||
|[az billing role-assignment delete](#BillingRoleAssignmentsDeleteByBillingAccount)|DeleteByBillingAccount|[Parameters](#ParametersBillingRoleAssignmentsDeleteByBillingAccount)|[Example](#ExamplesBillingRoleAssignmentsDeleteByBillingAccount)|
|
||||
|
||||
### <a name="CommandsInBillingRoleDefinitions">Commands in `az billing role-definition` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|[az billing role-definition list](#BillingRoleDefinitionsListByInvoiceSection)|ListByInvoiceSection|[Parameters](#ParametersBillingRoleDefinitionsListByInvoiceSection)|[Example](#ExamplesBillingRoleDefinitionsListByInvoiceSection)|
|
||||
|[az billing role-definition list](#BillingRoleDefinitionsListByBillingProfile)|ListByBillingProfile|[Parameters](#ParametersBillingRoleDefinitionsListByBillingProfile)|[Example](#ExamplesBillingRoleDefinitionsListByBillingProfile)|
|
||||
|[az billing role-definition list](#BillingRoleDefinitionsListByBillingAccount)|ListByBillingAccount|[Parameters](#ParametersBillingRoleDefinitionsListByBillingAccount)|[Example](#ExamplesBillingRoleDefinitionsListByBillingAccount)|
|
||||
|
||||
### <a name="CommandsInBillingSubscriptions">Commands in `az billing subscription` group</a>
|
||||
|CLI Command|Operation Swagger name|Parameters|Examples|
|
||||
|---------|------------|--------|-----------|
|
||||
|
@ -163,6 +206,32 @@ region="WA"
|
|||
|**--enrollment-accounts**|array|The accounts associated to the enrollment.|enrollment_accounts|enrollmentAccounts|
|
||||
|**--billing-profiles-value**|array|The billing profiles associated with the billing account.|value|value|
|
||||
|
||||
### group `az billing agreement`
|
||||
#### <a name="AgreementsListByBillingAccount">Command `az billing agreement list`</a>
|
||||
|
||||
##### <a name="ExamplesAgreementsListByBillingAccount">Example</a>
|
||||
```
|
||||
az billing agreement list --account-name "{billingAccountName}"
|
||||
```
|
||||
##### <a name="ParametersAgreementsListByBillingAccount">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--expand**|string|May be used to expand the participants.|expand|$expand|
|
||||
|
||||
#### <a name="AgreementsGet">Command `az billing agreement show`</a>
|
||||
|
||||
##### <a name="ExamplesAgreementsGet">Example</a>
|
||||
```
|
||||
az billing agreement show --name "{agreementName}" --account-name "{billingAccountName}"
|
||||
```
|
||||
##### <a name="ParametersAgreementsGet">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--name**|string|The ID that uniquely identifies an agreement.|name|agreementName|
|
||||
|**--expand**|string|May be used to expand the participants.|expand|$expand|
|
||||
|
||||
### group `az billing balance`
|
||||
#### <a name="AvailableBalancesGet">Command `az billing balance show`</a>
|
||||
|
||||
|
@ -218,6 +287,51 @@ az billing customer show --expand "enabledAzurePlans,resellers" --account-name "
|
|||
|**--customer-name**|string|The ID that uniquely identifies a customer.|customer_name|customerName|
|
||||
|**--expand**|string|May be used to expand enabledAzurePlans and resellers|expand|$expand|
|
||||
|
||||
### group `az billing instruction`
|
||||
#### <a name="InstructionsListByBillingProfile">Command `az billing instruction list`</a>
|
||||
|
||||
##### <a name="ExamplesInstructionsListByBillingProfile">Example</a>
|
||||
```
|
||||
az billing instruction list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
```
|
||||
##### <a name="ParametersInstructionsListByBillingProfile">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|
||||
#### <a name="InstructionsGet">Command `az billing instruction show`</a>
|
||||
|
||||
##### <a name="ExamplesInstructionsGet">Example</a>
|
||||
```
|
||||
az billing instruction show --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name \
|
||||
"{instructionName}"
|
||||
```
|
||||
##### <a name="ParametersInstructionsGet">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--name**|string|Instruction Name.|name|instructionName|
|
||||
|
||||
#### <a name="InstructionsPut">Command `az billing instruction create`</a>
|
||||
|
||||
##### <a name="ExamplesInstructionsPut">Example</a>
|
||||
```
|
||||
az billing instruction create --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name \
|
||||
"{instructionName}" --amount 5000 --end-date "2020-12-30T21:26:47.997Z" --start-date "2019-12-30T21:26:47.997Z"
|
||||
```
|
||||
##### <a name="ParametersInstructionsPut">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--name**|string|Instruction Name.|name|instructionName|
|
||||
|**--amount**|number|The amount budgeted for this billing instruction.|amount|amount|
|
||||
|**--start-date**|date-time|The date this billing instruction goes into effect.|start_date|startDate|
|
||||
|**--end-date**|date-time|The date this billing instruction is no longer in effect.|end_date|endDate|
|
||||
|**--creation-date**|date-time|The date this billing instruction was created.|creation_date|creationDate|
|
||||
|
||||
### group `az billing invoice`
|
||||
#### <a name="InvoicesListByBillingProfile">Command `az billing invoice list`</a>
|
||||
|
||||
|
@ -341,6 +455,50 @@ az billing invoice section create --account-name "{billingAccountName}" --profil
|
|||
|**--display-name**|string|The name of the invoice section.|display_name|displayName|
|
||||
|**--labels**|dictionary|Dictionary of metadata associated with the invoice section.|labels|labels|
|
||||
|
||||
### group `az billing permission`
|
||||
#### <a name="BillingPermissionsListByInvoiceSections">Command `az billing permission list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingPermissionsListByInvoiceSections">Example</a>
|
||||
```
|
||||
az billing permission list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--invoice-section-name "{invoiceSectionName}"
|
||||
```
|
||||
##### <a name="ParametersBillingPermissionsListByInvoiceSections">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--invoice-section-name**|string|The ID that uniquely identifies an invoice section.|invoice_section_name|invoiceSectionName|
|
||||
|
||||
#### <a name="BillingPermissionsListByCustomer">Command `az billing permission list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingPermissionsListByCustomer">Example</a>
|
||||
```
|
||||
az billing permission list --account-name "{billingAccountName}" --customer-name "{customerName}"
|
||||
```
|
||||
##### <a name="ParametersBillingPermissionsListByCustomer">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--customer-name**|string|The ID that uniquely identifies a customer.|customer_name|customerName|
|
||||
|
||||
#### <a name="BillingPermissionsListByBillingProfile">Command `az billing permission list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingPermissionsListByBillingProfile">Example</a>
|
||||
```
|
||||
az billing permission list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
```
|
||||
##### <a name="ParametersBillingPermissionsListByBillingProfile">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
#### <a name="BillingPermissionsListByBillingAccount">Command `az billing permission list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingPermissionsListByBillingAccount">Example</a>
|
||||
```
|
||||
az billing permission list --account-name "{billingAccountName}"
|
||||
```
|
||||
##### <a name="ParametersBillingPermissionsListByBillingAccount">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
### group `az billing policy`
|
||||
#### <a name="PoliciesUpdate">Command `az billing policy update`</a>
|
||||
|
||||
|
@ -556,6 +714,106 @@ az billing property update --cost-center "1010"
|
|||
|------|----|-----------|----------|------------|
|
||||
|**--cost-center**|string|The cost center applied to the subscription.|cost_center|costCenter|
|
||||
|
||||
### group `az billing role-assignment`
|
||||
#### <a name="BillingRoleAssignmentsListByInvoiceSection">Command `az billing role-assignment list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsListByInvoiceSection">Example</a>
|
||||
```
|
||||
az billing role-assignment list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--invoice-section-name "{invoiceSectionName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsListByInvoiceSection">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--invoice-section-name**|string|The ID that uniquely identifies an invoice section.|invoice_section_name|invoiceSectionName|
|
||||
|
||||
#### <a name="BillingRoleAssignmentsListByBillingProfile">Command `az billing role-assignment list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsListByBillingProfile">Example</a>
|
||||
```
|
||||
az billing role-assignment list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsListByBillingProfile">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
#### <a name="BillingRoleAssignmentsListByBillingAccount">Command `az billing role-assignment list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsListByBillingAccount">Example</a>
|
||||
```
|
||||
az billing role-assignment list --account-name "{billingAccountName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsListByBillingAccount">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
#### <a name="BillingRoleAssignmentsDeleteByInvoiceSection">Command `az billing role-assignment delete`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsDeleteByInvoiceSection">Example</a>
|
||||
```
|
||||
az billing role-assignment delete --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name \
|
||||
"{billingRoleAssignmentName}" --invoice-section-name "{invoiceSectionName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsDeleteByInvoiceSection">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--invoice-section-name**|string|The ID that uniquely identifies an invoice section.|invoice_section_name|invoiceSectionName|
|
||||
|**--name**|string|The ID that uniquely identifies a role assignment.|name|billingRoleAssignmentName|
|
||||
|
||||
#### <a name="BillingRoleAssignmentsDeleteByBillingProfile">Command `az billing role-assignment delete`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsDeleteByBillingProfile">Example</a>
|
||||
```
|
||||
az billing role-assignment delete --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --name \
|
||||
"{billingRoleAssignmentName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsDeleteByBillingProfile">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
#### <a name="BillingRoleAssignmentsDeleteByBillingAccount">Command `az billing role-assignment delete`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleAssignmentsDeleteByBillingAccount">Example</a>
|
||||
```
|
||||
az billing role-assignment delete --account-name "{billingAccountName}" --name "{billingRoleAssignmentName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleAssignmentsDeleteByBillingAccount">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
### group `az billing role-definition`
|
||||
#### <a name="BillingRoleDefinitionsListByInvoiceSection">Command `az billing role-definition list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleDefinitionsListByInvoiceSection">Example</a>
|
||||
```
|
||||
az billing role-definition list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" \
|
||||
--invoice-section-name "{invoiceSectionName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleDefinitionsListByInvoiceSection">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
|**--account-name**|string|The ID that uniquely identifies a billing account.|account_name|billingAccountName|
|
||||
|**--profile-name**|string|The ID that uniquely identifies a billing profile.|profile_name|billingProfileName|
|
||||
|**--invoice-section-name**|string|The ID that uniquely identifies an invoice section.|invoice_section_name|invoiceSectionName|
|
||||
|
||||
#### <a name="BillingRoleDefinitionsListByBillingProfile">Command `az billing role-definition list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleDefinitionsListByBillingProfile">Example</a>
|
||||
```
|
||||
az billing role-definition list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleDefinitionsListByBillingProfile">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
#### <a name="BillingRoleDefinitionsListByBillingAccount">Command `az billing role-definition list`</a>
|
||||
|
||||
##### <a name="ExamplesBillingRoleDefinitionsListByBillingAccount">Example</a>
|
||||
```
|
||||
az billing role-definition list --account-name "{billingAccountName}"
|
||||
```
|
||||
##### <a name="ParametersBillingRoleDefinitionsListByBillingAccount">Parameters</a>
|
||||
|Option|Type|Description|Path (SDK)|Swagger name|
|
||||
|------|----|-----------|----------|------------|
|
||||
### group `az billing subscription`
|
||||
#### <a name="BillingSubscriptionsListByInvoiceSection">Command `az billing subscription list`</a>
|
||||
|
||||
|
|
|
@ -0,0 +1,105 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing agreement list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/agreements?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2018-11-01-preview, 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '12'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 06:58:10 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing agreement show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --name --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/agreements/NotFountResource?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"code":"NotFound","message":"The resource or one of its dependencies
|
||||
could not be found."}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2018-11-01-preview, 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '91'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 06:58:11 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 404
|
||||
message: Not Found
|
||||
version: 1
|
|
@ -0,0 +1,105 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing agreement list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/agreements?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2018-11-01-preview, 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '12'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 05:23:48 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing agreement show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --name --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/agreements/404Resource?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"code":"NotFound","message":"The resource or one of its dependencies
|
||||
could not be found."}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2018-11-01-preview, 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '91'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 05:23:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 404
|
||||
message: Not Found
|
||||
version: 1
|
|
@ -0,0 +1,228 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: '{"properties": {"amount": 5000.0, "startDate": "2019-12-30T21:26:47.997Z",
|
||||
"endDate": "2020-12-30T21:26:47.997Z"}}'
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction create
|
||||
Connection:
|
||||
- keep-alive
|
||||
Content-Length:
|
||||
- '114'
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --name --amount --end-date --start-date
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions/inst-1?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"name":"inst-1","properties":{"amount":5000.0,"creationDate":"0001-01-01T00:00:00+00:00","endDate":"2020-12-30T21:26:47.997+00:00","startDate":"2019-12-30T21:26:47.997+00:00"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/instructions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '249'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Thu, 29 Oct 2020 04:54:06 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-ratelimit-remaining-tenant-writes:
|
||||
- '1199'
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction update
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --name --amount
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions/inst-1?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"name":"inst-1","properties":{"amount":5000.0,"creationDate":"2020-10-29T04:54:07.1994869+00:00","endDate":"2020-12-30T21:26:47.997+00:00","startDate":"2019-12-30T21:26:47.997+00:00"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/instructions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '257'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Thu, 29 Oct 2020 04:54:07 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: '{"properties": {"amount": 12.0, "startDate": "2019-12-30T21:26:47.997Z",
|
||||
"endDate": "2020-12-30T21:26:47.997Z", "creationDate": "2020-10-29T04:54:07.199486Z"}}'
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction update
|
||||
Connection:
|
||||
- keep-alive
|
||||
Content-Length:
|
||||
- '159'
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --name --amount
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions/inst-1?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"name":"inst-1","properties":{"amount":12.0,"creationDate":"0001-01-01T00:00:00+00:00","endDate":"2020-12-30T21:26:47.997+00:00","startDate":"2019-12-30T21:26:47.997+00:00"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/instructions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '247'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Thu, 29 Oct 2020 04:54:09 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-ratelimit-remaining-tenant-writes:
|
||||
- '1199'
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions/inst-1?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"name":"inst-1","properties":{"amount":12.0,"creationDate":"2020-10-29T04:54:08.8780542+00:00","endDate":"2020-12-30T21:26:47.997+00:00","startDate":"2019-12-30T21:26:47.997+00:00"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/instructions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '255'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Thu, 29 Oct 2020 04:54:09 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
|
@ -0,0 +1,105 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '12'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 06:45:17 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing instruction show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/instructions/404Instruction?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"code":"NotFound","message":"The resource or one of its dependencies
|
||||
could not be found."}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '91'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 06:45:17 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 404
|
||||
message: Not Found
|
||||
version: 1
|
|
@ -0,0 +1,108 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing permission list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --invoice-section-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/2A3E-KXSS-BG7-TGB/invoiceSections/CGFY-TOZ5-PJA-TGB/billingPermissions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[{"actions":["30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","30000000-aaaa-bbbb-cccc-200000000013","30000000-aaaa-bbbb-cccc-200000000011","30000000-aaaa-bbbb-cccc-200000000006","30000000-aaaa-bbbb-cccc-200000000003","30000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000012","30000000-aaaa-bbbb-cccc-200000000008","30000000-aaaa-bbbb-cccc-200000000016"]}]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '571'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 07:06:54 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing permission list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingPermissions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[{"actions":["10000000-aaaa-bbbb-cccc-200000000002","10000000-aaaa-bbbb-cccc-200000000001","10000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000004","50000000-aaaa-bbbb-cccc-200000000002","50000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000006","50000000-aaaa-bbbb-cccc-200000000001","50000000-aaaa-bbbb-cccc-200000000005","10000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '805'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Tue, 27 Oct 2020 07:06:55 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,357 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000000","name":"50000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management on the
|
||||
Organization.","permissions":[{"actions":["50000000-aaaa-bbbb-cccc-200000000000","50000000-aaaa-bbbb-cccc-200000000001","50000000-aaaa-bbbb-cccc-200000000002","50000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000004","50000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000001","10000000-aaaa-bbbb-cccc-200000000002","10000000-aaaa-bbbb-cccc-200000000003","10000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000007","50000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000000","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","40000000-aaaa-bbbb-cccc-200000000000","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Billing
|
||||
account owner"},"type":"Microsoft.Billing/billingAccounts/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000001","name":"50000000-aaaa-bbbb-cccc-100000000001","properties":{"description":"The
|
||||
Contributor role gives the user all permissions except access management on
|
||||
the organization.","permissions":[{"actions":["50000000-aaaa-bbbb-cccc-200000000001","50000000-aaaa-bbbb-cccc-200000000002","50000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000004","50000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000001","10000000-aaaa-bbbb-cccc-200000000002","10000000-aaaa-bbbb-cccc-200000000003","10000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000007","50000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Billing
|
||||
account contributor"},"type":"Microsoft.Billing/billingAccounts/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002","name":"50000000-aaaa-bbbb-cccc-100000000002","properties":{"description":"The
|
||||
Reader role gives the user read permissions to an organization.","permissions":[{"actions":["50000000-aaaa-bbbb-cccc-200000000001","50000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Billing
|
||||
account reader"},"type":"Microsoft.Billing/billingAccounts/billingRoleDefinitions"}]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '3645'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:46 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000000","name":"40000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management rights
|
||||
to the Billing Group.","permissions":[{"actions":["40000000-aaaa-bbbb-cccc-200000000000","40000000-aaaa-bbbb-cccc-200000000001","40000000-aaaa-bbbb-cccc-200000000002","40000000-aaaa-bbbb-cccc-200000000003","40000000-aaaa-bbbb-cccc-200000000004","40000000-aaaa-bbbb-cccc-200000000005","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008","40000000-aaaa-bbbb-cccc-200000000011"]}],"roleName":"Billing
|
||||
profile owner"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000001","name":"40000000-aaaa-bbbb-cccc-100000000001","properties":{"description":"The
|
||||
Contributor role gives the user all permissions except access management rights
|
||||
to the Billing Group.","permissions":[{"actions":["40000000-aaaa-bbbb-cccc-200000000001","40000000-aaaa-bbbb-cccc-200000000002","40000000-aaaa-bbbb-cccc-200000000003","40000000-aaaa-bbbb-cccc-200000000004","40000000-aaaa-bbbb-cccc-200000000005","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008","40000000-aaaa-bbbb-cccc-200000000011"]}],"roleName":"Billing
|
||||
profile contributor"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000002","name":"40000000-aaaa-bbbb-cccc-100000000002","properties":{"description":"The
|
||||
Reader role gives the user read only access to the Billing Group.","permissions":[{"actions":["40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Billing
|
||||
profile reader"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000004","name":"40000000-aaaa-bbbb-cccc-100000000004","properties":{"description":"The
|
||||
Invoice Manager role gives the user the ability to view and manage invoices.","permissions":[{"actions":["40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000011","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Invoice
|
||||
manager"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"}]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '3214'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:47 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition list
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --profile-name --invoice-section-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"value":[{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000000","name":"30000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management rights
|
||||
to the Project.","permissions":[{"actions":["30000000-aaaa-bbbb-cccc-200000000000","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000003","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000006","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000008","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000011","30000000-aaaa-bbbb-cccc-200000000012","30000000-aaaa-bbbb-cccc-200000000013","30000000-aaaa-bbbb-cccc-200000000015","30000000-aaaa-bbbb-cccc-200000000016"]}],"roleName":"Invoice
|
||||
section owner"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000001","name":"30000000-aaaa-bbbb-cccc-100000000001","properties":{"description":"The
|
||||
Contributor role gives the user all permissions except access management rights
|
||||
to the Project.","permissions":[{"actions":["30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000003","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000006","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000008","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000011","30000000-aaaa-bbbb-cccc-200000000012","30000000-aaaa-bbbb-cccc-200000000013","30000000-aaaa-bbbb-cccc-200000000015","30000000-aaaa-bbbb-cccc-200000000016"]}],"roleName":"Invoice
|
||||
section contributor"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000002","name":"30000000-aaaa-bbbb-cccc-100000000002","properties":{"description":"The
|
||||
reader role gives the user read only access to the Project.","permissions":[{"actions":["30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000015"]}],"roleName":"Invoice
|
||||
section reader"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"},{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000006","name":"30000000-aaaa-bbbb-cccc-100000000006","properties":{"description":"This
|
||||
Asset Depositor gives the user the ability to deposit assets to a Project.","permissions":[{"actions":["30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000013"]}],"roleName":"Azure
|
||||
subscription creator"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"}]}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '3753'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:47 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000000?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000000","name":"50000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management on the
|
||||
Organization.","permissions":[{"actions":["50000000-aaaa-bbbb-cccc-200000000000","50000000-aaaa-bbbb-cccc-200000000001","50000000-aaaa-bbbb-cccc-200000000002","50000000-aaaa-bbbb-cccc-200000000003","50000000-aaaa-bbbb-cccc-200000000004","50000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000001","10000000-aaaa-bbbb-cccc-200000000002","10000000-aaaa-bbbb-cccc-200000000003","10000000-aaaa-bbbb-cccc-200000000006","10000000-aaaa-bbbb-cccc-200000000007","50000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000000","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000015","40000000-aaaa-bbbb-cccc-200000000000","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008"]}],"roleName":"Billing
|
||||
account owner"},"type":"Microsoft.Billing/billingAccounts/billingRoleDefinitions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1398'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --name --profile-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000000?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/billingRoleDefinitions/40000000-aaaa-bbbb-cccc-100000000000","name":"40000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management rights
|
||||
to the Billing Group.","permissions":[{"actions":["40000000-aaaa-bbbb-cccc-200000000000","40000000-aaaa-bbbb-cccc-200000000001","40000000-aaaa-bbbb-cccc-200000000002","40000000-aaaa-bbbb-cccc-200000000003","40000000-aaaa-bbbb-cccc-200000000004","40000000-aaaa-bbbb-cccc-200000000005","40000000-aaaa-bbbb-cccc-200000000006","40000000-aaaa-bbbb-cccc-200000000007","40000000-aaaa-bbbb-cccc-200000000008","40000000-aaaa-bbbb-cccc-200000000011"]}],"roleName":"Billing
|
||||
profile owner"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '949'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip, deflate
|
||||
CommandName:
|
||||
- billing role-definition show
|
||||
Connection:
|
||||
- keep-alive
|
||||
ParameterSetName:
|
||||
- --account-name --name --profile-name --invoice-section-name
|
||||
User-Agent:
|
||||
- python/3.7.4 (Linux-4.15.0-112-generic-x86_64-with-debian-buster-sid) msrest/0.6.18
|
||||
msrest_azure/0.6.3 azure-mgmt-billing/1.0.0 Azure-SDK-For-Python AZURECLI/2.14.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4%3A7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000000?api-version=2020-05-01
|
||||
response:
|
||||
body:
|
||||
string: '{"id":"/providers/Microsoft.Billing/billingAccounts/db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31/billingProfiles/ZY2R-LX3G-BG7-TGB/invoiceSections/S5C-GD7Y-PJA-TGB/billingRoleDefinitions/30000000-aaaa-bbbb-cccc-100000000000","name":"30000000-aaaa-bbbb-cccc-100000000000","properties":{"description":"The
|
||||
Owner role gives the user all permissions including access management rights
|
||||
to the Project.","permissions":[{"actions":["30000000-aaaa-bbbb-cccc-200000000000","30000000-aaaa-bbbb-cccc-200000000001","30000000-aaaa-bbbb-cccc-200000000003","30000000-aaaa-bbbb-cccc-200000000004","30000000-aaaa-bbbb-cccc-200000000005","30000000-aaaa-bbbb-cccc-200000000006","30000000-aaaa-bbbb-cccc-200000000007","30000000-aaaa-bbbb-cccc-200000000008","30000000-aaaa-bbbb-cccc-200000000009","30000000-aaaa-bbbb-cccc-200000000010","30000000-aaaa-bbbb-cccc-200000000011","30000000-aaaa-bbbb-cccc-200000000012","30000000-aaaa-bbbb-cccc-200000000013","30000000-aaaa-bbbb-cccc-200000000015","30000000-aaaa-bbbb-cccc-200000000016"]}],"roleName":"Invoice
|
||||
section owner"},"type":"Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"}'
|
||||
headers:
|
||||
api-supported-versions:
|
||||
- 2019-10-01-preview, 2020-05-01
|
||||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1187'
|
||||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 28 Oct 2020 03:54:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
- no-cache
|
||||
strict-transport-security:
|
||||
- max-age=31536000; includeSubDomains
|
||||
transfer-encoding:
|
||||
- chunked
|
||||
vary:
|
||||
- Accept-Encoding,Accept-Encoding
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-frame-options:
|
||||
- DENY
|
||||
x-ms-service-version:
|
||||
- 10.6.1392.26
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
|
@ -84,6 +84,23 @@ def step__billingaccounts_patch_updatebillingaccount(test):
|
|||
])
|
||||
|
||||
|
||||
# EXAMPLE: /Agreements/get/AgreementByName
|
||||
@try_manual
|
||||
def step__agreements_get_agreementbyname(test):
|
||||
test.cmd('az billing agreement show '
|
||||
'--name "{myAgreement}" '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Agreements/get/AgreementsListByBillingAccount
|
||||
@try_manual
|
||||
def step__agreements_get(test):
|
||||
test.cmd('az billing agreement list '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingProfiles/put/CreateBillingProfile
|
||||
@try_manual
|
||||
def step__billingprofiles_put_createbillingprofile(test):
|
||||
|
@ -155,10 +172,59 @@ def step__availablebalances_get(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingProperty/get/BillingProperty
|
||||
# EXAMPLE: /BillingRoleAssignments/get/InvoiceSectionRoleAssignmentList
|
||||
@try_manual
|
||||
def step__billingproperty_get_billingproperty(test):
|
||||
test.cmd('az billing property show',
|
||||
def step__billingroleassignments_get(test):
|
||||
test.cmd('az billing role-assignment list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--invoice-section-name "{myInvoiceSection}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingPermissions/get/InvoiceSectionPermissionsList
|
||||
@try_manual
|
||||
def step__billingpermissions_get(test):
|
||||
test.cmd('az billing permission list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--invoice-section-name "{myInvoiceSection}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleAssignments/get/BillingAccountRoleAssignmentList
|
||||
@try_manual
|
||||
def step__billingroleassignments_get2(test):
|
||||
test.cmd('az billing role-assignment list '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleAssignments/get/BillingProfileRoleAssignmentList
|
||||
@try_manual
|
||||
def step__billingroleassignments_get3(test):
|
||||
test.cmd('az billing role-assignment list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleAssignments/delete/BillingAccountRoleAssignmentDelete
|
||||
@try_manual
|
||||
def step__billingroleassignments_delete(test):
|
||||
test.cmd('az billing role-assignment delete -y '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name "{myBillingRoleAssignment}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleAssignments/delete/BillingProfileRoleAssignmentDelete
|
||||
@try_manual
|
||||
def step__billingroleassignments_delete2(test):
|
||||
test.cmd('az billing role-assignment delete -y '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--name "{myBillingRoleAssignment}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
|
@ -170,12 +236,22 @@ def step__billingproperty_patch_updatebillingproperty(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Customers/get/Customer
|
||||
# EXAMPLE: /BillingRoleAssignments/delete/InvoiceSectionRoleAssignmentDelete
|
||||
@try_manual
|
||||
def step__customers_get_customer(test):
|
||||
test.cmd('az billing customer show '
|
||||
def step__billingroleassignments_delete3(test):
|
||||
test.cmd('az billing role-assignment delete -y '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name "{myCustomer}"',
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--name "{myBillingRoleAssignment}" '
|
||||
'--invoice-section-name "{myInvoiceSection}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleDefinitions/get/BillingAccountRoleDefinitionsList
|
||||
@try_manual
|
||||
def step__billingroledefinitions_get(test):
|
||||
test.cmd('az billing role-definition list '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
|
@ -206,15 +282,34 @@ def step__customers_get_customerwithexpand(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscriptionsListByCustomer
|
||||
# EXAMPLE: /BillingPermissions/get/BillingProfilePermissionsList
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get(test):
|
||||
test.cmd('az billing subscription list '
|
||||
def step__billingpermissions_get2(test):
|
||||
test.cmd('az billing permission list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--customer-name "{myCustomer}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleDefinitions/get/BillingProfileRoleDefinitionsList
|
||||
@try_manual
|
||||
def step__billingroledefinitions_get2(test):
|
||||
test.cmd('az billing role-definition list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingRoleDefinitions/get/InvoiceSectionRoleDefinitionsList
|
||||
@try_manual
|
||||
def step__billingroledefinitions_get3(test):
|
||||
test.cmd('az billing role-definition list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--invoice-section-name "{myInvoiceSection}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscription
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get_billingsubscription(test):
|
||||
|
@ -223,9 +318,18 @@ def step__billingsubscriptions_get_billingsubscription(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Customers/get/Customer
|
||||
@try_manual
|
||||
def step__customers_get_customer(test):
|
||||
test.cmd('az billing customer show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name "{myCustomer}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscriptionsListByBillingAccount
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get2(test):
|
||||
def step__billingsubscriptions_get(test):
|
||||
test.cmd('az billing subscription list '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
@ -233,13 +337,22 @@ def step__billingsubscriptions_get2(test):
|
|||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscriptionsListByBillingProfile
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get3(test):
|
||||
def step__billingsubscriptions_get2(test):
|
||||
test.cmd('az billing subscription list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscriptionsListByCustomer
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get3(test):
|
||||
test.cmd('az billing subscription list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--customer-name "{myCustomer}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/get/BillingSubscriptionsListByInvoiceSection
|
||||
@try_manual
|
||||
def step__billingsubscriptions_get4(test):
|
||||
|
@ -250,6 +363,13 @@ def step__billingsubscriptions_get4(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingProperty/get/BillingProperty
|
||||
@try_manual
|
||||
def step__billingproperty_get_billingproperty(test):
|
||||
test.cmd('az billing property show',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/patch/UpdateBillingProperty
|
||||
@try_manual
|
||||
def step__billingsubscriptions_patch(test):
|
||||
|
@ -259,13 +379,43 @@ def step__billingsubscriptions_patch(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Invoices/get/BillingAccountInvoicesList
|
||||
# EXAMPLE: /BillingSubscriptions/post/MoveBillingSubscription
|
||||
@try_manual
|
||||
def step__invoices_get_billingaccountinvoiceslist(test):
|
||||
test.cmd('az billing invoice list '
|
||||
def step__billingsubscriptions_post2(test):
|
||||
test.cmd('az billing subscription move '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--period-end-date "2018-06-30" '
|
||||
'--period-start-date "2018-01-01"',
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/post/SubscriptionMoveValidateFailure
|
||||
@try_manual
|
||||
def step__billingsubscriptions_post(test):
|
||||
test.cmd('az billing subscription validate-move '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/post/SubscriptionMoveValidateSuccess
|
||||
@try_manual
|
||||
def step__billingsubscriptions_post3(test):
|
||||
test.cmd('az billing subscription validate-move '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Instructions/get/Instruction
|
||||
@try_manual
|
||||
def step__instructions_get_instruction(test):
|
||||
test.cmd('az billing instruction show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--name "{myInstruction}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
|
@ -288,13 +438,21 @@ def step__invoices_get2(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/post/SubscriptionMoveValidateFailure
|
||||
# EXAMPLE: /Invoices/get/CreditNote
|
||||
@try_manual
|
||||
def step__billingsubscriptions_post(test):
|
||||
test.cmd('az billing subscription validate-move '
|
||||
def step__invoices_get_creditnote(test):
|
||||
test.cmd('az billing invoice show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
'--name "{myInvoice}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingPermissions/get/BillingProfilePermissionsList
|
||||
@try_manual
|
||||
def step__billingpermissions_get2(test):
|
||||
test.cmd('az billing permission list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--customer-name "{myCustomer}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
|
@ -318,15 +476,33 @@ def step__invoices_get_invoiceslistbybillingprofile(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Invoices/get/CreditNote
|
||||
# EXAMPLE: /Instructions/get/InstructionsListByBillingProfile
|
||||
@try_manual
|
||||
def step__invoices_get_creditnote(test):
|
||||
test.cmd('az billing invoice show '
|
||||
def step__instructions_get(test):
|
||||
test.cmd('az billing instruction list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name "{myInvoice}"',
|
||||
'--profile-name "{myBillingProfile}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Instructions/put/PutInstruction
|
||||
@try_manual
|
||||
def step__instructions_put_putinstruction(test):
|
||||
test.cmd('az billing instruction create '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--name "{myInstruction}" '
|
||||
'--amount 5000 '
|
||||
'--end-date "2020-12-30T21:26:47.997Z" '
|
||||
'--start-date "2019-12-30T21:26:47.997Z"',
|
||||
checks=[
|
||||
test.check("name", "{myInstruction}", case_sensitive=False),
|
||||
test.check("amount", 5000),
|
||||
test.check("endDate", "2020-12-30T21:26:47.997Z", case_sensitive=False),
|
||||
test.check("startDate", "2019-12-30T21:26:47.997Z", case_sensitive=False),
|
||||
])
|
||||
|
||||
|
||||
# EXAMPLE: /Invoices/get/InvoicesListByBillingProfileWithRebillDetails
|
||||
@try_manual
|
||||
def step__invoices_get3(test):
|
||||
|
@ -338,6 +514,16 @@ def step__invoices_get3(test):
|
|||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Invoices/get/BillingAccountInvoicesList
|
||||
@try_manual
|
||||
def step__invoices_get_billingaccountinvoiceslist(test):
|
||||
test.cmd('az billing invoice list '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--period-end-date "2018-06-30" '
|
||||
'--period-start-date "2018-01-01"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /Invoices/get/InvoiceWithRebillDetails
|
||||
@try_manual
|
||||
def step__invoices_get_invoicewithrebilldetails(test):
|
||||
|
@ -399,23 +585,11 @@ def step__invoicesections_get(test):
|
|||
])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/post/MoveBillingSubscription
|
||||
# EXAMPLE: /BillingPermissions/get/BillingAccountPermissionsList
|
||||
@try_manual
|
||||
def step__billingsubscriptions_post2(test):
|
||||
test.cmd('az billing subscription move '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
# EXAMPLE: /BillingSubscriptions/post/SubscriptionMoveValidateSuccess
|
||||
@try_manual
|
||||
def step__billingsubscriptions_post3(test):
|
||||
test.cmd('az billing subscription validate-move '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billi'
|
||||
'ngProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"',
|
||||
def step__billingpermissions_get3(test):
|
||||
test.cmd('az billing permission list '
|
||||
'--account-name "{myBillingAccount}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
|
@ -562,41 +736,51 @@ def step__transactions_get_transactionslistbyinvoice(test):
|
|||
# step__billingaccounts_get2(test)
|
||||
# step__billingaccounts_get_billingaccountwithexpand(test)
|
||||
# step__billingaccounts_patch_updatebillingaccount(test)
|
||||
# step__agreements_get_agreementbyname(test)
|
||||
# step__agreements_get(test)
|
||||
# step__billingprofiles_put_createbillingprofile(test)
|
||||
# step__billingprofiles_get_billingprofile(test)
|
||||
# step__billingprofiles_get(test)
|
||||
# step__billingprofiles_get2(test)
|
||||
# step__billingprofiles_get_billingprofilewithexpand(test)
|
||||
# step__availablebalances_get(test)
|
||||
# step__billingproperty_get_billingproperty(test)
|
||||
# step__billingroleassignments_get(test)
|
||||
# step__billingpermissions_get(test)
|
||||
# step__billingroleassignments_get2(test)
|
||||
# step__billingroleassignments_get3(test)
|
||||
# step__billingroleassignments_delete(test)
|
||||
# step__billingroleassignments_delete2(test)
|
||||
# step__billingproperty_patch_updatebillingproperty(test)
|
||||
# step__customers_get_customer(test)
|
||||
# step__customers_get_customerslistbybillingaccount(test)
|
||||
# step__customers_get_customerslistbybillingaccount(test)
|
||||
# step__customers_get_customerslistbybillingprofile(test)
|
||||
# step__customers_get_customerwithexpand(test)
|
||||
# step__billingsubscriptions_get(test)
|
||||
# step__billingsubscriptions_get_billingsubscription(test)
|
||||
# step__billingpermissions_get2(test)
|
||||
# step__billingpermissions_get2(test)
|
||||
# step__customers_get_customer(test)
|
||||
# step__billingproperty_get_billingproperty(test)
|
||||
# step__billingsubscriptions_get(test)
|
||||
# step__billingsubscriptions_get2(test)
|
||||
# step__billingsubscriptions_get3(test, checs=[
|
||||
# self.check()
|
||||
# ])
|
||||
# step__billingsubscriptions_get3(test)
|
||||
# step__billingsubscriptions_get4(test)
|
||||
# step__billingsubscriptions_patch(test)
|
||||
# step__invoices_get_billingaccountinvoiceslist(test)
|
||||
# step__invoices_get(test)
|
||||
# step__invoices_get2(test)
|
||||
# step__billingsubscriptions_post(test)
|
||||
# step__invoices_get_invoice(test)
|
||||
# step__invoices_get_invoiceslistbybillingprofile(test)
|
||||
# step__billingsubscriptions_post2(test)
|
||||
# step__billingpermissions_get3(test)
|
||||
# step__invoices_get(test)
|
||||
# step__invoices_get_billingaccountinvoiceslist(test)
|
||||
# step__billingsubscriptions_post3(test)
|
||||
# step__invoices_get_creditnote(test)
|
||||
# step__invoices_get_invoice(test)
|
||||
# step__invoices_get2(test)
|
||||
# step__invoices_get_invoiceslistbybillingprofile(test)
|
||||
# step__invoices_get3(test)
|
||||
# step__invoices_get_invoicewithrebilldetails(test)
|
||||
# step__invoices_get_voidinvoice(test)
|
||||
# step__invoicesections_put_putinvoicesection(test)
|
||||
# step__invoicesections_get_invoicesection(test)
|
||||
# step__invoicesections_get(test)
|
||||
# step__billingsubscriptions_post2(test)
|
||||
# step__billingsubscriptions_post3(test)
|
||||
# step__billingroleassignments_delete3(test)
|
||||
# step__policies_put_updatepolicy(test)
|
||||
# step__products_get_product(test)
|
||||
# step__products_get_productslistbybillingaccount(test)
|
||||
|
@ -623,52 +807,13 @@ def step__transactions_get_transactionslistbyinvoice(test):
|
|||
# 'myInvoiceSection': '{invoiceSectionName}',
|
||||
# 'myProduct': '{productName}',
|
||||
# 'myInvoice': '{invoiceName}',
|
||||
# 'myBillingRoleAssignment': '{billingRoleAssignmentName}',
|
||||
# 'myAgreement': '{agreementName}',
|
||||
# })
|
||||
|
||||
# call_scenario(self)
|
||||
# calc_coverage(__file__)
|
||||
# raise_if()
|
||||
# Testcase2
|
||||
# @try_manual
|
||||
# def call_scenario2 (test):
|
||||
# setup(test)
|
||||
# step__billingprofiles_put_createbillingprofile(test)
|
||||
# step__billingprofiles_get_billingprofile(test)
|
||||
# step__billingprofiles_get(test)
|
||||
# step__billingprofiles_get2(test)
|
||||
# step__billingprofiles_get_billingprofilewithexpand(test)
|
||||
# step__customers_get_customer(test)
|
||||
|
||||
# @try_manual
|
||||
# class BillingScenarioTest(ScenarioTest):
|
||||
|
||||
# def test_billing(self):
|
||||
|
||||
# self.kwargs.update({
|
||||
# 'myBillingProfile': '{billingProfileName}',
|
||||
# 'myCustomer': '{customerName}',
|
||||
# 'myInvoiceSection': '{invoiceSectionName}',
|
||||
# 'myProduct': '{productName}',
|
||||
# 'myInvoice': '{invoiceName}',
|
||||
# })
|
||||
|
||||
# call_scenario(self)
|
||||
# calc_coverage(__file__)
|
||||
# raise_if()
|
||||
|
||||
# def test_billing2(self):
|
||||
|
||||
# self.kwargs.update({
|
||||
# 'myBillingProfile': '{billingProfileName}',
|
||||
# 'myCustomer': '{customerName}',
|
||||
# 'myInvoiceSection': '{invoiceSectionName}',
|
||||
# 'myProduct': '{productName}',
|
||||
# 'myInvoice': '{invoiceName}',
|
||||
# })
|
||||
|
||||
# call_scenario2(self)
|
||||
# calc_coverage(__file__)
|
||||
# raise_if()
|
||||
|
||||
|
||||
@record_only()
|
||||
|
@ -858,3 +1003,141 @@ class BillingInvoiceSectionScenarioTest(ScenarioTest):
|
|||
# "myInvoice": ""
|
||||
# })
|
||||
# step__transactions_get_transactionslistbyinvoice(self)
|
||||
|
||||
|
||||
@record_only()
|
||||
class BillingAgreementScenarioTest(ScenarioTest):
|
||||
def test_agreement_list_and_show(self):
|
||||
self.kwargs.update({
|
||||
"myBillingAccount": "db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31",
|
||||
"myAgreement": "NotFountResource"
|
||||
})
|
||||
|
||||
step__agreements_get(self)
|
||||
step__agreements_get_agreementbyname(self)
|
||||
|
||||
|
||||
@record_only()
|
||||
class BillingPermissionScenarioTest(ScenarioTest):
|
||||
|
||||
def test_permission_list(self):
|
||||
self.kwargs.update({
|
||||
"myBillingAccount": "db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31",
|
||||
"myBillingProfile": "2A3E-KXSS-BG7-TGB",
|
||||
"myInvoiceSection": "CGFY-TOZ5-PJA-TGB"
|
||||
})
|
||||
|
||||
# list by invoice name
|
||||
step__billingpermissions_get(self)
|
||||
|
||||
# list by customer name
|
||||
# step__billingpermissions_get2(self) # no customer to list and it will raise exception
|
||||
|
||||
# # list by billing account
|
||||
step__billingpermissions_get3(self)
|
||||
|
||||
|
||||
@record_only()
|
||||
class BillingRoleAssignmentScenarioTest(ScenarioTest):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
||||
self.kwargs.update({
|
||||
"myBillingAccount": "db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31",
|
||||
"myBillingProfile": "ZY2R-LX3G-BG7-TGB",
|
||||
"myInvoiceSection": "ES5C-GD7Y-PJA-TGB"
|
||||
})
|
||||
|
||||
def test_role_assignment_list_and_show(self):
|
||||
# list by billing account
|
||||
step__billingroleassignments_get2(self)
|
||||
|
||||
# list by billing profile
|
||||
step__billingroleassignments_get3(self)
|
||||
|
||||
# list by invoice name
|
||||
step__billingroleassignments_get(self)
|
||||
|
||||
|
||||
@record_only()
|
||||
class BillingRoleDefinitionScenarionTest(ScenarioTest):
|
||||
def test_role_definition_list_and_show(self):
|
||||
self.kwargs.update({
|
||||
"myBillingAccount": "db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31",
|
||||
"myBillingProfile": "ZY2R-LX3G-BG7-TGB",
|
||||
"myInvoiceSection": "S5C-GD7Y-PJA-TGB",
|
||||
})
|
||||
|
||||
# list by billing account
|
||||
step__billingroledefinitions_get(self)
|
||||
# list by billing profile
|
||||
step__billingroledefinitions_get2(self)
|
||||
# list by billing invoice section
|
||||
step__billingroledefinitions_get3(self)
|
||||
|
||||
self.kwargs.update({
|
||||
"roleDefinitionName": "50000000-aaaa-bbbb-cccc-100000000000"
|
||||
})
|
||||
|
||||
# show by billing profile
|
||||
self.cmd('az billing role-definition show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name {roleDefinitionName} ',
|
||||
checks=[])
|
||||
|
||||
self.kwargs.update({
|
||||
"roleDefinitionName": "40000000-aaaa-bbbb-cccc-100000000000"
|
||||
})
|
||||
|
||||
# show by billing profile
|
||||
self.cmd('az billing role-definition show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name {roleDefinitionName} '
|
||||
'--profile-name "{myBillingProfile}" ',
|
||||
checks=[])
|
||||
|
||||
self.kwargs.update({
|
||||
"roleDefinitionName": "30000000-aaaa-bbbb-cccc-100000000000"
|
||||
})
|
||||
|
||||
# show by invoice section and role definition name
|
||||
self.cmd('az billing role-definition show '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--name {roleDefinitionName} '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--invoice-section-name "{myInvoiceSection}"',
|
||||
checks=[])
|
||||
|
||||
|
||||
@record_only()
|
||||
class BillingInstructionScenarioTest(ScenarioTest):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
||||
self.kwargs.update({
|
||||
"myBillingAccount": "db038d21-b0d2-463c-942f-b09127c6f4e4:7c9c4a38-593e-479e-8958-9a338a0d8d02_2019-05-31",
|
||||
"myBillingProfile": "ZY2R-LX3G-BG7-TGB",
|
||||
"myInstruction": "404Instruction",
|
||||
})
|
||||
|
||||
def test_instruction_list_and_show(self):
|
||||
step__instructions_get(self)
|
||||
|
||||
step__instructions_get_instruction(self)
|
||||
|
||||
def test_instruction_create_and_update(self):
|
||||
|
||||
self.kwargs.update({
|
||||
"myInstruction": "inst-1",
|
||||
})
|
||||
|
||||
step__instructions_put_putinstruction(self)
|
||||
|
||||
self.cmd('az billing instruction update '
|
||||
'--account-name "{myBillingAccount}" '
|
||||
'--profile-name "{myBillingProfile}" '
|
||||
'--name "{myInstruction}" '
|
||||
'--amount 12')
|
||||
|
||||
step__instructions_get_instruction(self)
|
||||
|
|
Загрузка…
Ссылка в новой задаче