Skip to content

Toaster-ToasterDB beta-testers wanted! #10

Closed as not planned
Closed as not planned

Description

@alt-dima

Please go to https://iacconsole.com/ , 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:generatedpassword@api.iacconsole.com

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!

Activity

  1. self-assigned this
    on Apr 29, 2024
  2. alt-dima commented on May 2, 2024

    @alt-dima
    CollaboratorAuthor

    Full end-to-end demo with Jenkins released! #23
    Take a look and try it! https://github.com/alt-dima/iacconsole-cli/blob/main/examples/jenkins/README.md

    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://api.iacconsole.com/v1/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]
    
  3. alt-dima commented on May 3, 2024

    @alt-dima
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions