1. Packages
  2. Ibm Provider
  3. API Docs
  4. PdrValidateApikey
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm logo
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud

    Updating the current API key details for the specified service instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const pdrValidateApikeyInstance = new ibm.PdrValidateApikey("pdr_validate_apikey_instance", {
        instanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        apiKey: "adsfsdfdfsadfda",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pdr_validate_apikey_instance = ibm.PdrValidateApikey("pdr_validate_apikey_instance",
        instance_id="crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        api_key="adsfsdfdfsadfda")
    
    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.NewPdrValidateApikey(ctx, "pdr_validate_apikey_instance", &ibm.PdrValidateApikeyArgs{
    			InstanceId: pulumi.String("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::"),
    			ApiKey:     pulumi.String("adsfsdfdfsadfda"),
    		})
    		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 pdrValidateApikeyInstance = new Ibm.PdrValidateApikey("pdr_validate_apikey_instance", new()
        {
            InstanceId = "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
            ApiKey = "adsfsdfdfsadfda",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PdrValidateApikey;
    import com.pulumi.ibm.PdrValidateApikeyArgs;
    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 pdrValidateApikeyInstance = new PdrValidateApikey("pdrValidateApikeyInstance", PdrValidateApikeyArgs.builder()
                .instanceId("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
                .apiKey("adsfsdfdfsadfda")
                .build());
    
        }
    }
    
    resources:
      pdrValidateApikeyInstance:
        type: ibm:PdrValidateApikey
        name: pdr_validate_apikey_instance
        properties:
          instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
          apiKey: adsfsdfdfsadfda
    

    Create PdrValidateApikey Resource

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

    Constructor syntax

    new PdrValidateApikey(name: string, args: PdrValidateApikeyArgs, opts?: CustomResourceOptions);
    @overload
    def PdrValidateApikey(resource_name: str,
                          args: PdrValidateApikeyArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PdrValidateApikey(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          api_key: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          accept_language: Optional[str] = None)
    func NewPdrValidateApikey(ctx *Context, name string, args PdrValidateApikeyArgs, opts ...ResourceOption) (*PdrValidateApikey, error)
    public PdrValidateApikey(string name, PdrValidateApikeyArgs args, CustomResourceOptions? opts = null)
    public PdrValidateApikey(String name, PdrValidateApikeyArgs args)
    public PdrValidateApikey(String name, PdrValidateApikeyArgs args, CustomResourceOptions options)
    
    type: ibm:PdrValidateApikey
    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 PdrValidateApikeyArgs
    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 PdrValidateApikeyArgs
    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 PdrValidateApikeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PdrValidateApikeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PdrValidateApikeyArgs
    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 pdrValidateApikeyResource = new Ibm.PdrValidateApikey("pdrValidateApikeyResource", new()
    {
        ApiKey = "string",
        InstanceId = "string",
        AcceptLanguage = "string",
    });
    
    example, err := ibm.NewPdrValidateApikey(ctx, "pdrValidateApikeyResource", &ibm.PdrValidateApikeyArgs{
    	ApiKey:         pulumi.String("string"),
    	InstanceId:     pulumi.String("string"),
    	AcceptLanguage: pulumi.String("string"),
    })
    
    var pdrValidateApikeyResource = new PdrValidateApikey("pdrValidateApikeyResource", PdrValidateApikeyArgs.builder()
        .apiKey("string")
        .instanceId("string")
        .acceptLanguage("string")
        .build());
    
    pdr_validate_apikey_resource = ibm.PdrValidateApikey("pdrValidateApikeyResource",
        api_key="string",
        instance_id="string",
        accept_language="string")
    
    const pdrValidateApikeyResource = new ibm.PdrValidateApikey("pdrValidateApikeyResource", {
        apiKey: "string",
        instanceId: "string",
        acceptLanguage: "string",
    });
    
    type: ibm:PdrValidateApikey
    properties:
        acceptLanguage: string
        apiKey: string
        instanceId: string
    

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

    ApiKey string
    The new API key value that will replace the existing one.
    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    ApiKey string
    The new API key value that will replace the existing one.
    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    apiKey String
    The new API key value that will replace the existing one.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.
    apiKey string
    The new API key value that will replace the existing one.
    instanceId string
    instance id of instance to provision.
    acceptLanguage string
    The language requested for the return document.
    api_key str
    The new API key value that will replace the existing one.
    instance_id str
    instance id of instance to provision.
    accept_language str
    The language requested for the return document.
    apiKey String
    The new API key value that will replace the existing one.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.

    Outputs

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

    Description string
    (String) Validation result message.
    Etag string
    ETag identifier for pdr_validate_apikey.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (String) Status of the API key.
    Description string
    (String) Validation result message.
    Etag string
    ETag identifier for pdr_validate_apikey.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (String) Status of the API key.
    description String
    (String) Validation result message.
    etag String
    ETag identifier for pdr_validate_apikey.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (String) Status of the API key.
    description string
    (String) Validation result message.
    etag string
    ETag identifier for pdr_validate_apikey.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (String) Status of the API key.
    description str
    (String) Validation result message.
    etag str
    ETag identifier for pdr_validate_apikey.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    (String) Status of the API key.
    description String
    (String) Validation result message.
    etag String
    ETag identifier for pdr_validate_apikey.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (String) Status of the API key.

    Look up Existing PdrValidateApikey Resource

    Get an existing PdrValidateApikey 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?: PdrValidateApikeyState, opts?: CustomResourceOptions): PdrValidateApikey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accept_language: Optional[str] = None,
            api_key: Optional[str] = None,
            description: Optional[str] = None,
            etag: Optional[str] = None,
            instance_id: Optional[str] = None,
            status: Optional[str] = None) -> PdrValidateApikey
    func GetPdrValidateApikey(ctx *Context, name string, id IDInput, state *PdrValidateApikeyState, opts ...ResourceOption) (*PdrValidateApikey, error)
    public static PdrValidateApikey Get(string name, Input<string> id, PdrValidateApikeyState? state, CustomResourceOptions? opts = null)
    public static PdrValidateApikey get(String name, Output<String> id, PdrValidateApikeyState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PdrValidateApikey    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:
    AcceptLanguage string
    The language requested for the return document.
    ApiKey string
    The new API key value that will replace the existing one.
    Description string
    (String) Validation result message.
    Etag string
    ETag identifier for pdr_validate_apikey.
    InstanceId string
    instance id of instance to provision.
    Status string
    (String) Status of the API key.
    AcceptLanguage string
    The language requested for the return document.
    ApiKey string
    The new API key value that will replace the existing one.
    Description string
    (String) Validation result message.
    Etag string
    ETag identifier for pdr_validate_apikey.
    InstanceId string
    instance id of instance to provision.
    Status string
    (String) Status of the API key.
    acceptLanguage String
    The language requested for the return document.
    apiKey String
    The new API key value that will replace the existing one.
    description String
    (String) Validation result message.
    etag String
    ETag identifier for pdr_validate_apikey.
    instanceId String
    instance id of instance to provision.
    status String
    (String) Status of the API key.
    acceptLanguage string
    The language requested for the return document.
    apiKey string
    The new API key value that will replace the existing one.
    description string
    (String) Validation result message.
    etag string
    ETag identifier for pdr_validate_apikey.
    instanceId string
    instance id of instance to provision.
    status string
    (String) Status of the API key.
    accept_language str
    The language requested for the return document.
    api_key str
    The new API key value that will replace the existing one.
    description str
    (String) Validation result message.
    etag str
    ETag identifier for pdr_validate_apikey.
    instance_id str
    instance id of instance to provision.
    status str
    (String) Status of the API key.
    acceptLanguage String
    The language requested for the return document.
    apiKey String
    The new API key value that will replace the existing one.
    description String
    (String) Validation result message.
    etag String
    ETag identifier for pdr_validate_apikey.
    instanceId String
    instance id of instance to provision.
    status String
    (String) Status of the API key.

    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.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate