1. Packages
  2. Harness Provider
  3. API Docs
  4. getYamlConfig
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.getYamlConfig

Explore with Pulumi AI

Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

Data source for retrieving a yaml config.

Using getYamlConfig

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 getYamlConfig(args: GetYamlConfigArgs, opts?: InvokeOptions): Promise<GetYamlConfigResult>
function getYamlConfigOutput(args: GetYamlConfigOutputArgs, opts?: InvokeOptions): Output<GetYamlConfigResult>
Copy
def get_yaml_config(app_id: Optional[str] = None,
                    path: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetYamlConfigResult
def get_yaml_config_output(app_id: Optional[pulumi.Input[str]] = None,
                    path: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetYamlConfigResult]
Copy
func LookupYamlConfig(ctx *Context, args *LookupYamlConfigArgs, opts ...InvokeOption) (*LookupYamlConfigResult, error)
func LookupYamlConfigOutput(ctx *Context, args *LookupYamlConfigOutputArgs, opts ...InvokeOption) LookupYamlConfigResultOutput
Copy

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

public static class GetYamlConfig 
{
    public static Task<GetYamlConfigResult> InvokeAsync(GetYamlConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetYamlConfigResult> Invoke(GetYamlConfigInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetYamlConfigResult> getYamlConfig(GetYamlConfigArgs args, InvokeOptions options)
public static Output<GetYamlConfigResult> getYamlConfig(GetYamlConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:index/getYamlConfig:getYamlConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Path This property is required. string
Path to the yaml file.
AppId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
Path This property is required. string
Path to the yaml file.
AppId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
path This property is required. String
Path to the yaml file.
appId String
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
path This property is required. string
Path to the yaml file.
appId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
path This property is required. str
Path to the yaml file.
app_id str
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
path This property is required. String
Path to the yaml file.
appId String
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).

getYamlConfig Result

The following output properties are available:

Content string
Content of the yaml file.
Id string
Unique identifier of the yaml resource.
Name string
Name of the yaml resource.
Path string
Path to the yaml file.
AppId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
Content string
Content of the yaml file.
Id string
Unique identifier of the yaml resource.
Name string
Name of the yaml resource.
Path string
Path to the yaml file.
AppId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
content String
Content of the yaml file.
id String
Unique identifier of the yaml resource.
name String
Name of the yaml resource.
path String
Path to the yaml file.
appId String
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
content string
Content of the yaml file.
id string
Unique identifier of the yaml resource.
name string
Name of the yaml resource.
path string
Path to the yaml file.
appId string
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
content str
Content of the yaml file.
id str
Unique identifier of the yaml resource.
name str
Name of the yaml resource.
path str
Path to the yaml file.
app_id str
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).
content String
Content of the yaml file.
id String
Unique identifier of the yaml resource.
name String
Name of the yaml resource.
path String
Path to the yaml file.
appId String
Unique identifier of the application. This is not required for account level resources (i.e. cloud providers, connectors, etc.).

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi