Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Data source for retrieving service discovery settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// Data source to fetch service discovery setting by name
const example = harness.service.getDiscoverySetting({
orgIdentifier: "<org_identifier>",
projectIdentifier: "<project_identifier>",
});
import pulumi
import pulumi_harness as harness
# Data source to fetch service discovery setting by name
example = harness.service.get_discovery_setting(org_identifier="<org_identifier>",
project_identifier="<project_identifier>")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/service"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Data source to fetch service discovery setting by name
_, err := service.LookupDiscoverySetting(ctx, &service.LookupDiscoverySettingArgs{
OrgIdentifier: pulumi.StringRef("<org_identifier>"),
ProjectIdentifier: pulumi.StringRef("<project_identifier>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// Data source to fetch service discovery setting by name
var example = Harness.Service.GetDiscoverySetting.Invoke(new()
{
OrgIdentifier = "<org_identifier>",
ProjectIdentifier = "<project_identifier>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.service.ServiceFunctions;
import com.pulumi.harness.service.inputs.GetDiscoverySettingArgs;
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) {
// Data source to fetch service discovery setting by name
final var example = ServiceFunctions.getDiscoverySetting(GetDiscoverySettingArgs.builder()
.orgIdentifier("<org_identifier>")
.projectIdentifier("<project_identifier>")
.build());
}
}
variables:
# Data source to fetch service discovery setting by name
example:
fn::invoke:
function: harness:service:getDiscoverySetting
arguments:
orgIdentifier: <org_identifier>
projectIdentifier: <project_identifier>
Using getDiscoverySetting
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 getDiscoverySetting(args: GetDiscoverySettingArgs, opts?: InvokeOptions): Promise<GetDiscoverySettingResult>
function getDiscoverySettingOutput(args: GetDiscoverySettingOutputArgs, opts?: InvokeOptions): Output<GetDiscoverySettingResult>def get_discovery_setting(correlation_id: Optional[str] = None,
org_identifier: Optional[str] = None,
project_identifier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiscoverySettingResult
def get_discovery_setting_output(correlation_id: Optional[pulumi.Input[str]] = None,
org_identifier: Optional[pulumi.Input[str]] = None,
project_identifier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiscoverySettingResult]func LookupDiscoverySetting(ctx *Context, args *LookupDiscoverySettingArgs, opts ...InvokeOption) (*LookupDiscoverySettingResult, error)
func LookupDiscoverySettingOutput(ctx *Context, args *LookupDiscoverySettingOutputArgs, opts ...InvokeOption) LookupDiscoverySettingResultOutput> Note: This function is named LookupDiscoverySetting in the Go SDK.
public static class GetDiscoverySetting
{
public static Task<GetDiscoverySettingResult> InvokeAsync(GetDiscoverySettingArgs args, InvokeOptions? opts = null)
public static Output<GetDiscoverySettingResult> Invoke(GetDiscoverySettingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDiscoverySettingResult> getDiscoverySetting(GetDiscoverySettingArgs args, InvokeOptions options)
public static Output<GetDiscoverySettingResult> getDiscoverySetting(GetDiscoverySettingArgs args, InvokeOptions options)
fn::invoke:
function: harness:service/getDiscoverySetting:getDiscoverySetting
arguments:
# arguments dictionaryThe following arguments are supported:
- Correlation
Id string - Correlation ID for the request.
- Org
Identifier string - The organization identifier.
- Project
Identifier string - The project identifier.
- Correlation
Id string - Correlation ID for the request.
- Org
Identifier string - The organization identifier.
- Project
Identifier string - The project identifier.
- correlation
Id String - Correlation ID for the request.
- org
Identifier String - The organization identifier.
- project
Identifier String - The project identifier.
- correlation
Id string - Correlation ID for the request.
- org
Identifier string - The organization identifier.
- project
Identifier string - The project identifier.
- correlation_
id str - Correlation ID for the request.
- org_
identifier str - The organization identifier.
- project_
identifier str - The project identifier.
- correlation
Id String - Correlation ID for the request.
- org
Identifier String - The organization identifier.
- project
Identifier String - The project identifier.
getDiscoverySetting Result
The following output properties are available:
- Created
At string - Timestamp when the setting was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Registries List<GetDiscovery Setting Image Registry> - Image registry configuration.
- Updated
At string - Timestamp when the setting was last updated.
- Correlation
Id string - Correlation ID for the request.
- Org
Identifier string - The organization identifier.
- Project
Identifier string - The project identifier.
- Created
At string - Timestamp when the setting was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Registries []GetDiscovery Setting Image Registry - Image registry configuration.
- Updated
At string - Timestamp when the setting was last updated.
- Correlation
Id string - Correlation ID for the request.
- Org
Identifier string - The organization identifier.
- Project
Identifier string - The project identifier.
- created
At String - Timestamp when the setting was created.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Registries List<GetDiscovery Setting Image Registry> - Image registry configuration.
- updated
At String - Timestamp when the setting was last updated.
- correlation
Id String - Correlation ID for the request.
- org
Identifier String - The organization identifier.
- project
Identifier String - The project identifier.
- created
At string - Timestamp when the setting was created.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Registries GetDiscovery Setting Image Registry[] - Image registry configuration.
- updated
At string - Timestamp when the setting was last updated.
- correlation
Id string - Correlation ID for the request.
- org
Identifier string - The organization identifier.
- project
Identifier string - The project identifier.
- created_
at str - Timestamp when the setting was created.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
registries Sequence[GetDiscovery Setting Image Registry] - Image registry configuration.
- updated_
at str - Timestamp when the setting was last updated.
- correlation_
id str - Correlation ID for the request.
- org_
identifier str - The organization identifier.
- project_
identifier str - The project identifier.
- created
At String - Timestamp when the setting was created.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Registries List<Property Map> - Image registry configuration.
- updated
At String - Timestamp when the setting was last updated.
- correlation
Id String - Correlation ID for the request.
- org
Identifier String - The organization identifier.
- project
Identifier String - The project identifier.
Supporting Types
GetDiscoverySettingImageRegistry
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
