ibm.CdToolchain
Explore with Pulumi AI
Create, update, and delete cd_toolchains with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cdToolchainInstance = new ibm.CdToolchain("cdToolchainInstance", {
description: "A sample toolchain to test the API",
resourceGroupId: "6a9a01f2cff54a7f966f803d92877123",
tags: [
"tag1",
"tag2",
],
});
import pulumi
import pulumi_ibm as ibm
cd_toolchain_instance = ibm.CdToolchain("cdToolchainInstance",
description="A sample toolchain to test the API",
resource_group_id="6a9a01f2cff54a7f966f803d92877123",
tags=[
"tag1",
"tag2",
])
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.NewCdToolchain(ctx, "cdToolchainInstance", &ibm.CdToolchainArgs{
Description: pulumi.String("A sample toolchain to test the API"),
ResourceGroupId: pulumi.String("6a9a01f2cff54a7f966f803d92877123"),
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
},
})
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 cdToolchainInstance = new Ibm.CdToolchain("cdToolchainInstance", new()
{
Description = "A sample toolchain to test the API",
ResourceGroupId = "6a9a01f2cff54a7f966f803d92877123",
Tags = new[]
{
"tag1",
"tag2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CdToolchain;
import com.pulumi.ibm.CdToolchainArgs;
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 cdToolchainInstance = new CdToolchain("cdToolchainInstance", CdToolchainArgs.builder()
.description("A sample toolchain to test the API")
.resourceGroupId("6a9a01f2cff54a7f966f803d92877123")
.tags(
"tag1",
"tag2")
.build());
}
}
resources:
cdToolchainInstance:
type: ibm:CdToolchain
properties:
description: A sample toolchain to test the API
resourceGroupId: 6a9a01f2cff54a7f966f803d92877123
tags:
- tag1
- tag2
Create CdToolchain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdToolchain(name: string, args: CdToolchainArgs, opts?: CustomResourceOptions);
@overload
def CdToolchain(resource_name: str,
args: CdToolchainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdToolchain(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_id: Optional[str] = None,
cd_toolchain_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewCdToolchain(ctx *Context, name string, args CdToolchainArgs, opts ...ResourceOption) (*CdToolchain, error)
public CdToolchain(string name, CdToolchainArgs args, CustomResourceOptions? opts = null)
public CdToolchain(String name, CdToolchainArgs args)
public CdToolchain(String name, CdToolchainArgs args, CustomResourceOptions options)
type: ibm:CdToolchain
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 CdToolchainArgs
- 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 CdToolchainArgs
- 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 CdToolchainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdToolchainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdToolchainArgs
- 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 cdToolchainResource = new Ibm.CdToolchain("cdToolchainResource", new()
{
ResourceGroupId = "string",
CdToolchainId = "string",
Description = "string",
Name = "string",
Tags = new[]
{
"string",
},
});
example, err := ibm.NewCdToolchain(ctx, "cdToolchainResource", &ibm.CdToolchainArgs{
ResourceGroupId: pulumi.String("string"),
CdToolchainId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var cdToolchainResource = new CdToolchain("cdToolchainResource", CdToolchainArgs.builder()
.resourceGroupId("string")
.cdToolchainId("string")
.description("string")
.name("string")
.tags("string")
.build());
cd_toolchain_resource = ibm.CdToolchain("cdToolchainResource",
resource_group_id="string",
cd_toolchain_id="string",
description="string",
name="string",
tags=["string"])
const cdToolchainResource = new ibm.CdToolchain("cdToolchainResource", {
resourceGroupId: "string",
cdToolchainId: "string",
description: "string",
name: "string",
tags: ["string"],
});
type: ibm:CdToolchain
properties:
cdToolchainId: string
description: string
name: string
resourceGroupId: string
tags:
- string
CdToolchain 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 CdToolchain resource accepts the following input properties:
- Resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- Cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- Description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- Name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- List<string>
- Tags associated with the toolchain.
- Resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- Cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- Description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- Name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- []string
- Tags associated with the toolchain.
- resource
Group StringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- cd
Toolchain StringId - The unique identifier of the cd_toolchain.
- description String
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- name String
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- List<String>
- Tags associated with the toolchain.
- resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- string[]
- Tags associated with the toolchain.
- resource_
group_ strid - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- cd_
toolchain_ strid - The unique identifier of the cd_toolchain.
- description str
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- name str
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Sequence[str]
- Tags associated with the toolchain.
- resource
Group StringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- cd
Toolchain StringId - The unique identifier of the cd_toolchain.
- description String
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- name String
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- List<String>
- Tags associated with the toolchain.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdToolchain resource produces the following output properties:
- Account
Id string - (String) Account ID where toolchain can be found.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By string - (String) Identity that created the toolchain.
- Crn string
- (String) Toolchain CRN.
- Href string
- (String) URI that can be used to retrieve toolchain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- (String) Toolchain region.
- Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- Account
Id string - (String) Account ID where toolchain can be found.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By string - (String) Identity that created the toolchain.
- Crn string
- (String) Toolchain CRN.
- Href string
- (String) URI that can be used to retrieve toolchain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- (String) Toolchain region.
- Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- account
Id String - (String) Account ID where toolchain can be found.
- created
At String - (String) Toolchain creation timestamp.
- created
By String - (String) Identity that created the toolchain.
- crn String
- (String) Toolchain CRN.
- href String
- (String) URI that can be used to retrieve toolchain.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- (String) Toolchain region.
- ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At String - (String) Latest toolchain update timestamp.
- account
Id string - (String) Account ID where toolchain can be found.
- created
At string - (String) Toolchain creation timestamp.
- created
By string - (String) Identity that created the toolchain.
- crn string
- (String) Toolchain CRN.
- href string
- (String) URI that can be used to retrieve toolchain.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- (String) Toolchain region.
- ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- updated
At string - (String) Latest toolchain update timestamp.
- account_
id str - (String) Account ID where toolchain can be found.
- created_
at str - (String) Toolchain creation timestamp.
- created_
by str - (String) Identity that created the toolchain.
- crn str
- (String) Toolchain CRN.
- href str
- (String) URI that can be used to retrieve toolchain.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- (String) Toolchain region.
- ui_
href str - (String) URL of a user-facing user interface for this toolchain.
- updated_
at str - (String) Latest toolchain update timestamp.
- account
Id String - (String) Account ID where toolchain can be found.
- created
At String - (String) Toolchain creation timestamp.
- created
By String - (String) Identity that created the toolchain.
- crn String
- (String) Toolchain CRN.
- href String
- (String) URI that can be used to retrieve toolchain.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- (String) Toolchain region.
- ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At String - (String) Latest toolchain update timestamp.
Look up Existing CdToolchain Resource
Get an existing CdToolchain 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?: CdToolchainState, opts?: CustomResourceOptions): CdToolchain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cd_toolchain_id: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
crn: Optional[str] = None,
description: Optional[str] = None,
href: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
ui_href: Optional[str] = None,
updated_at: Optional[str] = None) -> CdToolchain
func GetCdToolchain(ctx *Context, name string, id IDInput, state *CdToolchainState, opts ...ResourceOption) (*CdToolchain, error)
public static CdToolchain Get(string name, Input<string> id, CdToolchainState? state, CustomResourceOptions? opts = null)
public static CdToolchain get(String name, Output<String> id, CdToolchainState state, CustomResourceOptions options)
resources: _: type: ibm:CdToolchain 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.
- Account
Id string - (String) Account ID where toolchain can be found.
- Cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By string - (String) Identity that created the toolchain.
- Crn string
- (String) Toolchain CRN.
- Description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- Href string
- (String) URI that can be used to retrieve toolchain.
- Location string
- (String) Toolchain region.
- Name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<string>
- Tags associated with the toolchain.
- Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- Account
Id string - (String) Account ID where toolchain can be found.
- Cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By string - (String) Identity that created the toolchain.
- Crn string
- (String) Toolchain CRN.
- Description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- Href string
- (String) URI that can be used to retrieve toolchain.
- Location string
- (String) Toolchain region.
- Name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- []string
- Tags associated with the toolchain.
- Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- account
Id String - (String) Account ID where toolchain can be found.
- cd
Toolchain StringId - The unique identifier of the cd_toolchain.
- created
At String - (String) Toolchain creation timestamp.
- created
By String - (String) Identity that created the toolchain.
- crn String
- (String) Toolchain CRN.
- description String
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- href String
- (String) URI that can be used to retrieve toolchain.
- location String
- (String) Toolchain region.
- name String
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group StringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<String>
- Tags associated with the toolchain.
- ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At String - (String) Latest toolchain update timestamp.
- account
Id string - (String) Account ID where toolchain can be found.
- cd
Toolchain stringId - The unique identifier of the cd_toolchain.
- created
At string - (String) Toolchain creation timestamp.
- created
By string - (String) Identity that created the toolchain.
- crn string
- (String) Toolchain CRN.
- description string
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- href string
- (String) URI that can be used to retrieve toolchain.
- location string
- (String) Toolchain region.
- name string
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group stringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- string[]
- Tags associated with the toolchain.
- ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- updated
At string - (String) Latest toolchain update timestamp.
- account_
id str - (String) Account ID where toolchain can be found.
- cd_
toolchain_ strid - The unique identifier of the cd_toolchain.
- created_
at str - (String) Toolchain creation timestamp.
- created_
by str - (String) Identity that created the toolchain.
- crn str
- (String) Toolchain CRN.
- description str
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- href str
- (String) URI that can be used to retrieve toolchain.
- location str
- (String) Toolchain region.
- name str
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource_
group_ strid - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- Sequence[str]
- Tags associated with the toolchain.
- ui_
href str - (String) URL of a user-facing user interface for this toolchain.
- updated_
at str - (String) Latest toolchain update timestamp.
- account
Id String - (String) Account ID where toolchain can be found.
- cd
Toolchain StringId - The unique identifier of the cd_toolchain.
- created
At String - (String) Toolchain creation timestamp.
- created
By String - (String) Identity that created the toolchain.
- crn String
- (String) Toolchain CRN.
- description String
- Describes the toolchain.
- Constraints: The maximum length is
500
characters. The minimum length is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- href String
- (String) URI that can be used to retrieve toolchain.
- location String
- (String) Toolchain region.
- name String
- Toolchain name.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group StringId - Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<String>
- Tags associated with the toolchain.
- ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At String - (String) Latest toolchain update timestamp.
Import
You can import the ibm_cd_toolchain
resource by using id
. Toolchain ID.
Syntax
$ pulumi import ibm:index/cdToolchain:CdToolchain cd_toolchain <id>
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.