Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getMonitoredService
Explore with Pulumi AI
Data source for retrieving a monitored service.
Example Usage
Coming soon!
Coming soon!
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.GetMonitoredServiceArgs;
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.getMonitoredService(GetMonitoredServiceArgs.builder()
            .accountId("account_id")
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .build());
    }
}
Coming soon!
Coming soon!
variables:
  example:
    fn::invoke:
      Function: harness:platform:getMonitoredService
      Arguments:
        accountId: account_id
        identifier: identifier
        orgId: org_id
        projectId: project_id
Using getMonitoredService
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 getMonitoredService(args: GetMonitoredServiceArgs, opts?: InvokeOptions): Promise<GetMonitoredServiceResult>
function getMonitoredServiceOutput(args: GetMonitoredServiceOutputArgs, opts?: InvokeOptions): Output<GetMonitoredServiceResult>def get_monitored_service(identifier: Optional[str] = None,
                          org_id: Optional[str] = None,
                          project_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetMonitoredServiceResult
def get_monitored_service_output(identifier: Optional[pulumi.Input[str]] = None,
                          org_id: Optional[pulumi.Input[str]] = None,
                          project_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetMonitoredServiceResult]func LookupMonitoredService(ctx *Context, args *LookupMonitoredServiceArgs, opts ...InvokeOption) (*LookupMonitoredServiceResult, error)
func LookupMonitoredServiceOutput(ctx *Context, args *LookupMonitoredServiceOutputArgs, opts ...InvokeOption) LookupMonitoredServiceResultOutput> Note: This function is named LookupMonitoredService in the Go SDK.
public static class GetMonitoredService 
{
    public static Task<GetMonitoredServiceResult> InvokeAsync(GetMonitoredServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitoredServiceResult> Invoke(GetMonitoredServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitoredServiceResult> getMonitoredService(GetMonitoredServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: harness:platform/getMonitoredService:getMonitoredService
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Identifier string
 - Identifier of the monitored service.
 - Org
Id string - Identifier of the organization in which the monitored service is configured.
 - Project
Id string - Identifier of the project in which the monitored service is configured.
 
- Identifier string
 - Identifier of the monitored service.
 - Org
Id string - Identifier of the organization in which the monitored service is configured.
 - Project
Id string - Identifier of the project in which the monitored service is configured.
 
- identifier String
 - Identifier of the monitored service.
 - org
Id String - Identifier of the organization in which the monitored service is configured.
 - project
Id String - Identifier of the project in which the monitored service is configured.
 
- identifier string
 - Identifier of the monitored service.
 - org
Id string - Identifier of the organization in which the monitored service is configured.
 - project
Id string - Identifier of the project in which the monitored service is configured.
 
- identifier str
 - Identifier of the monitored service.
 - org_
id str - Identifier of the organization in which the monitored service is configured.
 - project_
id str - Identifier of the project in which the monitored service is configured.
 
- identifier String
 - Identifier of the monitored service.
 - org
Id String - Identifier of the organization in which the monitored service is configured.
 - project
Id String - Identifier of the project in which the monitored service is configured.
 
getMonitoredService Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Identifier string
 - Identifier of the monitored service.
 - Org
Id string - Identifier of the organization in which the monitored service is configured.
 - Project
Id string - Identifier of the project in which the monitored service is configured.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Identifier string
 - Identifier of the monitored service.
 - Org
Id string - Identifier of the organization in which the monitored service is configured.
 - Project
Id string - Identifier of the project in which the monitored service is configured.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - identifier String
 - Identifier of the monitored service.
 - org
Id String - Identifier of the organization in which the monitored service is configured.
 - project
Id String - Identifier of the project in which the monitored service is configured.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - identifier string
 - Identifier of the monitored service.
 - org
Id string - Identifier of the organization in which the monitored service is configured.
 - project
Id string - Identifier of the project in which the monitored service is configured.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - identifier str
 - Identifier of the monitored service.
 - org_
id str - Identifier of the organization in which the monitored service is configured.
 - project_
id str - Identifier of the project in which the monitored service is configured.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - identifier String
 - Identifier of the monitored service.
 - org
Id String - Identifier of the organization in which the monitored service is configured.
 - project
Id String - Identifier of the project in which the monitored service is configured.
 
Package Details
- Repository
 - harness lbrlabs/pulumi-harness
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harnessTerraform Provider.