1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getAzureCloudCostConnector
Harness v0.7.3 published on Friday, Apr 18, 2025 by Pulumi

harness.platform.getAzureCloudCostConnector

Explore with Pulumi AI

Datasource for looking up an Azure Cloud Cost Connector.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = harness.platform.getAzureCloudCostConnector({
    identifier: "identifier",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.get_azure_cloud_cost_connector(identifier="identifier")
Copy
package main

import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.LookupAzureCloudCostConnector(ctx, &platform.LookupAzureCloudCostConnectorArgs{
			Identifier: "identifier",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = Harness.Platform.GetAzureCloudCostConnector.Invoke(new()
    {
        Identifier = "identifier",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetAzureCloudCostConnectorArgs;
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) {
        final var example = PlatformFunctions.getAzureCloudCostConnector(GetAzureCloudCostConnectorArgs.builder()
            .identifier("identifier")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:platform:getAzureCloudCostConnector
      arguments:
        identifier: identifier
Copy

Using getAzureCloudCostConnector

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 getAzureCloudCostConnector(args: GetAzureCloudCostConnectorArgs, opts?: InvokeOptions): Promise<GetAzureCloudCostConnectorResult>
function getAzureCloudCostConnectorOutput(args: GetAzureCloudCostConnectorOutputArgs, opts?: InvokeOptions): Output<GetAzureCloudCostConnectorResult>
Copy
def get_azure_cloud_cost_connector(identifier: Optional[str] = None,
                                   name: Optional[str] = None,
                                   org_id: Optional[str] = None,
                                   project_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAzureCloudCostConnectorResult
def get_azure_cloud_cost_connector_output(identifier: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   org_id: Optional[pulumi.Input[str]] = None,
                                   project_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAzureCloudCostConnectorResult]
Copy
func LookupAzureCloudCostConnector(ctx *Context, args *LookupAzureCloudCostConnectorArgs, opts ...InvokeOption) (*LookupAzureCloudCostConnectorResult, error)
func LookupAzureCloudCostConnectorOutput(ctx *Context, args *LookupAzureCloudCostConnectorOutputArgs, opts ...InvokeOption) LookupAzureCloudCostConnectorResultOutput
Copy

> Note: This function is named LookupAzureCloudCostConnector in the Go SDK.

public static class GetAzureCloudCostConnector 
{
    public static Task<GetAzureCloudCostConnectorResult> InvokeAsync(GetAzureCloudCostConnectorArgs args, InvokeOptions? opts = null)
    public static Output<GetAzureCloudCostConnectorResult> Invoke(GetAzureCloudCostConnectorInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAzureCloudCostConnectorResult> getAzureCloudCostConnector(GetAzureCloudCostConnectorArgs args, InvokeOptions options)
public static Output<GetAzureCloudCostConnectorResult> getAzureCloudCostConnector(GetAzureCloudCostConnectorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getAzureCloudCostConnector:getAzureCloudCostConnector
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the resource.
name str
Name of the resource.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

getAzureCloudCostConnector Result

The following output properties are available:

BillingExportSpecs List<GetAzureCloudCostConnectorBillingExportSpec>
Returns billing details for the Azure account.
Description string
Description of the resource.
FeaturesEnableds List<string>
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
SubscriptionId string
Subsription id.
Tags List<string>
Tags to associate with the resource.
TenantId string
Tenant id.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
BillingExportSpecs []GetAzureCloudCostConnectorBillingExportSpec
Returns billing details for the Azure account.
Description string
Description of the resource.
FeaturesEnableds []string
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
SubscriptionId string
Subsription id.
Tags []string
Tags to associate with the resource.
TenantId string
Tenant id.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
billingExportSpecs List<GetAzureCloudCostConnectorBillingExportSpec>
Returns billing details for the Azure account.
description String
Description of the resource.
featuresEnableds List<String>
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
subscriptionId String
Subsription id.
tags List<String>
Tags to associate with the resource.
tenantId String
Tenant id.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
billingExportSpecs GetAzureCloudCostConnectorBillingExportSpec[]
Returns billing details for the Azure account.
description string
Description of the resource.
featuresEnableds string[]
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Unique identifier of the resource.
subscriptionId string
Subsription id.
tags string[]
Tags to associate with the resource.
tenantId string
Tenant id.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
billing_export_specs Sequence[GetAzureCloudCostConnectorBillingExportSpec]
Returns billing details for the Azure account.
description str
Description of the resource.
features_enableds Sequence[str]
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Unique identifier of the resource.
subscription_id str
Subsription id.
tags Sequence[str]
Tags to associate with the resource.
tenant_id str
Tenant id.
name str
Name of the resource.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
billingExportSpecs List<Property Map>
Returns billing details for the Azure account.
description String
Description of the resource.
featuresEnableds List<String>
Indicates which feature to enable among Billing, Optimization, Visibility and Governance.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
subscriptionId String
Subsription id.
tags List<String>
Tags to associate with the resource.
tenantId String
Tenant id.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

Supporting Types

GetAzureCloudCostConnectorBillingExportSpec

ContainerName This property is required. string
Name of the container.
DirectoryName This property is required. string
Name of the directory.
ReportName This property is required. string
Name of the report.
StorageAccountName This property is required. string
Name of the storage account.
SubscriptionId This property is required. string
Subsription Id.
ContainerName This property is required. string
Name of the container.
DirectoryName This property is required. string
Name of the directory.
ReportName This property is required. string
Name of the report.
StorageAccountName This property is required. string
Name of the storage account.
SubscriptionId This property is required. string
Subsription Id.
containerName This property is required. String
Name of the container.
directoryName This property is required. String
Name of the directory.
reportName This property is required. String
Name of the report.
storageAccountName This property is required. String
Name of the storage account.
subscriptionId This property is required. String
Subsription Id.
containerName This property is required. string
Name of the container.
directoryName This property is required. string
Name of the directory.
reportName This property is required. string
Name of the report.
storageAccountName This property is required. string
Name of the storage account.
subscriptionId This property is required. string
Subsription Id.
container_name This property is required. str
Name of the container.
directory_name This property is required. str
Name of the directory.
report_name This property is required. str
Name of the report.
storage_account_name This property is required. str
Name of the storage account.
subscription_id This property is required. str
Subsription Id.
containerName This property is required. String
Name of the container.
directoryName This property is required. String
Name of the directory.
reportName This property is required. String
Name of the report.
storageAccountName This property is required. String
Name of the storage account.
subscriptionId This property is required. String
Subsription Id.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.