Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse
grafana.cloud.getProviderAzureCredential
Explore with Pulumi AI
Deprecated: grafana.cloud/getproviderazurecredential.getProviderAzureCredential has been deprecated in favor of grafana.cloudprovider/getazurecredential.getAzureCredential
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloudProvider.AzureCredential;
import com.pulumi.grafana.cloudProvider.AzureCredentialArgs;
import com.pulumi.grafana.cloudProvider.inputs.AzureCredentialResourceDiscoveryTagFilterArgs;
import com.pulumi.grafana.cloudProvider.inputs.AzureCredentialAutoDiscoveryConfigurationArgs;
import com.pulumi.grafana.cloudProvider.CloudProviderFunctions;
import com.pulumi.grafana.cloudProvider.inputs.GetAzureCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testAzureCredential = new AzureCredential("testAzureCredential", AzureCredentialArgs.builder()
.stackId("1")
.name("test-name")
.clientId("my-client-id")
.clientSecret("my-client-secret")
.tenantId("my-tenant-id")
.resourceTagsToAddToMetrics(
"tag1",
"tag2")
.resourceDiscoveryTagFilters(
AzureCredentialResourceDiscoveryTagFilterArgs.builder()
.key("key-1")
.value("value-1")
.build(),
AzureCredentialResourceDiscoveryTagFilterArgs.builder()
.key("key-2")
.value("value-2")
.build())
.autoDiscoveryConfigurations(AzureCredentialAutoDiscoveryConfigurationArgs.builder()
.subscriptionId("my-subscription_id")
.resourceTypeConfigurations(
AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs.builder()
.resourceTypeName("Microsoft.App/containerApps")
.metricConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build(),
AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs.builder()
.resourceTypeName("Microsoft.Storage/storageAccounts/tableServices")
.metricConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.build())
.build());
final var test = CloudProviderFunctions.getAzureCredential(GetAzureCredentialArgs.builder()
.stackId(testAzureCredential.stackId())
.resourceId(testAzureCredential.resourceId())
.build());
}
}
resources:
testAzureCredential:
type: grafana:cloudProvider:AzureCredential
name: test
properties:
stackId: '1'
name: test-name
clientId: my-client-id
clientSecret: my-client-secret
tenantId: my-tenant-id
resourceTagsToAddToMetrics:
- tag1
- tag2
resourceDiscoveryTagFilters:
- key: key-1
value: value-1
- key: key-2
value: value-2
autoDiscoveryConfigurations:
- subscriptionId: my-subscription_id
resourceTypeConfigurations:
- resourceTypeName: Microsoft.App/containerApps
metricConfiguration:
- name: TotalCoresQuotaUsed
- resourceTypeName: Microsoft.Storage/storageAccounts/tableServices
metricConfiguration:
- name: Availability
dimensions:
- GeoType
- ApiName
aggregations:
- Average
variables:
test:
fn::invoke:
function: grafana:cloudProvider:getAzureCredential
arguments:
stackId: ${testAzureCredential.stackId}
resourceId: ${testAzureCredential.resourceId}
Using getProviderAzureCredential
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProviderAzureCredential(args: GetProviderAzureCredentialArgs, opts?: InvokeOptions): Promise<GetProviderAzureCredentialResult>
function getProviderAzureCredentialOutput(args: GetProviderAzureCredentialOutputArgs, opts?: InvokeOptions): Output<GetProviderAzureCredentialResult>
def get_provider_azure_credential(auto_discovery_configurations: Optional[Sequence[GetProviderAzureCredentialAutoDiscoveryConfiguration]] = None,
resource_discovery_tag_filters: Optional[Sequence[GetProviderAzureCredentialResourceDiscoveryTagFilter]] = None,
resource_id: Optional[str] = None,
stack_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProviderAzureCredentialResult
def get_provider_azure_credential_output(auto_discovery_configurations: Optional[pulumi.Input[Sequence[pulumi.Input[GetProviderAzureCredentialAutoDiscoveryConfigurationArgs]]]] = None,
resource_discovery_tag_filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetProviderAzureCredentialResourceDiscoveryTagFilterArgs]]]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
stack_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProviderAzureCredentialResult]
func LookupProviderAzureCredential(ctx *Context, args *LookupProviderAzureCredentialArgs, opts ...InvokeOption) (*LookupProviderAzureCredentialResult, error)
func LookupProviderAzureCredentialOutput(ctx *Context, args *LookupProviderAzureCredentialOutputArgs, opts ...InvokeOption) LookupProviderAzureCredentialResultOutput
> Note: This function is named LookupProviderAzureCredential
in the Go SDK.
public static class GetProviderAzureCredential
{
public static Task<GetProviderAzureCredentialResult> InvokeAsync(GetProviderAzureCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetProviderAzureCredentialResult> Invoke(GetProviderAzureCredentialInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProviderAzureCredentialResult> getProviderAzureCredential(GetProviderAzureCredentialArgs args, InvokeOptions options)
public static Output<GetProviderAzureCredentialResult> getProviderAzureCredential(GetProviderAzureCredentialArgs args, InvokeOptions options)
fn::invoke:
function: grafana:cloud/getProviderAzureCredential:getProviderAzureCredential
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- Stack
Id string - Auto
Discovery List<Pulumiverse.Configurations Grafana. Cloud. Inputs. Get Provider Azure Credential Auto Discovery Configuration> - The list of auto discovery configurations.
- Resource
Discovery List<Pulumiverse.Tag Filters Grafana. Cloud. Inputs. Get Provider Azure Credential Resource Discovery Tag Filter> - The list of tag filters to apply to resources.
- Resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- Stack
Id string - Auto
Discovery []GetConfigurations Provider Azure Credential Auto Discovery Configuration - The list of auto discovery configurations.
- Resource
Discovery []GetTag Filters Provider Azure Credential Resource Discovery Tag Filter - The list of tag filters to apply to resources.
- resource
Id String - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- stack
Id String - auto
Discovery List<GetConfigurations Provider Azure Credential Auto Discovery Configuration> - The list of auto discovery configurations.
- resource
Discovery List<GetTag Filters Provider Azure Credential Resource Discovery Tag Filter> - The list of tag filters to apply to resources.
- resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- stack
Id string - auto
Discovery GetConfigurations Provider Azure Credential Auto Discovery Configuration[] - The list of auto discovery configurations.
- resource
Discovery GetTag Filters Provider Azure Credential Resource Discovery Tag Filter[] - The list of tag filters to apply to resources.
- resource_
id str - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- stack_
id str - auto_
discovery_ Sequence[Getconfigurations Provider Azure Credential Auto Discovery Configuration] - The list of auto discovery configurations.
- resource_
discovery_ Sequence[Gettag_ filters Provider Azure Credential Resource Discovery Tag Filter] - The list of tag filters to apply to resources.
- resource
Id String - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- stack
Id String - auto
Discovery List<Property Map>Configurations - The list of auto discovery configurations.
- resource
Discovery List<Property Map>Tag Filters - The list of tag filters to apply to resources.
getProviderAzureCredential Result
The following output properties are available:
- Client
Id string - The client ID of the Azure Credential.
- Client
Secret string - The client secret of the Azure Credential.
- Id string
- Name string
- The name of the Azure Credential.
- Resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- List<string>
- The list of resource tags to add to metrics.
- Stack
Id string - Tenant
Id string - The tenant ID of the Azure Credential.
- Auto
Discovery List<Pulumiverse.Configurations Grafana. Cloud. Outputs. Get Provider Azure Credential Auto Discovery Configuration> - The list of auto discovery configurations.
- Resource
Discovery List<Pulumiverse.Tag Filters Grafana. Cloud. Outputs. Get Provider Azure Credential Resource Discovery Tag Filter> - The list of tag filters to apply to resources.
- Client
Id string - The client ID of the Azure Credential.
- Client
Secret string - The client secret of the Azure Credential.
- Id string
- Name string
- The name of the Azure Credential.
- Resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- []string
- The list of resource tags to add to metrics.
- Stack
Id string - Tenant
Id string - The tenant ID of the Azure Credential.
- Auto
Discovery []GetConfigurations Provider Azure Credential Auto Discovery Configuration - The list of auto discovery configurations.
- Resource
Discovery []GetTag Filters Provider Azure Credential Resource Discovery Tag Filter - The list of tag filters to apply to resources.
- client
Id String - The client ID of the Azure Credential.
- client
Secret String - The client secret of the Azure Credential.
- id String
- name String
- The name of the Azure Credential.
- resource
Id String - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- List<String>
- The list of resource tags to add to metrics.
- stack
Id String - tenant
Id String - The tenant ID of the Azure Credential.
- auto
Discovery List<GetConfigurations Provider Azure Credential Auto Discovery Configuration> - The list of auto discovery configurations.
- resource
Discovery List<GetTag Filters Provider Azure Credential Resource Discovery Tag Filter> - The list of tag filters to apply to resources.
- client
Id string - The client ID of the Azure Credential.
- client
Secret string - The client secret of the Azure Credential.
- id string
- name string
- The name of the Azure Credential.
- resource
Id string - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- string[]
- The list of resource tags to add to metrics.
- stack
Id string - tenant
Id string - The tenant ID of the Azure Credential.
- auto
Discovery GetConfigurations Provider Azure Credential Auto Discovery Configuration[] - The list of auto discovery configurations.
- resource
Discovery GetTag Filters Provider Azure Credential Resource Discovery Tag Filter[] - The list of tag filters to apply to resources.
- client_
id str - The client ID of the Azure Credential.
- client_
secret str - The client secret of the Azure Credential.
- id str
- name str
- The name of the Azure Credential.
- resource_
id str - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- Sequence[str]
- The list of resource tags to add to metrics.
- stack_
id str - tenant_
id str - The tenant ID of the Azure Credential.
- auto_
discovery_ Sequence[Getconfigurations Provider Azure Credential Auto Discovery Configuration] - The list of auto discovery configurations.
- resource_
discovery_ Sequence[Gettag_ filters Provider Azure Credential Resource Discovery Tag Filter] - The list of tag filters to apply to resources.
- client
Id String - The client ID of the Azure Credential.
- client
Secret String - The client secret of the Azure Credential.
- id String
- name String
- The name of the Azure Credential.
- resource
Id String - The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
- List<String>
- The list of resource tags to add to metrics.
- stack
Id String - tenant
Id String - The tenant ID of the Azure Credential.
- auto
Discovery List<Property Map>Configurations - The list of auto discovery configurations.
- resource
Discovery List<Property Map>Tag Filters - The list of tag filters to apply to resources.
Supporting Types
GetProviderAzureCredentialAutoDiscoveryConfiguration
- Resource
Type List<Pulumiverse.Configurations Grafana. Cloud. Inputs. Get Provider Azure Credential Auto Discovery Configuration Resource Type Configuration> - The list of resource type configurations.
- Subscription
Id string - The subscription ID of the Azure account.
- Resource
Type []GetConfigurations Provider Azure Credential Auto Discovery Configuration Resource Type Configuration - The list of resource type configurations.
- Subscription
Id string - The subscription ID of the Azure account.
- resource
Type List<GetConfigurations Provider Azure Credential Auto Discovery Configuration Resource Type Configuration> - The list of resource type configurations.
- subscription
Id String - The subscription ID of the Azure account.
- resource
Type GetConfigurations Provider Azure Credential Auto Discovery Configuration Resource Type Configuration[] - The list of resource type configurations.
- subscription
Id string - The subscription ID of the Azure account.
- resource_
type_ Sequence[Getconfigurations Provider Azure Credential Auto Discovery Configuration Resource Type Configuration] - The list of resource type configurations.
- subscription_
id str - The subscription ID of the Azure account.
- resource
Type List<Property Map>Configurations - The list of resource type configurations.
- subscription
Id String - The subscription ID of the Azure account.
GetProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration
GetProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfiguration
- Aggregations List<string>
- Dimensions List<string>
- Name string
- Aggregations []string
- Dimensions []string
- Name string
- aggregations List<String>
- dimensions List<String>
- name String
- aggregations string[]
- dimensions string[]
- name string
- aggregations Sequence[str]
- dimensions Sequence[str]
- name str
- aggregations List<String>
- dimensions List<String>
- name String
GetProviderAzureCredentialResourceDiscoveryTagFilter
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.