ibm.CisRouting
Explore with Pulumi AI
Provides an IBM Cloud Internet Services (CIS) routing resource. This resource is associated with an IBM CIS instance and a CIS domain resource. It allows to change routing of a domain of an CIS instance. For more information, about CIS routing, see routing concepts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
// Change Routing of the domain
const routing = new ibm.CisRouting("routing", {
cisId: data.ibm_cis.cis.id,
domainId: data.ibm_cis_domain.cis_domain.domain_id,
smartRouting: "on",
});
import pulumi
import pulumi_ibm as ibm
# Change Routing of the domain
routing = ibm.CisRouting("routing",
cis_id=data["ibm_cis"]["cis"]["id"],
domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"],
smart_routing="on")
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 {
// Change Routing of the domain
_, err := ibm.NewCisRouting(ctx, "routing", &ibm.CisRoutingArgs{
CisId: pulumi.Any(data.Ibm_cis.Cis.Id),
DomainId: pulumi.Any(data.Ibm_cis_domain.Cis_domain.Domain_id),
SmartRouting: pulumi.String("on"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
// Change Routing of the domain
var routing = new Ibm.CisRouting("routing", new()
{
CisId = data.Ibm_cis.Cis.Id,
DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
SmartRouting = "on",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CisRouting;
import com.pulumi.ibm.CisRoutingArgs;
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) {
// Change Routing of the domain
var routing = new CisRouting("routing", CisRoutingArgs.builder()
.cisId(data.ibm_cis().cis().id())
.domainId(data.ibm_cis_domain().cis_domain().domain_id())
.smartRouting("on")
.build());
}
}
resources:
# Change Routing of the domain
routing:
type: ibm:CisRouting
properties:
cisId: ${data.ibm_cis.cis.id}
domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
smartRouting: on
Create CisRouting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisRouting(name: string, args: CisRoutingArgs, opts?: CustomResourceOptions);
@overload
def CisRouting(resource_name: str,
args: CisRoutingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisRouting(resource_name: str,
opts: Optional[ResourceOptions] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
cis_routing_id: Optional[str] = None,
smart_routing: Optional[str] = None)
func NewCisRouting(ctx *Context, name string, args CisRoutingArgs, opts ...ResourceOption) (*CisRouting, error)
public CisRouting(string name, CisRoutingArgs args, CustomResourceOptions? opts = null)
public CisRouting(String name, CisRoutingArgs args)
public CisRouting(String name, CisRoutingArgs args, CustomResourceOptions options)
type: ibm:CisRouting
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 CisRoutingArgs
- 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 CisRoutingArgs
- 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 CisRoutingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisRoutingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisRoutingArgs
- 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 cisRoutingResource = new Ibm.CisRouting("cisRoutingResource", new()
{
CisId = "string",
DomainId = "string",
CisRoutingId = "string",
SmartRouting = "string",
});
example, err := ibm.NewCisRouting(ctx, "cisRoutingResource", &ibm.CisRoutingArgs{
CisId: pulumi.String("string"),
DomainId: pulumi.String("string"),
CisRoutingId: pulumi.String("string"),
SmartRouting: pulumi.String("string"),
})
var cisRoutingResource = new CisRouting("cisRoutingResource", CisRoutingArgs.builder()
.cisId("string")
.domainId("string")
.cisRoutingId("string")
.smartRouting("string")
.build());
cis_routing_resource = ibm.CisRouting("cisRoutingResource",
cis_id="string",
domain_id="string",
cis_routing_id="string",
smart_routing="string")
const cisRoutingResource = new ibm.CisRouting("cisRoutingResource", {
cisId: "string",
domainId: "string",
cisRoutingId: "string",
smartRouting: "string",
});
type: ibm:CisRouting
properties:
cisId: string
cisRoutingId: string
domainId: string
smartRouting: string
CisRouting 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 CisRouting resource accepts the following input properties:
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain where you want to change routing.
- Cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - Smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain where you want to change routing.
- Cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - Smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain where you want to change routing.
- cis
Routing StringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - smart
Routing String The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- domain
Id string - The ID of the domain where you want to change routing.
- cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- domain_
id str - The ID of the domain where you want to change routing.
- cis_
routing_ strid - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - smart_
routing str The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain where you want to change routing.
- cis
Routing StringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - smart
Routing String The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
Outputs
All input properties are implicitly available as output properties. Additionally, the CisRouting 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 CisRouting Resource
Get an existing CisRouting 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?: CisRoutingState, opts?: CustomResourceOptions): CisRouting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cis_id: Optional[str] = None,
cis_routing_id: Optional[str] = None,
domain_id: Optional[str] = None,
smart_routing: Optional[str] = None) -> CisRouting
func GetCisRouting(ctx *Context, name string, id IDInput, state *CisRoutingState, opts ...ResourceOption) (*CisRouting, error)
public static CisRouting Get(string name, Input<string> id, CisRoutingState? state, CustomResourceOptions? opts = null)
public static CisRouting get(String name, Output<String> id, CisRoutingState state, CustomResourceOptions options)
resources: _: type: ibm:CisRouting 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.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - Domain
Id string - The ID of the domain where you want to change routing.
- Smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - Domain
Id string - The ID of the domain where you want to change routing.
- Smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Routing StringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - domain
Id String - The ID of the domain where you want to change routing.
- smart
Routing String The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- cis
Routing stringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - domain
Id string - The ID of the domain where you want to change routing.
- smart
Routing string The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- cis_
routing_ strid - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - domain_
id str - The ID of the domain where you want to change routing.
- smart_
routing str The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Routing StringId - (String) The record ID. It is a combination of
<domain_id>,<cis_id>
attributes concatenated with:
. - domain
Id String - The ID of the domain where you want to change routing.
- smart
Routing String The smart routing to set enable or disable. Valid values are
on
andoff
.Note
tiered_caching
is not supported in this provider version.
Import
The ibm_cis_routing
resource can be imported using the ID. The ID is formed from the domain ID of the domain and the CRN concatenated using a :
character.
The domain ID and CRN will be located on the overview page of the IBM Cloud Internet Services instance of the console domain heading, or by using the ibmcloud cis
command line commands.
Domain ID is a 32 digit character string of the form:
9caf68812ae9b3f0377fdf986751a78f
CRN is a 120 digit character string of the form:
crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
Syntax
$ pulumi import ibm:index/cisRouting:CisRouting routing <domain-id>:<crn>
Example
$ pulumi import ibm:index/cisRouting:CisRouting routing 9caf68812ae9b3f0377fdf986751a78f:crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
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.