1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEnDestinationIos
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getEnDestinationIos

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for destination. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iosEnDestination = ibm.getEnDestinationIos({
        instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
        destinationId: ibm_en_destination_ios.destinationiosp8.destination_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ios_en_destination = ibm.get_en_destination_ios(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
        destination_id=ibm_en_destination_ios["destinationiosp8"]["destination_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupEnDestinationIos(ctx, &ibm.LookupEnDestinationIosArgs{
    			InstanceGuid:  ibm_resource_instance.En_terraform_test_resource.Guid,
    			DestinationId: ibm_en_destination_ios.Destinationiosp8.Destination_id,
    		}, 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 iosEnDestination = Ibm.GetEnDestinationIos.Invoke(new()
        {
            InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
            DestinationId = ibm_en_destination_ios.Destinationiosp8.Destination_id,
        });
    
    });
    
    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.GetEnDestinationIosArgs;
    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 iosEnDestination = IbmFunctions.getEnDestinationIos(GetEnDestinationIosArgs.builder()
                .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
                .destinationId(ibm_en_destination_ios.destinationiosp8().destination_id())
                .build());
    
        }
    }
    
    variables:
      iosEnDestination:
        fn::invoke:
          function: ibm:getEnDestinationIos
          arguments:
            instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
            destinationId: ${ibm_en_destination_ios.destinationiosp8.destination_id}
    

    Using getEnDestinationIos

    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 getEnDestinationIos(args: GetEnDestinationIosArgs, opts?: InvokeOptions): Promise<GetEnDestinationIosResult>
    function getEnDestinationIosOutput(args: GetEnDestinationIosOutputArgs, opts?: InvokeOptions): Output<GetEnDestinationIosResult>
    def get_en_destination_ios(destination_id: Optional[str] = None,
                               id: Optional[str] = None,
                               instance_guid: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEnDestinationIosResult
    def get_en_destination_ios_output(destination_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               instance_guid: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEnDestinationIosResult]
    func LookupEnDestinationIos(ctx *Context, args *LookupEnDestinationIosArgs, opts ...InvokeOption) (*LookupEnDestinationIosResult, error)
    func LookupEnDestinationIosOutput(ctx *Context, args *LookupEnDestinationIosOutputArgs, opts ...InvokeOption) LookupEnDestinationIosResultOutput

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

    public static class GetEnDestinationIos 
    {
        public static Task<GetEnDestinationIosResult> InvokeAsync(GetEnDestinationIosArgs args, InvokeOptions? opts = null)
        public static Output<GetEnDestinationIosResult> Invoke(GetEnDestinationIosInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnDestinationIosResult> getEnDestinationIos(GetEnDestinationIosArgs args, InvokeOptions options)
    public static Output<GetEnDestinationIosResult> getEnDestinationIos(GetEnDestinationIosArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getEnDestinationIos:getEnDestinationIos
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DestinationId string
    Unique identifier for Destination.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Id string
    The unique identifier of the ios_en_destination.
    DestinationId string
    Unique identifier for Destination.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Id string
    The unique identifier of the ios_en_destination.
    destinationId String
    Unique identifier for Destination.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    id String
    The unique identifier of the ios_en_destination.
    destinationId string
    Unique identifier for Destination.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    id string
    The unique identifier of the ios_en_destination.
    destination_id str
    Unique identifier for Destination.
    instance_guid str
    Unique identifier for IBM Cloud Event Notifications instance.
    id str
    The unique identifier of the ios_en_destination.
    destinationId String
    Unique identifier for Destination.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    id String
    The unique identifier of the ios_en_destination.

    getEnDestinationIos Result

    The following output properties are available:

    Certificate string
    (binary) Certificate file. The file type allowed is .p8 and .p12
    CertificateContentType string
    (String) The type of certificate, Values are p8/p12.
    CollectFailedEvents bool
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    Configs List<GetEnDestinationIosConfig>
    (List) Payload describing a destination configuration. Nested scheme for config:
    Description string
    (String) Destination description.
    DestinationId string
    Id string
    The unique identifier of the ios_en_destination.
    InstanceGuid string
    Name string
    (String) Destination name.
    SubscriptionCount double
    (Integer) Number of subscriptions.
    SubscriptionNames List<string>
    (List) List of subscriptions.
    Type string
    (String) Destination type push_ios.
    UpdatedAt string
    (String) Last updated time.
    Certificate string
    (binary) Certificate file. The file type allowed is .p8 and .p12
    CertificateContentType string
    (String) The type of certificate, Values are p8/p12.
    CollectFailedEvents bool
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    Configs []GetEnDestinationIosConfig
    (List) Payload describing a destination configuration. Nested scheme for config:
    Description string
    (String) Destination description.
    DestinationId string
    Id string
    The unique identifier of the ios_en_destination.
    InstanceGuid string
    Name string
    (String) Destination name.
    SubscriptionCount float64
    (Integer) Number of subscriptions.
    SubscriptionNames []string
    (List) List of subscriptions.
    Type string
    (String) Destination type push_ios.
    UpdatedAt string
    (String) Last updated time.
    certificate String
    (binary) Certificate file. The file type allowed is .p8 and .p12
    certificateContentType String
    (String) The type of certificate, Values are p8/p12.
    collectFailedEvents Boolean
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    configs List<GetEnDestinationIosConfig>
    (List) Payload describing a destination configuration. Nested scheme for config:
    description String
    (String) Destination description.
    destinationId String
    id String
    The unique identifier of the ios_en_destination.
    instanceGuid String
    name String
    (String) Destination name.
    subscriptionCount Double
    (Integer) Number of subscriptions.
    subscriptionNames List<String>
    (List) List of subscriptions.
    type String
    (String) Destination type push_ios.
    updatedAt String
    (String) Last updated time.
    certificate string
    (binary) Certificate file. The file type allowed is .p8 and .p12
    certificateContentType string
    (String) The type of certificate, Values are p8/p12.
    collectFailedEvents boolean
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    configs GetEnDestinationIosConfig[]
    (List) Payload describing a destination configuration. Nested scheme for config:
    description string
    (String) Destination description.
    destinationId string
    id string
    The unique identifier of the ios_en_destination.
    instanceGuid string
    name string
    (String) Destination name.
    subscriptionCount number
    (Integer) Number of subscriptions.
    subscriptionNames string[]
    (List) List of subscriptions.
    type string
    (String) Destination type push_ios.
    updatedAt string
    (String) Last updated time.
    certificate str
    (binary) Certificate file. The file type allowed is .p8 and .p12
    certificate_content_type str
    (String) The type of certificate, Values are p8/p12.
    collect_failed_events bool
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    configs Sequence[GetEnDestinationIosConfig]
    (List) Payload describing a destination configuration. Nested scheme for config:
    description str
    (String) Destination description.
    destination_id str
    id str
    The unique identifier of the ios_en_destination.
    instance_guid str
    name str
    (String) Destination name.
    subscription_count float
    (Integer) Number of subscriptions.
    subscription_names Sequence[str]
    (List) List of subscriptions.
    type str
    (String) Destination type push_ios.
    updated_at str
    (String) Last updated time.
    certificate String
    (binary) Certificate file. The file type allowed is .p8 and .p12
    certificateContentType String
    (String) The type of certificate, Values are p8/p12.
    collectFailedEvents Boolean
    (boolean) Toggle switch to enable collect failed event in Cloud Object Storage bucket.
    configs List<Property Map>
    (List) Payload describing a destination configuration. Nested scheme for config:
    description String
    (String) Destination description.
    destinationId String
    id String
    The unique identifier of the ios_en_destination.
    instanceGuid String
    name String
    (String) Destination name.
    subscriptionCount Number
    (Integer) Number of subscriptions.
    subscriptionNames List<String>
    (List) List of subscriptions.
    type String
    (String) Destination type push_ios.
    updatedAt String
    (String) Last updated time.

    Supporting Types

    GetEnDestinationIosConfig

    GetEnDestinationIosConfigParam

    BundleId string
    (String) The team_id value in case P8 certificate.
    CertType string
    (String) The Certificate type. Values are p8/p12.
    IsSandbox bool
    (boolean) The flag for sandbox/production environment.
    KeyId string
    (String) The team_id value in case P8 certificate.
    Password string
    (String) The password string for p12 certificate.
    PreProd bool
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    TeamId string
    (String) The team_id value in case P8 certificate.
    BundleId string
    (String) The team_id value in case P8 certificate.
    CertType string
    (String) The Certificate type. Values are p8/p12.
    IsSandbox bool
    (boolean) The flag for sandbox/production environment.
    KeyId string
    (String) The team_id value in case P8 certificate.
    Password string
    (String) The password string for p12 certificate.
    PreProd bool
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    TeamId string
    (String) The team_id value in case P8 certificate.
    bundleId String
    (String) The team_id value in case P8 certificate.
    certType String
    (String) The Certificate type. Values are p8/p12.
    isSandbox Boolean
    (boolean) The flag for sandbox/production environment.
    keyId String
    (String) The team_id value in case P8 certificate.
    password String
    (String) The password string for p12 certificate.
    preProd Boolean
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    teamId String
    (String) The team_id value in case P8 certificate.
    bundleId string
    (String) The team_id value in case P8 certificate.
    certType string
    (String) The Certificate type. Values are p8/p12.
    isSandbox boolean
    (boolean) The flag for sandbox/production environment.
    keyId string
    (String) The team_id value in case P8 certificate.
    password string
    (String) The password string for p12 certificate.
    preProd boolean
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    teamId string
    (String) The team_id value in case P8 certificate.
    bundle_id str
    (String) The team_id value in case P8 certificate.
    cert_type str
    (String) The Certificate type. Values are p8/p12.
    is_sandbox bool
    (boolean) The flag for sandbox/production environment.
    key_id str
    (String) The team_id value in case P8 certificate.
    password str
    (String) The password string for p12 certificate.
    pre_prod bool
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    team_id str
    (String) The team_id value in case P8 certificate.
    bundleId String
    (String) The team_id value in case P8 certificate.
    certType String
    (String) The Certificate type. Values are p8/p12.
    isSandbox Boolean
    (boolean) The flag for sandbox/production environment.
    keyId String
    (String) The team_id value in case P8 certificate.
    password String
    (String) The password string for p12 certificate.
    preProd Boolean
    (Optional, bool) The flag to set your destination as pre prod destination or Prod Destination. The option is only available with Standard plan
    teamId String
    (String) The team_id value in case P8 certificate.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud