1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppidRedirectUrls
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.AppidRedirectUrls

Explore with Pulumi AI

ibm logo
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

    Create, update, or delete an IBM Cloud AppID Management Services Cloud Directory redirect URLs. For more information, see adding redirect URIs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const urls = new ibm.AppidRedirectUrls("urls", {
        tenantId: _var.tenant_id,
        urls: [
            "https://test-application-1.com/login",
            "https://test-application-2.com/login",
            "https://test-application-3.com/login",
        ],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    urls = ibm.AppidRedirectUrls("urls",
        tenant_id=var["tenant_id"],
        urls=[
            "https://test-application-1.com/login",
            "https://test-application-2.com/login",
            "https://test-application-3.com/login",
        ])
    
    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.NewAppidRedirectUrls(ctx, "urls", &ibm.AppidRedirectUrlsArgs{
    			TenantId: pulumi.Any(_var.Tenant_id),
    			Urls: pulumi.StringArray{
    				pulumi.String("https://test-application-1.com/login"),
    				pulumi.String("https://test-application-2.com/login"),
    				pulumi.String("https://test-application-3.com/login"),
    			},
    		})
    		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 urls = new Ibm.AppidRedirectUrls("urls", new()
        {
            TenantId = @var.Tenant_id,
            Urls = new[]
            {
                "https://test-application-1.com/login",
                "https://test-application-2.com/login",
                "https://test-application-3.com/login",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppidRedirectUrls;
    import com.pulumi.ibm.AppidRedirectUrlsArgs;
    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) {
            var urls = new AppidRedirectUrls("urls", AppidRedirectUrlsArgs.builder()
                .tenantId(var_.tenant_id())
                .urls(            
                    "https://test-application-1.com/login",
                    "https://test-application-2.com/login",
                    "https://test-application-3.com/login")
                .build());
    
        }
    }
    
    resources:
      urls:
        type: ibm:AppidRedirectUrls
        properties:
          tenantId: ${var.tenant_id}
          urls:
            - https://test-application-1.com/login
            - https://test-application-2.com/login
            - https://test-application-3.com/login
    

    Create AppidRedirectUrls Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppidRedirectUrls(name: string, args: AppidRedirectUrlsArgs, opts?: CustomResourceOptions);
    @overload
    def AppidRedirectUrls(resource_name: str,
                          args: AppidRedirectUrlsArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppidRedirectUrls(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          tenant_id: Optional[str] = None,
                          urls: Optional[Sequence[str]] = None,
                          appid_redirect_urls_id: Optional[str] = None)
    func NewAppidRedirectUrls(ctx *Context, name string, args AppidRedirectUrlsArgs, opts ...ResourceOption) (*AppidRedirectUrls, error)
    public AppidRedirectUrls(string name, AppidRedirectUrlsArgs args, CustomResourceOptions? opts = null)
    public AppidRedirectUrls(String name, AppidRedirectUrlsArgs args)
    public AppidRedirectUrls(String name, AppidRedirectUrlsArgs args, CustomResourceOptions options)
    
    type: ibm:AppidRedirectUrls
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppidRedirectUrlsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppidRedirectUrlsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppidRedirectUrlsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppidRedirectUrlsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppidRedirectUrlsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appidRedirectUrlsResource = new Ibm.AppidRedirectUrls("appidRedirectUrlsResource", new()
    {
        TenantId = "string",
        Urls = new[]
        {
            "string",
        },
        AppidRedirectUrlsId = "string",
    });
    
    example, err := ibm.NewAppidRedirectUrls(ctx, "appidRedirectUrlsResource", &ibm.AppidRedirectUrlsArgs{
    TenantId: pulumi.String("string"),
    Urls: pulumi.StringArray{
    pulumi.String("string"),
    },
    AppidRedirectUrlsId: pulumi.String("string"),
    })
    
    var appidRedirectUrlsResource = new AppidRedirectUrls("appidRedirectUrlsResource", AppidRedirectUrlsArgs.builder()
        .tenantId("string")
        .urls("string")
        .appidRedirectUrlsId("string")
        .build());
    
    appid_redirect_urls_resource = ibm.AppidRedirectUrls("appidRedirectUrlsResource",
        tenant_id="string",
        urls=["string"],
        appid_redirect_urls_id="string")
    
    const appidRedirectUrlsResource = new ibm.AppidRedirectUrls("appidRedirectUrlsResource", {
        tenantId: "string",
        urls: ["string"],
        appidRedirectUrlsId: "string",
    });
    
    type: ibm:AppidRedirectUrls
    properties:
        appidRedirectUrlsId: string
        tenantId: string
        urls:
            - string
    

    AppidRedirectUrls Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppidRedirectUrls resource accepts the following input properties:

    TenantId string
    The AppID instance GUID
    Urls List<string>
    A list of redirect URLs
    AppidRedirectUrlsId string
    TenantId string
    The AppID instance GUID
    Urls []string
    A list of redirect URLs
    AppidRedirectUrlsId string
    tenantId String
    The AppID instance GUID
    urls List<String>
    A list of redirect URLs
    appidRedirectUrlsId String
    tenantId string
    The AppID instance GUID
    urls string[]
    A list of redirect URLs
    appidRedirectUrlsId string
    tenant_id str
    The AppID instance GUID
    urls Sequence[str]
    A list of redirect URLs
    appid_redirect_urls_id str
    tenantId String
    The AppID instance GUID
    urls List<String>
    A list of redirect URLs
    appidRedirectUrlsId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppidRedirectUrls resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AppidRedirectUrls Resource

    Get an existing AppidRedirectUrls resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppidRedirectUrlsState, opts?: CustomResourceOptions): AppidRedirectUrls
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appid_redirect_urls_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            urls: Optional[Sequence[str]] = None) -> AppidRedirectUrls
    func GetAppidRedirectUrls(ctx *Context, name string, id IDInput, state *AppidRedirectUrlsState, opts ...ResourceOption) (*AppidRedirectUrls, error)
    public static AppidRedirectUrls Get(string name, Input<string> id, AppidRedirectUrlsState? state, CustomResourceOptions? opts = null)
    public static AppidRedirectUrls get(String name, Output<String> id, AppidRedirectUrlsState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppidRedirectUrls    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppidRedirectUrlsId string
    TenantId string
    The AppID instance GUID
    Urls List<string>
    A list of redirect URLs
    AppidRedirectUrlsId string
    TenantId string
    The AppID instance GUID
    Urls []string
    A list of redirect URLs
    appidRedirectUrlsId String
    tenantId String
    The AppID instance GUID
    urls List<String>
    A list of redirect URLs
    appidRedirectUrlsId string
    tenantId string
    The AppID instance GUID
    urls string[]
    A list of redirect URLs
    appid_redirect_urls_id str
    tenant_id str
    The AppID instance GUID
    urls Sequence[str]
    A list of redirect URLs
    appidRedirectUrlsId String
    tenantId String
    The AppID instance GUID
    urls List<String>
    A list of redirect URLs

    Import

    The ibm_appid_redirect_urls resource can be imported by using the AppID tenant ID.

    Syntax

    bash

    $ pulumi import ibm:index/appidRedirectUrls:AppidRedirectUrls urls <tenant_id>
    

    Example

    bash

    $ pulumi import ibm:index/appidRedirectUrls:AppidRedirectUrls urls 5fa344a8-d361-4bc2-9051-58ca253f4b2b
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.77.1 published on Monday, Apr 14, 2025 by ibm-cloud