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

ibm.IamServiceId

Explore with Pulumi AI

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

    Create, update, or delete an IAM service ID by using resource group and resource type. For more information, about IAM role action, see managing service ID API keys.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const serviceID = new ibm.IamServiceId("serviceID", {description: "New ServiceID"});
    
    import pulumi
    import pulumi_ibm as ibm
    
    service_id = ibm.IamServiceId("serviceID", description="New ServiceID")
    
    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.NewIamServiceId(ctx, "serviceID", &ibm.IamServiceIdArgs{
    			Description: pulumi.String("New ServiceID"),
    		})
    		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 serviceID = new Ibm.IamServiceId("serviceID", new()
        {
            Description = "New ServiceID",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IamServiceId;
    import com.pulumi.ibm.IamServiceIdArgs;
    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 serviceID = new IamServiceId("serviceID", IamServiceIdArgs.builder()
                .description("New ServiceID")
                .build());
    
        }
    }
    
    resources:
      serviceID:
        type: ibm:IamServiceId
        properties:
          description: New ServiceID
    

    Create IamServiceId Resource

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

    Constructor syntax

    new IamServiceId(name: string, args?: IamServiceIdArgs, opts?: CustomResourceOptions);
    @overload
    def IamServiceId(resource_name: str,
                     args: Optional[IamServiceIdArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamServiceId(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     iam_service_id_id: Optional[str] = None,
                     name: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None)
    func NewIamServiceId(ctx *Context, name string, args *IamServiceIdArgs, opts ...ResourceOption) (*IamServiceId, error)
    public IamServiceId(string name, IamServiceIdArgs? args = null, CustomResourceOptions? opts = null)
    public IamServiceId(String name, IamServiceIdArgs args)
    public IamServiceId(String name, IamServiceIdArgs args, CustomResourceOptions options)
    
    type: ibm:IamServiceId
    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 IamServiceIdArgs
    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 IamServiceIdArgs
    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 IamServiceIdArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamServiceIdArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamServiceIdArgs
    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 iamServiceIdResource = new Ibm.IamServiceId("iamServiceIdResource", new()
    {
        Description = "string",
        IamServiceIdId = "string",
        Name = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := ibm.NewIamServiceId(ctx, "iamServiceIdResource", &ibm.IamServiceIdArgs{
    	Description:    pulumi.String("string"),
    	IamServiceIdId: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var iamServiceIdResource = new IamServiceId("iamServiceIdResource", IamServiceIdArgs.builder()
        .description("string")
        .iamServiceIdId("string")
        .name("string")
        .tags("string")
        .build());
    
    iam_service_id_resource = ibm.IamServiceId("iamServiceIdResource",
        description="string",
        iam_service_id_id="string",
        name="string",
        tags=["string"])
    
    const iamServiceIdResource = new ibm.IamServiceId("iamServiceIdResource", {
        description: "string",
        iamServiceIdId: "string",
        name: "string",
        tags: ["string"],
    });
    
    type: ibm:IamServiceId
    properties:
        description: string
        iamServiceIdId: string
        name: string
        tags:
            - string
    

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

    Description string
    The description of the service ID.
    IamServiceIdId string
    (String) The unique identifier of the service ID.
    Name string
    The name of the service ID.
    Tags List<string>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    Description string
    The description of the service ID.
    IamServiceIdId string
    (String) The unique identifier of the service ID.
    Name string
    The name of the service ID.
    Tags []string
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    description String
    The description of the service ID.
    iamServiceIdId String
    (String) The unique identifier of the service ID.
    name String
    The name of the service ID.
    tags List<String>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    description string
    The description of the service ID.
    iamServiceIdId string
    (String) The unique identifier of the service ID.
    name string
    The name of the service ID.
    tags string[]
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    description str
    The description of the service ID.
    iam_service_id_id str
    (String) The unique identifier of the service ID.
    name str
    The name of the service ID.
    tags Sequence[str]
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    description String
    The description of the service ID.
    iamServiceIdId String
    (String) The unique identifier of the service ID.
    name String
    The name of the service ID.
    tags List<String>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.

    Outputs

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

    Crn string
    (String) The CRN of the service ID.
    IamId string
    (String) The IAM ID of the service ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locked bool
    (Bool) The Service Id lock status
    Version string
    (String) The version of the service ID.
    Crn string
    (String) The CRN of the service ID.
    IamId string
    (String) The IAM ID of the service ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locked bool
    (Bool) The Service Id lock status
    Version string
    (String) The version of the service ID.
    crn String
    (String) The CRN of the service ID.
    iamId String
    (String) The IAM ID of the service ID.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    (Bool) The Service Id lock status
    version String
    (String) The version of the service ID.
    crn string
    (String) The CRN of the service ID.
    iamId string
    (String) The IAM ID of the service ID.
    id string
    The provider-assigned unique ID for this managed resource.
    locked boolean
    (Bool) The Service Id lock status
    version string
    (String) The version of the service ID.
    crn str
    (String) The CRN of the service ID.
    iam_id str
    (String) The IAM ID of the service ID.
    id str
    The provider-assigned unique ID for this managed resource.
    locked bool
    (Bool) The Service Id lock status
    version str
    (String) The version of the service ID.
    crn String
    (String) The CRN of the service ID.
    iamId String
    (String) The IAM ID of the service ID.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    (Bool) The Service Id lock status
    version String
    (String) The version of the service ID.

    Look up Existing IamServiceId Resource

    Get an existing IamServiceId 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?: IamServiceIdState, opts?: CustomResourceOptions): IamServiceId
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            crn: Optional[str] = None,
            description: Optional[str] = None,
            iam_id: Optional[str] = None,
            iam_service_id_id: Optional[str] = None,
            locked: Optional[bool] = None,
            name: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            version: Optional[str] = None) -> IamServiceId
    func GetIamServiceId(ctx *Context, name string, id IDInput, state *IamServiceIdState, opts ...ResourceOption) (*IamServiceId, error)
    public static IamServiceId Get(string name, Input<string> id, IamServiceIdState? state, CustomResourceOptions? opts = null)
    public static IamServiceId get(String name, Output<String> id, IamServiceIdState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IamServiceId    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:
    Crn string
    (String) The CRN of the service ID.
    Description string
    The description of the service ID.
    IamId string
    (String) The IAM ID of the service ID.
    IamServiceIdId string
    (String) The unique identifier of the service ID.
    Locked bool
    (Bool) The Service Id lock status
    Name string
    The name of the service ID.
    Tags List<string>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    Version string
    (String) The version of the service ID.
    Crn string
    (String) The CRN of the service ID.
    Description string
    The description of the service ID.
    IamId string
    (String) The IAM ID of the service ID.
    IamServiceIdId string
    (String) The unique identifier of the service ID.
    Locked bool
    (Bool) The Service Id lock status
    Name string
    The name of the service ID.
    Tags []string
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    Version string
    (String) The version of the service ID.
    crn String
    (String) The CRN of the service ID.
    description String
    The description of the service ID.
    iamId String
    (String) The IAM ID of the service ID.
    iamServiceIdId String
    (String) The unique identifier of the service ID.
    locked Boolean
    (Bool) The Service Id lock status
    name String
    The name of the service ID.
    tags List<String>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    version String
    (String) The version of the service ID.
    crn string
    (String) The CRN of the service ID.
    description string
    The description of the service ID.
    iamId string
    (String) The IAM ID of the service ID.
    iamServiceIdId string
    (String) The unique identifier of the service ID.
    locked boolean
    (Bool) The Service Id lock status
    name string
    The name of the service ID.
    tags string[]
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    version string
    (String) The version of the service ID.
    crn str
    (String) The CRN of the service ID.
    description str
    The description of the service ID.
    iam_id str
    (String) The IAM ID of the service ID.
    iam_service_id_id str
    (String) The unique identifier of the service ID.
    locked bool
    (Bool) The Service Id lock status
    name str
    The name of the service ID.
    tags Sequence[str]
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    version str
    (String) The version of the service ID.
    crn String
    (String) The CRN of the service ID.
    description String
    The description of the service ID.
    iamId String
    (String) The IAM ID of the service ID.
    iamServiceIdId String
    (String) The unique identifier of the service ID.
    locked Boolean
    (Bool) The Service Id lock status
    name String
    The name of the service ID.
    tags List<String>
    A list of tags that you want to add to the service ID. Note The tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
    version String
    (String) The version of the service ID.

    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