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

ibm.AppidIdpCustom

Explore with Pulumi AI

Create, update, or delete an IBM Cloud AppID Management Services Custom IDP resource. For more information, see AppID custom identity

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as ibm from "@pulumi/ibm";

const idp = new ibm.AppidIdpCustom("idp", {
    tenantId: _var.tenant_id,
    isActive: true,
    publicKey: fs.readFileSync("path/to/public_key", "utf8"),
});
Copy
import pulumi
import pulumi_ibm as ibm

idp = ibm.AppidIdpCustom("idp",
    tenant_id=var["tenant_id"],
    is_active=True,
    public_key=(lambda path: open(path).read())("path/to/public_key"))
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewAppidIdpCustom(ctx, "idp", &ibm.AppidIdpCustomArgs{
			TenantId:  pulumi.Any(_var.Tenant_id),
			IsActive:  pulumi.Bool(true),
			PublicKey: pulumi.String(readFileOrPanic("path/to/public_key")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var idp = new Ibm.AppidIdpCustom("idp", new()
    {
        TenantId = @var.Tenant_id,
        IsActive = true,
        PublicKey = File.ReadAllText("path/to/public_key"),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidIdpCustom;
import com.pulumi.ibm.AppidIdpCustomArgs;
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 idp = new AppidIdpCustom("idp", AppidIdpCustomArgs.builder()
            .tenantId(var_.tenant_id())
            .isActive(true)
            .publicKey(Files.readString(Paths.get("path/to/public_key")))
            .build());

    }
}
Copy
resources:
  idp:
    type: ibm:AppidIdpCustom
    properties:
      tenantId: ${var.tenant_id}
      isActive: true
      publicKey:
        fn::readFile: path/to/public_key
Copy

Create AppidIdpCustom Resource

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

Constructor syntax

new AppidIdpCustom(name: string, args: AppidIdpCustomArgs, opts?: CustomResourceOptions);
@overload
def AppidIdpCustom(resource_name: str,
                   args: AppidIdpCustomArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def AppidIdpCustom(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   is_active: Optional[bool] = None,
                   tenant_id: Optional[str] = None,
                   appid_idp_custom_id: Optional[str] = None,
                   public_key: Optional[str] = None)
func NewAppidIdpCustom(ctx *Context, name string, args AppidIdpCustomArgs, opts ...ResourceOption) (*AppidIdpCustom, error)
public AppidIdpCustom(string name, AppidIdpCustomArgs args, CustomResourceOptions? opts = null)
public AppidIdpCustom(String name, AppidIdpCustomArgs args)
public AppidIdpCustom(String name, AppidIdpCustomArgs args, CustomResourceOptions options)
type: ibm:AppidIdpCustom
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppidIdpCustomArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppidIdpCustomArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppidIdpCustomArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppidIdpCustomArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppidIdpCustomArgs
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 appidIdpCustomResource = new Ibm.AppidIdpCustom("appidIdpCustomResource", new()
{
    IsActive = false,
    TenantId = "string",
    AppidIdpCustomId = "string",
    PublicKey = "string",
});
Copy
example, err := ibm.NewAppidIdpCustom(ctx, "appidIdpCustomResource", &ibm.AppidIdpCustomArgs{
IsActive: pulumi.Bool(false),
TenantId: pulumi.String("string"),
AppidIdpCustomId: pulumi.String("string"),
PublicKey: pulumi.String("string"),
})
Copy
var appidIdpCustomResource = new AppidIdpCustom("appidIdpCustomResource", AppidIdpCustomArgs.builder()
    .isActive(false)
    .tenantId("string")
    .appidIdpCustomId("string")
    .publicKey("string")
    .build());
Copy
appid_idp_custom_resource = ibm.AppidIdpCustom("appidIdpCustomResource",
    is_active=False,
    tenant_id="string",
    appid_idp_custom_id="string",
    public_key="string")
Copy
const appidIdpCustomResource = new ibm.AppidIdpCustom("appidIdpCustomResource", {
    isActive: false,
    tenantId: "string",
    appidIdpCustomId: "string",
    publicKey: "string",
});
Copy
type: ibm:AppidIdpCustom
properties:
    appidIdpCustomId: string
    isActive: false
    publicKey: string
    tenantId: string
Copy

AppidIdpCustom 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 AppidIdpCustom resource accepts the following input properties:

IsActive This property is required. bool
true if custom IDP integration should be enabled
TenantId This property is required. string
The AppID instance GUID
AppidIdpCustomId string
PublicKey string
The public key used to validate signed JWT
IsActive This property is required. bool
true if custom IDP integration should be enabled
TenantId This property is required. string
The AppID instance GUID
AppidIdpCustomId string
PublicKey string
The public key used to validate signed JWT
isActive This property is required. Boolean
true if custom IDP integration should be enabled
tenantId This property is required. String
The AppID instance GUID
appidIdpCustomId String
publicKey String
The public key used to validate signed JWT
isActive This property is required. boolean
true if custom IDP integration should be enabled
tenantId This property is required. string
The AppID instance GUID
appidIdpCustomId string
publicKey string
The public key used to validate signed JWT
is_active This property is required. bool
true if custom IDP integration should be enabled
tenant_id This property is required. str
The AppID instance GUID
appid_idp_custom_id str
public_key str
The public key used to validate signed JWT
isActive This property is required. Boolean
true if custom IDP integration should be enabled
tenantId This property is required. String
The AppID instance GUID
appidIdpCustomId String
publicKey String
The public key used to validate signed JWT

Outputs

All input properties are implicitly available as output properties. Additionally, the AppidIdpCustom 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 AppidIdpCustom Resource

Get an existing AppidIdpCustom 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?: AppidIdpCustomState, opts?: CustomResourceOptions): AppidIdpCustom
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        appid_idp_custom_id: Optional[str] = None,
        is_active: Optional[bool] = None,
        public_key: Optional[str] = None,
        tenant_id: Optional[str] = None) -> AppidIdpCustom
func GetAppidIdpCustom(ctx *Context, name string, id IDInput, state *AppidIdpCustomState, opts ...ResourceOption) (*AppidIdpCustom, error)
public static AppidIdpCustom Get(string name, Input<string> id, AppidIdpCustomState? state, CustomResourceOptions? opts = null)
public static AppidIdpCustom get(String name, Output<String> id, AppidIdpCustomState state, CustomResourceOptions options)
resources:  _:    type: ibm:AppidIdpCustom    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AppidIdpCustomId string
IsActive bool
true if custom IDP integration should be enabled
PublicKey string
The public key used to validate signed JWT
TenantId string
The AppID instance GUID
AppidIdpCustomId string
IsActive bool
true if custom IDP integration should be enabled
PublicKey string
The public key used to validate signed JWT
TenantId string
The AppID instance GUID
appidIdpCustomId String
isActive Boolean
true if custom IDP integration should be enabled
publicKey String
The public key used to validate signed JWT
tenantId String
The AppID instance GUID
appidIdpCustomId string
isActive boolean
true if custom IDP integration should be enabled
publicKey string
The public key used to validate signed JWT
tenantId string
The AppID instance GUID
appid_idp_custom_id str
is_active bool
true if custom IDP integration should be enabled
public_key str
The public key used to validate signed JWT
tenant_id str
The AppID instance GUID
appidIdpCustomId String
isActive Boolean
true if custom IDP integration should be enabled
publicKey String
The public key used to validate signed JWT
tenantId String
The AppID instance GUID

Import

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

Syntax

bash

$ pulumi import ibm:index/appidIdpCustom:AppidIdpCustom idp <tenant_id>
Copy

Example

bash

$ pulumi import ibm:index/appidIdpCustom:AppidIdpCustom idp 5fa344a8-d361-4bc2-9051-58ca253f4b2b
Copy

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.