1. Packages
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. getLogsExtensionDeployment
Viewing docs for ibm 2.1.0-beta0
published on Wednesday, Apr 29, 2026 by ibm-cloud
Viewing docs for ibm 2.1.0-beta0
published on Wednesday, Apr 29, 2026 by ibm-cloud

    Provides a read-only data source to retrieve information about an Extension deployment. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const logsExtensionDeploymentInstance = ibm.getLogsExtensionDeployment({
        instanceId: logsInstance.guid,
        region: logsInstance.location,
        logsExtensionId: logsExtensionDeploymentInstanceIbmLogsExtensionDeployment.logsExtensionId,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_extension_deployment_instance = ibm.get_logs_extension_deployment(instance_id=logs_instance["guid"],
        region=logs_instance["location"],
        logs_extension_id=logs_extension_deployment_instance_ibm_logs_extension_deployment["logsExtensionId"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupLogsExtensionDeployment(ctx, &ibm.LookupLogsExtensionDeploymentArgs{
    			InstanceId:      logsInstance.Guid,
    			Region:          pulumi.StringRef(logsInstance.Location),
    			LogsExtensionId: logsExtensionDeploymentInstanceIbmLogsExtensionDeployment.LogsExtensionId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var logsExtensionDeploymentInstance = Ibm.GetLogsExtensionDeployment.Invoke(new()
        {
            InstanceId = logsInstance.Guid,
            Region = logsInstance.Location,
            LogsExtensionId = logsExtensionDeploymentInstanceIbmLogsExtensionDeployment.LogsExtensionId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetLogsExtensionDeploymentArgs;
    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 logsExtensionDeploymentInstance = IbmFunctions.getLogsExtensionDeployment(GetLogsExtensionDeploymentArgs.builder()
                .instanceId(logsInstance.guid())
                .region(logsInstance.location())
                .logsExtensionId(logsExtensionDeploymentInstanceIbmLogsExtensionDeployment.logsExtensionId())
                .build());
    
        }
    }
    
    variables:
      logsExtensionDeploymentInstance:
        fn::invoke:
          function: ibm:getLogsExtensionDeployment
          arguments:
            instanceId: ${logsInstance.guid}
            region: ${logsInstance.location}
            logsExtensionId: ${logsExtensionDeploymentInstanceIbmLogsExtensionDeployment.logsExtensionId}
    

    Using getLogsExtensionDeployment

    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 getLogsExtensionDeployment(args: GetLogsExtensionDeploymentArgs, opts?: InvokeOptions): Promise<GetLogsExtensionDeploymentResult>
    function getLogsExtensionDeploymentOutput(args: GetLogsExtensionDeploymentOutputArgs, opts?: InvokeOptions): Output<GetLogsExtensionDeploymentResult>
    def get_logs_extension_deployment(endpoint_type: Optional[str] = None,
                                      id: Optional[str] = None,
                                      instance_id: Optional[str] = None,
                                      logs_extension_id: Optional[str] = None,
                                      region: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetLogsExtensionDeploymentResult
    def get_logs_extension_deployment_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      instance_id: Optional[pulumi.Input[str]] = None,
                                      logs_extension_id: Optional[pulumi.Input[str]] = None,
                                      region: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetLogsExtensionDeploymentResult]
    func LookupLogsExtensionDeployment(ctx *Context, args *LookupLogsExtensionDeploymentArgs, opts ...InvokeOption) (*LookupLogsExtensionDeploymentResult, error)
    func LookupLogsExtensionDeploymentOutput(ctx *Context, args *LookupLogsExtensionDeploymentOutputArgs, opts ...InvokeOption) LookupLogsExtensionDeploymentResultOutput

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

    public static class GetLogsExtensionDeployment 
    {
        public static Task<GetLogsExtensionDeploymentResult> InvokeAsync(GetLogsExtensionDeploymentArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsExtensionDeploymentResult> Invoke(GetLogsExtensionDeploymentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsExtensionDeploymentResult> getLogsExtensionDeployment(GetLogsExtensionDeploymentArgs args, InvokeOptions options)
    public static Output<GetLogsExtensionDeploymentResult> getLogsExtensionDeployment(GetLogsExtensionDeploymentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getLogsExtensionDeployment:getLogsExtensionDeployment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Cloud Logs Instance GUID.
    LogsExtensionId string
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    Id string
    The unique identifier of the Extension deployment.
    Region string
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsExtensionId string
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    Id string
    The unique identifier of the Extension deployment.
    Region string
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    logsExtensionId String
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    id String
    The unique identifier of the Extension deployment.
    region String
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    logsExtensionId string
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    id string
    The unique identifier of the Extension deployment.
    region string
    Cloud Logs Instance Region.
    instance_id str
    Cloud Logs Instance GUID.
    logs_extension_id str
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    id str
    The unique identifier of the Extension deployment.
    region str
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    logsExtensionId String
    The unique identifier of the extension.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    id String
    The unique identifier of the Extension deployment.
    region String
    Cloud Logs Instance Region.

    getLogsExtensionDeployment Result

    The following output properties are available:

    Applications List<string>
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    Id string
    The unique identifier of the Extension deployment.
    InstanceId string
    ItemIds List<string>
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    LogsExtensionId string
    Region string
    Subsystems List<string>
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    Version string
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    EndpointType string
    Applications []string
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    Id string
    The unique identifier of the Extension deployment.
    InstanceId string
    ItemIds []string
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    LogsExtensionId string
    Region string
    Subsystems []string
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    Version string
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    EndpointType string
    applications List<String>
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    id String
    The unique identifier of the Extension deployment.
    instanceId String
    itemIds List<String>
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    logsExtensionId String
    region String
    subsystems List<String>
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    version String
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType String
    applications string[]
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    id string
    The unique identifier of the Extension deployment.
    instanceId string
    itemIds string[]
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    logsExtensionId string
    region string
    subsystems string[]
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    version string
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType string
    applications Sequence[str]
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    id str
    The unique identifier of the Extension deployment.
    instance_id str
    item_ids Sequence[str]
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    logs_extension_id str
    region str
    subsystems Sequence[str]
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    version str
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpoint_type str
    applications List<String>
    (List) Applications that the Extension is deployed for. When this is empty, it is applied to all applications.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    id String
    The unique identifier of the Extension deployment.
    instanceId String
    itemIds List<String>
    (List) The list of Extension item IDs to deploy.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 1 item.
    logsExtensionId String
    region String
    subsystems List<String>
    (List) Subsystems that the Extension is deployed. When this is empty, it is applied to all subsystems.

    • Constraints: The list items must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. The maximum length is 4096 items. The minimum length is 0 items.
    version String
    (String) The version of the Extension revision to deploy.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/.
    endpointType String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    Viewing docs for ibm 2.1.0-beta0
    published on Wednesday, Apr 29, 2026 by ibm-cloud
      Try Pulumi Cloud free. Your team will thank you.