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

Toaster-ToasterDB beta-testers wanted! #10

Open
alt-dima opened this issue Apr 29, 2024 · 2 comments
Open

Toaster-ToasterDB beta-testers wanted! #10

alt-dima opened this issue Apr 29, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@alt-dima
Copy link
Owner

alt-dima commented Apr 29, 2024

Please go to https://toaster.altuhov.su/ , fill form with Account Name, Email and press Create User
You will receive a message with generated credentials and ready-to-use export command like

Please execute in shell to set toasterurl:
export toasterurl=https://6634b72292e9e996105de19e:[email protected]

Swagger API docs (full API documentation and examples): https://app.swaggerhub.com/apis-docs/altuhovsu/tofugu_toaster_api/

To upload/update dimensions in Toaster from your Inventory Files repo you could use inventory-to-toaster.sh script example and execute it like bash examples/inventory-to-toaster.sh examples/inventory/

It could be used in tofugu and directly from any other your application, for example: Jenkins, CircleCI

Feel free to post your feedback in the comments! Thank you!

@alt-dima alt-dima added the help wanted Extra attention is needed label Apr 29, 2024
@alt-dima alt-dima self-assigned this Apr 29, 2024
@alt-dima
Copy link
Owner Author

alt-dima commented May 2, 2024

Example usage in Jenkins groovy:

import groovy.json.JsonSlurper

def toasterDimValuesRequest(String dimkey){
    def accessToken = "662cab7c5e116819738b01fe:wrongpass".bytes.encodeBase64().toString()
    def req = new URL("https://toaster.altuhov.su/api/dimension/demo-org/${dimkey}").openConnection();
    req.setRequestProperty("Authorization", "Basic " + accessToken)
    def content = req.getInputStream().getText()
    json = new JsonSlurper().parseText(content)
    return json.Dimensions.DimValue
}

 println(toasterDimValuesRequest("datacenter"))
 println(toasterDimValuesRequest("account"))

Result:

[staging1, staging2]
[test-account]

@alt-dima alt-dima added the question Further information is requested label May 3, 2024
@alt-dima
Copy link
Owner Author

alt-dima commented May 3, 2024

Swagger API docs (full API documentation and examples): https://app.swaggerhub.com/apis-docs/altuhovsu/tofugu_toaster_api/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant