Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ready to MERGE] Swagger for Tenant Properties API #5038

Merged
merged 13 commits into from
Feb 22, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,47 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices": {
"/providers/Microsoft.Billing/billingProfiles/{billingProfileId}/discoverTenants": {
"get": {
"tags": [
"discoverTenants"
],
"x-ms-examples": {
"TenantPropertiesGet": {
"$ref": "./examples/DiscoverTenantsGet.json"
}
},
"operationId": "DiscoverTenants_Get",
"description": "Gets a Tenant Properties.",
"parameters": [
{
"name": "billingProfileId",
"in": "path",
"description": "Billing Profile Id.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/DiscoverTenant"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/invoices": {
"get": {
"tags": [
"Invoices"
Expand Down Expand Up @@ -403,7 +443,7 @@
}
}
},
"EnrollmentAccountListResult": {
"EnrollmentAccountListResult": {
"description": "Result of listing enrollment accounts.",
"properties": {
"value": {
Expand Down Expand Up @@ -431,6 +471,26 @@
}
}
},
"DiscoverTenant": {
"description": "A Tenant properties Resource",
"properties": {
"billingProfileName": {
"description": "The Billing Profile name.",
"type": "string",
"readOnly": true
},
"billingAccountId": {
"description": "The Billing AccountId.",
"type": "string",
"readOnly": true
},
"tenantId": {
"description": "The TenantId.",
"type": "string",
"readOnly": true
}
}
},
"BillingPeriod": {
"description": "A billing period resource.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2018-03-01-preview",
"billingProfileId": "f47d2fec-3db5-4758-8717-4ff7b1641c13"
},
"responses": {
"200": {
"body": {
"billingProfileName": "PayByCheck01",
"billingAccountId": "9984934b-0494-53de-0fcd-83828e47dbc6",
"tenantId": "251d3d06-c6e0-487b-bd5e-5c2e4c23d51a"
}
}
}
}