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

Add organization id to the provider. #110

Merged
merged 4 commits into from
Dec 3, 2020
Merged

Commits on Oct 28, 2020

  1. Add organization id to the provider.

    Use the change in grafana/grafana-api-golang-client#9 to
    apply an organization id to the provider.
    
    Usage might look like this:
    
    ```hcl
    provider "grafana" {
      url = "someurl"
      auth = "adminuser:somepass"
    }
    
    resource "grafana_organization" "neworg" {
      name = "neworg"
      admin = "neworgadmin"
    }
    
    provider "grafana" {
      alias = "neworg"
      url = "someurl"
      auth = "neworgadmin:somepass"
      org_id = grafana_organization.neworg.org_id
    }
    
    resource "grafana_data_source" "neworg_graphite" {
      provider = grafana.neworg
      type = "graphite"
      name = "neworg-graphite"
    }
    ```
    
    Co-authored-by: hansnqyr <[email protected]>
    medains and hansnqyr committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    9e52d7a View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2020

  1. Apply gofmt

    medains committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    271aaf6 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. Configuration menu
    Copy the full SHA
    e9cf446 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2020

  1. Configuration menu
    Copy the full SHA
    0e1240a View commit details
    Browse the repository at this point in the history