ibm.CbrRule
Explore with Pulumi AI
Create, update, and delete cbr_rules with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cbrRuleInstance = new ibm.CbrRule("cbrRuleInstance", {
contexts: [{
attributes: [
{
name: "networkZoneId",
value: "559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e",
},
{
name: "mfa",
value: "LEVEL1",
},
{
name: "endpointType",
value: "private",
},
],
}],
description: "this is an example of rule with one context two zones",
enforcementMode: "enabled",
operations: {
apiTypes: [{
apiTypeId: "api_type_id",
}],
},
resources: [{
attributes: [
{
name: "accountId",
value: "12ab34cd56ef78ab90cd12ef34ab56cd",
},
{
name: "serviceName",
value: "network-policy-enabled",
},
],
tags: [{
name: "tag_name",
value: "tag_value",
}],
}],
});
import pulumi
import pulumi_ibm as ibm
cbr_rule_instance = ibm.CbrRule("cbrRuleInstance",
contexts=[{
"attributes": [
{
"name": "networkZoneId",
"value": "559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e",
},
{
"name": "mfa",
"value": "LEVEL1",
},
{
"name": "endpointType",
"value": "private",
},
],
}],
description="this is an example of rule with one context two zones",
enforcement_mode="enabled",
operations={
"api_types": [{
"api_type_id": "api_type_id",
}],
},
resources=[{
"attributes": [
{
"name": "accountId",
"value": "12ab34cd56ef78ab90cd12ef34ab56cd",
},
{
"name": "serviceName",
"value": "network-policy-enabled",
},
],
"tags": [{
"name": "tag_name",
"value": "tag_value",
}],
}])
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.NewCbrRule(ctx, "cbrRuleInstance", &ibm.CbrRuleArgs{
Contexts: ibm.CbrRuleContextArray{
&ibm.CbrRuleContextArgs{
Attributes: ibm.CbrRuleContextAttributeArray{
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("networkZoneId"),
Value: pulumi.String("559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e"),
},
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("mfa"),
Value: pulumi.String("LEVEL1"),
},
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("endpointType"),
Value: pulumi.String("private"),
},
},
},
},
Description: pulumi.String("this is an example of rule with one context two zones"),
EnforcementMode: pulumi.String("enabled"),
Operations: &ibm.CbrRuleOperationsArgs{
ApiTypes: ibm.CbrRuleOperationsApiTypeArray{
&ibm.CbrRuleOperationsApiTypeArgs{
ApiTypeId: pulumi.String("api_type_id"),
},
},
},
Resources: ibm.CbrRuleResourceArray{
&ibm.CbrRuleResourceArgs{
Attributes: ibm.CbrRuleResourceAttributeArray{
&ibm.CbrRuleResourceAttributeArgs{
Name: pulumi.String("accountId"),
Value: pulumi.String("12ab34cd56ef78ab90cd12ef34ab56cd"),
},
&ibm.CbrRuleResourceAttributeArgs{
Name: pulumi.String("serviceName"),
Value: pulumi.String("network-policy-enabled"),
},
},
Tags: ibm.CbrRuleResourceTagArray{
&ibm.CbrRuleResourceTagArgs{
Name: pulumi.String("tag_name"),
Value: pulumi.String("tag_value"),
},
},
},
},
})
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 cbrRuleInstance = new Ibm.CbrRule("cbrRuleInstance", new()
{
Contexts = new[]
{
new Ibm.Inputs.CbrRuleContextArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "networkZoneId",
Value = "559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e",
},
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "mfa",
Value = "LEVEL1",
},
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "endpointType",
Value = "private",
},
},
},
},
Description = "this is an example of rule with one context two zones",
EnforcementMode = "enabled",
Operations = new Ibm.Inputs.CbrRuleOperationsArgs
{
ApiTypes = new[]
{
new Ibm.Inputs.CbrRuleOperationsApiTypeArgs
{
ApiTypeId = "api_type_id",
},
},
},
Resources = new[]
{
new Ibm.Inputs.CbrRuleResourceArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleResourceAttributeArgs
{
Name = "accountId",
Value = "12ab34cd56ef78ab90cd12ef34ab56cd",
},
new Ibm.Inputs.CbrRuleResourceAttributeArgs
{
Name = "serviceName",
Value = "network-policy-enabled",
},
},
Tags = new[]
{
new Ibm.Inputs.CbrRuleResourceTagArgs
{
Name = "tag_name",
Value = "tag_value",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CbrRule;
import com.pulumi.ibm.CbrRuleArgs;
import com.pulumi.ibm.inputs.CbrRuleContextArgs;
import com.pulumi.ibm.inputs.CbrRuleOperationsArgs;
import com.pulumi.ibm.inputs.CbrRuleResourceArgs;
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 cbrRuleInstance = new CbrRule("cbrRuleInstance", CbrRuleArgs.builder()
.contexts(CbrRuleContextArgs.builder()
.attributes(
CbrRuleContextAttributeArgs.builder()
.name("networkZoneId")
.value("559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e")
.build(),
CbrRuleContextAttributeArgs.builder()
.name("mfa")
.value("LEVEL1")
.build(),
CbrRuleContextAttributeArgs.builder()
.name("endpointType")
.value("private")
.build())
.build())
.description("this is an example of rule with one context two zones")
.enforcementMode("enabled")
.operations(CbrRuleOperationsArgs.builder()
.apiTypes(CbrRuleOperationsApiTypeArgs.builder()
.apiTypeId("api_type_id")
.build())
.build())
.resources(CbrRuleResourceArgs.builder()
.attributes(
CbrRuleResourceAttributeArgs.builder()
.name("accountId")
.value("12ab34cd56ef78ab90cd12ef34ab56cd")
.build(),
CbrRuleResourceAttributeArgs.builder()
.name("serviceName")
.value("network-policy-enabled")
.build())
.tags(CbrRuleResourceTagArgs.builder()
.name("tag_name")
.value("tag_value")
.build())
.build())
.build());
}
}
resources:
cbrRuleInstance:
type: ibm:CbrRule
properties:
contexts:
- attributes:
- name: networkZoneId
value: 559052eb8f43302824e7ae490c0281eb, bf823d4f45b64ceaa4671bee0479346e
- name: mfa
value: LEVEL1
- name: endpointType
value: private
description: this is an example of rule with one context two zones
enforcementMode: enabled
operations:
apiTypes:
- apiTypeId: api_type_id
resources:
- attributes:
- name: accountId
value: 12ab34cd56ef78ab90cd12ef34ab56cd
- name: serviceName
value: network-policy-enabled
tags:
- name: tag_name
value: tag_value
To Create A Rule With Two Contexts
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cbrRuleInstance = new ibm.CbrRule("cbrRuleInstance", {
contexts: [
{
attributes: [
{
name: "networkZoneId",
value: "559052eb8f43302824e7ae490c0281eb",
},
{
name: "endpointType",
value: "private",
},
],
},
{
attributes: [
{
name: "networkZoneId",
value: "bf823d4f45b64ceaa4671bee0479346e",
},
{
name: "endpointType",
value: "public",
},
],
},
],
description: "this is an example of rule with two contexts",
enforcementMode: "enabled",
operations: {
apiTypes: [{
apiTypeId: "api_type_id",
}],
},
resources: [{
attributes: [
{
name: "accountId",
value: "12ab34cd56ef78ab90cd12ef34ab56cd",
},
{
name: "serviceName",
value: "network-policy-enabled",
},
],
tags: [{
name: "tag_name",
value: "tag_value",
}],
}],
});
import pulumi
import pulumi_ibm as ibm
cbr_rule_instance = ibm.CbrRule("cbrRuleInstance",
contexts=[
{
"attributes": [
{
"name": "networkZoneId",
"value": "559052eb8f43302824e7ae490c0281eb",
},
{
"name": "endpointType",
"value": "private",
},
],
},
{
"attributes": [
{
"name": "networkZoneId",
"value": "bf823d4f45b64ceaa4671bee0479346e",
},
{
"name": "endpointType",
"value": "public",
},
],
},
],
description="this is an example of rule with two contexts",
enforcement_mode="enabled",
operations={
"api_types": [{
"api_type_id": "api_type_id",
}],
},
resources=[{
"attributes": [
{
"name": "accountId",
"value": "12ab34cd56ef78ab90cd12ef34ab56cd",
},
{
"name": "serviceName",
"value": "network-policy-enabled",
},
],
"tags": [{
"name": "tag_name",
"value": "tag_value",
}],
}])
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.NewCbrRule(ctx, "cbrRuleInstance", &ibm.CbrRuleArgs{
Contexts: ibm.CbrRuleContextArray{
&ibm.CbrRuleContextArgs{
Attributes: ibm.CbrRuleContextAttributeArray{
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("networkZoneId"),
Value: pulumi.String("559052eb8f43302824e7ae490c0281eb"),
},
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("endpointType"),
Value: pulumi.String("private"),
},
},
},
&ibm.CbrRuleContextArgs{
Attributes: ibm.CbrRuleContextAttributeArray{
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("networkZoneId"),
Value: pulumi.String("bf823d4f45b64ceaa4671bee0479346e"),
},
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("endpointType"),
Value: pulumi.String("public"),
},
},
},
},
Description: pulumi.String("this is an example of rule with two contexts"),
EnforcementMode: pulumi.String("enabled"),
Operations: &ibm.CbrRuleOperationsArgs{
ApiTypes: ibm.CbrRuleOperationsApiTypeArray{
&ibm.CbrRuleOperationsApiTypeArgs{
ApiTypeId: pulumi.String("api_type_id"),
},
},
},
Resources: ibm.CbrRuleResourceArray{
&ibm.CbrRuleResourceArgs{
Attributes: ibm.CbrRuleResourceAttributeArray{
&ibm.CbrRuleResourceAttributeArgs{
Name: pulumi.String("accountId"),
Value: pulumi.String("12ab34cd56ef78ab90cd12ef34ab56cd"),
},
&ibm.CbrRuleResourceAttributeArgs{
Name: pulumi.String("serviceName"),
Value: pulumi.String("network-policy-enabled"),
},
},
Tags: ibm.CbrRuleResourceTagArray{
&ibm.CbrRuleResourceTagArgs{
Name: pulumi.String("tag_name"),
Value: pulumi.String("tag_value"),
},
},
},
},
})
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 cbrRuleInstance = new Ibm.CbrRule("cbrRuleInstance", new()
{
Contexts = new[]
{
new Ibm.Inputs.CbrRuleContextArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "networkZoneId",
Value = "559052eb8f43302824e7ae490c0281eb",
},
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "endpointType",
Value = "private",
},
},
},
new Ibm.Inputs.CbrRuleContextArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "networkZoneId",
Value = "bf823d4f45b64ceaa4671bee0479346e",
},
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "endpointType",
Value = "public",
},
},
},
},
Description = "this is an example of rule with two contexts",
EnforcementMode = "enabled",
Operations = new Ibm.Inputs.CbrRuleOperationsArgs
{
ApiTypes = new[]
{
new Ibm.Inputs.CbrRuleOperationsApiTypeArgs
{
ApiTypeId = "api_type_id",
},
},
},
Resources = new[]
{
new Ibm.Inputs.CbrRuleResourceArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleResourceAttributeArgs
{
Name = "accountId",
Value = "12ab34cd56ef78ab90cd12ef34ab56cd",
},
new Ibm.Inputs.CbrRuleResourceAttributeArgs
{
Name = "serviceName",
Value = "network-policy-enabled",
},
},
Tags = new[]
{
new Ibm.Inputs.CbrRuleResourceTagArgs
{
Name = "tag_name",
Value = "tag_value",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CbrRule;
import com.pulumi.ibm.CbrRuleArgs;
import com.pulumi.ibm.inputs.CbrRuleContextArgs;
import com.pulumi.ibm.inputs.CbrRuleOperationsArgs;
import com.pulumi.ibm.inputs.CbrRuleResourceArgs;
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 cbrRuleInstance = new CbrRule("cbrRuleInstance", CbrRuleArgs.builder()
.contexts(
CbrRuleContextArgs.builder()
.attributes(
CbrRuleContextAttributeArgs.builder()
.name("networkZoneId")
.value("559052eb8f43302824e7ae490c0281eb")
.build(),
CbrRuleContextAttributeArgs.builder()
.name("endpointType")
.value("private")
.build())
.build(),
CbrRuleContextArgs.builder()
.attributes(
CbrRuleContextAttributeArgs.builder()
.name("networkZoneId")
.value("bf823d4f45b64ceaa4671bee0479346e")
.build(),
CbrRuleContextAttributeArgs.builder()
.name("endpointType")
.value("public")
.build())
.build())
.description("this is an example of rule with two contexts")
.enforcementMode("enabled")
.operations(CbrRuleOperationsArgs.builder()
.apiTypes(CbrRuleOperationsApiTypeArgs.builder()
.apiTypeId("api_type_id")
.build())
.build())
.resources(CbrRuleResourceArgs.builder()
.attributes(
CbrRuleResourceAttributeArgs.builder()
.name("accountId")
.value("12ab34cd56ef78ab90cd12ef34ab56cd")
.build(),
CbrRuleResourceAttributeArgs.builder()
.name("serviceName")
.value("network-policy-enabled")
.build())
.tags(CbrRuleResourceTagArgs.builder()
.name("tag_name")
.value("tag_value")
.build())
.build())
.build());
}
}
resources:
cbrRuleInstance:
type: ibm:CbrRule
properties:
contexts:
- attributes:
- name: networkZoneId
value: 559052eb8f43302824e7ae490c0281eb
- name: endpointType
value: private
- attributes:
- name: networkZoneId
value: bf823d4f45b64ceaa4671bee0479346e
- name: endpointType
value: public
description: this is an example of rule with two contexts
enforcementMode: enabled
operations:
apiTypes:
- apiTypeId: api_type_id
resources:
- attributes:
- name: accountId
value: 12ab34cd56ef78ab90cd12ef34ab56cd
- name: serviceName
value: network-policy-enabled
tags:
- name: tag_name
value: tag_value
Create CbrRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CbrRule(name: string, args: CbrRuleArgs, opts?: CustomResourceOptions);
@overload
def CbrRule(resource_name: str,
args: CbrRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CbrRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
resources: Optional[Sequence[CbrRuleResourceArgs]] = None,
cbr_rule_id: Optional[str] = None,
contexts: Optional[Sequence[CbrRuleContextArgs]] = None,
description: Optional[str] = None,
enforcement_mode: Optional[str] = None,
operations: Optional[CbrRuleOperationsArgs] = None,
timeouts: Optional[CbrRuleTimeoutsArgs] = None,
transaction_id: Optional[str] = None,
x_correlation_id: Optional[str] = None)
func NewCbrRule(ctx *Context, name string, args CbrRuleArgs, opts ...ResourceOption) (*CbrRule, error)
public CbrRule(string name, CbrRuleArgs args, CustomResourceOptions? opts = null)
public CbrRule(String name, CbrRuleArgs args)
public CbrRule(String name, CbrRuleArgs args, CustomResourceOptions options)
type: ibm:CbrRule
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 CbrRuleArgs
- 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 CbrRuleArgs
- 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 CbrRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CbrRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CbrRuleArgs
- 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 cbrRuleResource = new Ibm.CbrRule("cbrRuleResource", new()
{
Resources = new[]
{
new Ibm.Inputs.CbrRuleResourceArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleResourceAttributeArgs
{
Name = "string",
Value = "string",
Operator = "string",
},
},
Tags = new[]
{
new Ibm.Inputs.CbrRuleResourceTagArgs
{
Name = "string",
Value = "string",
Operator = "string",
},
},
},
},
CbrRuleId = "string",
Contexts = new[]
{
new Ibm.Inputs.CbrRuleContextArgs
{
Attributes = new[]
{
new Ibm.Inputs.CbrRuleContextAttributeArgs
{
Name = "string",
Value = "string",
},
},
},
},
Description = "string",
EnforcementMode = "string",
Operations = new Ibm.Inputs.CbrRuleOperationsArgs
{
ApiTypes = new[]
{
new Ibm.Inputs.CbrRuleOperationsApiTypeArgs
{
ApiTypeId = "string",
Description = "string",
DisplayName = "string",
},
},
},
Timeouts = new Ibm.Inputs.CbrRuleTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
XCorrelationId = "string",
});
example, err := ibm.NewCbrRule(ctx, "cbrRuleResource", &ibm.CbrRuleArgs{
Resources: ibm.CbrRuleResourceArray{
&ibm.CbrRuleResourceArgs{
Attributes: ibm.CbrRuleResourceAttributeArray{
&ibm.CbrRuleResourceAttributeArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
Operator: pulumi.String("string"),
},
},
Tags: ibm.CbrRuleResourceTagArray{
&ibm.CbrRuleResourceTagArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
Operator: pulumi.String("string"),
},
},
},
},
CbrRuleId: pulumi.String("string"),
Contexts: ibm.CbrRuleContextArray{
&ibm.CbrRuleContextArgs{
Attributes: ibm.CbrRuleContextAttributeArray{
&ibm.CbrRuleContextAttributeArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
EnforcementMode: pulumi.String("string"),
Operations: &ibm.CbrRuleOperationsArgs{
ApiTypes: ibm.CbrRuleOperationsApiTypeArray{
&ibm.CbrRuleOperationsApiTypeArgs{
ApiTypeId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
},
},
Timeouts: &ibm.CbrRuleTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
XCorrelationId: pulumi.String("string"),
})
var cbrRuleResource = new CbrRule("cbrRuleResource", CbrRuleArgs.builder()
.resources(CbrRuleResourceArgs.builder()
.attributes(CbrRuleResourceAttributeArgs.builder()
.name("string")
.value("string")
.operator("string")
.build())
.tags(CbrRuleResourceTagArgs.builder()
.name("string")
.value("string")
.operator("string")
.build())
.build())
.cbrRuleId("string")
.contexts(CbrRuleContextArgs.builder()
.attributes(CbrRuleContextAttributeArgs.builder()
.name("string")
.value("string")
.build())
.build())
.description("string")
.enforcementMode("string")
.operations(CbrRuleOperationsArgs.builder()
.apiTypes(CbrRuleOperationsApiTypeArgs.builder()
.apiTypeId("string")
.description("string")
.displayName("string")
.build())
.build())
.timeouts(CbrRuleTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.xCorrelationId("string")
.build());
cbr_rule_resource = ibm.CbrRule("cbrRuleResource",
resources=[{
"attributes": [{
"name": "string",
"value": "string",
"operator": "string",
}],
"tags": [{
"name": "string",
"value": "string",
"operator": "string",
}],
}],
cbr_rule_id="string",
contexts=[{
"attributes": [{
"name": "string",
"value": "string",
}],
}],
description="string",
enforcement_mode="string",
operations={
"api_types": [{
"api_type_id": "string",
"description": "string",
"display_name": "string",
}],
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
x_correlation_id="string")
const cbrRuleResource = new ibm.CbrRule("cbrRuleResource", {
resources: [{
attributes: [{
name: "string",
value: "string",
operator: "string",
}],
tags: [{
name: "string",
value: "string",
operator: "string",
}],
}],
cbrRuleId: "string",
contexts: [{
attributes: [{
name: "string",
value: "string",
}],
}],
description: "string",
enforcementMode: "string",
operations: {
apiTypes: [{
apiTypeId: "string",
description: "string",
displayName: "string",
}],
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
xCorrelationId: "string",
});
type: ibm:CbrRule
properties:
cbrRuleId: string
contexts:
- attributes:
- name: string
value: string
description: string
enforcementMode: string
operations:
apiTypes:
- apiTypeId: string
description: string
displayName: string
resources:
- attributes:
- name: string
operator: string
value: string
tags:
- name: string
operator: string
value: string
timeouts:
create: string
delete: string
update: string
xCorrelationId: string
CbrRule 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 CbrRule resource accepts the following input properties:
- Resources
List<Cbr
Rule Resource> - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- Cbr
Rule stringId - The unique identifier of the cbr_rule.
- Contexts
List<Cbr
Rule Context> - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- Operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- Timeouts
Cbr
Rule Timeouts - Transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - XCorrelation
Id string - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- Resources
[]Cbr
Rule Resource Args - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- Cbr
Rule stringId - The unique identifier of the cbr_rule.
- Contexts
[]Cbr
Rule Context Args - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- Operations
Cbr
Rule Operations Args - The operations this rule applies to. Nested schema for operations:
- Timeouts
Cbr
Rule Timeouts Args - Transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - XCorrelation
Id string - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- resources
List<Cbr
Rule Resource> - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- cbr
Rule StringId - The unique identifier of the cbr_rule.
- contexts
List<Cbr
Rule Context> - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode String - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- timeouts
Cbr
Rule Timeouts - transaction
Id String - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation StringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- resources
Cbr
Rule Resource[] - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- cbr
Rule stringId - The unique identifier of the cbr_rule.
- contexts
Cbr
Rule Context[] - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- timeouts
Cbr
Rule Timeouts - transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation stringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- resources
Sequence[Cbr
Rule Resource Args] - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- cbr_
rule_ strid - The unique identifier of the cbr_rule.
- contexts
Sequence[Cbr
Rule Context Args] - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- description str
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement_
mode str - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- operations
Cbr
Rule Operations Args - The operations this rule applies to. Nested schema for operations:
- timeouts
Cbr
Rule Timeouts Args - transaction_
id str - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x_
correlation_ strid - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- resources List<Property Map>
- The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- cbr
Rule StringId - The unique identifier of the cbr_rule.
- contexts List<Property Map>
- The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode String - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- operations Property Map
- The operations this rule applies to. Nested schema for operations:
- timeouts Property Map
- transaction
Id String - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation StringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
Outputs
All input properties are implicitly available as output properties. Additionally, the CbrRule resource produces the following output properties:
- Created
At string - (String) The time the resource was created.
- Created
By stringId - (String) IAM ID of the user or service which created the resource.
- Crn string
- (String) The rule CRN.
- Etag string
- ETag identifier for cbr_rule.
- Href string
- (String) The href link to the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - (String) The last time the resource was modified.
- Last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- Created
At string - (String) The time the resource was created.
- Created
By stringId - (String) IAM ID of the user or service which created the resource.
- Crn string
- (String) The rule CRN.
- Etag string
- ETag identifier for cbr_rule.
- Href string
- (String) The href link to the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - (String) The last time the resource was modified.
- Last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- created
At String - (String) The time the resource was created.
- created
By StringId - (String) IAM ID of the user or service which created the resource.
- crn String
- (String) The rule CRN.
- etag String
- ETag identifier for cbr_rule.
- href String
- (String) The href link to the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - (String) The last time the resource was modified.
- last
Modified StringBy Id - (String) IAM ID of the user or service which modified the resource.
- created
At string - (String) The time the resource was created.
- created
By stringId - (String) IAM ID of the user or service which created the resource.
- crn string
- (String) The rule CRN.
- etag string
- ETag identifier for cbr_rule.
- href string
- (String) The href link to the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringAt - (String) The last time the resource was modified.
- last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- created_
at str - (String) The time the resource was created.
- created_
by_ strid - (String) IAM ID of the user or service which created the resource.
- crn str
- (String) The rule CRN.
- etag str
- ETag identifier for cbr_rule.
- href str
- (String) The href link to the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strat - (String) The last time the resource was modified.
- last_
modified_ strby_ id - (String) IAM ID of the user or service which modified the resource.
- created
At String - (String) The time the resource was created.
- created
By StringId - (String) IAM ID of the user or service which created the resource.
- crn String
- (String) The rule CRN.
- etag String
- ETag identifier for cbr_rule.
- href String
- (String) The href link to the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - (String) The last time the resource was modified.
- last
Modified StringBy Id - (String) IAM ID of the user or service which modified the resource.
Look up Existing CbrRule Resource
Get an existing CbrRule 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?: CbrRuleState, opts?: CustomResourceOptions): CbrRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cbr_rule_id: Optional[str] = None,
contexts: Optional[Sequence[CbrRuleContextArgs]] = None,
created_at: Optional[str] = None,
created_by_id: Optional[str] = None,
crn: Optional[str] = None,
description: Optional[str] = None,
enforcement_mode: Optional[str] = None,
etag: Optional[str] = None,
href: Optional[str] = None,
last_modified_at: Optional[str] = None,
last_modified_by_id: Optional[str] = None,
operations: Optional[CbrRuleOperationsArgs] = None,
resources: Optional[Sequence[CbrRuleResourceArgs]] = None,
timeouts: Optional[CbrRuleTimeoutsArgs] = None,
transaction_id: Optional[str] = None,
x_correlation_id: Optional[str] = None) -> CbrRule
func GetCbrRule(ctx *Context, name string, id IDInput, state *CbrRuleState, opts ...ResourceOption) (*CbrRule, error)
public static CbrRule Get(string name, Input<string> id, CbrRuleState? state, CustomResourceOptions? opts = null)
public static CbrRule get(String name, Output<String> id, CbrRuleState state, CustomResourceOptions options)
resources: _: type: ibm:CbrRule 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.
- Cbr
Rule stringId - The unique identifier of the cbr_rule.
- Contexts
List<Cbr
Rule Context> - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- Created
At string - (String) The time the resource was created.
- Created
By stringId - (String) IAM ID of the user or service which created the resource.
- Crn string
- (String) The rule CRN.
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- Etag string
- ETag identifier for cbr_rule.
- Href string
- (String) The href link to the resource.
- Last
Modified stringAt - (String) The last time the resource was modified.
- Last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- Operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- Resources
List<Cbr
Rule Resource> - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- Timeouts
Cbr
Rule Timeouts - Transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - XCorrelation
Id string - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- Cbr
Rule stringId - The unique identifier of the cbr_rule.
- Contexts
[]Cbr
Rule Context Args - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- Created
At string - (String) The time the resource was created.
- Created
By stringId - (String) IAM ID of the user or service which created the resource.
- Crn string
- (String) The rule CRN.
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- Etag string
- ETag identifier for cbr_rule.
- Href string
- (String) The href link to the resource.
- Last
Modified stringAt - (String) The last time the resource was modified.
- Last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- Operations
Cbr
Rule Operations Args - The operations this rule applies to. Nested schema for operations:
- Resources
[]Cbr
Rule Resource Args - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- Timeouts
Cbr
Rule Timeouts Args - Transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - XCorrelation
Id string - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- cbr
Rule StringId - The unique identifier of the cbr_rule.
- contexts
List<Cbr
Rule Context> - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- created
At String - (String) The time the resource was created.
- created
By StringId - (String) IAM ID of the user or service which created the resource.
- crn String
- (String) The rule CRN.
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode String - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- etag String
- ETag identifier for cbr_rule.
- href String
- (String) The href link to the resource.
- last
Modified StringAt - (String) The last time the resource was modified.
- last
Modified StringBy Id - (String) IAM ID of the user or service which modified the resource.
- operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- resources
List<Cbr
Rule Resource> - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- timeouts
Cbr
Rule Timeouts - transaction
Id String - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation StringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- cbr
Rule stringId - The unique identifier of the cbr_rule.
- contexts
Cbr
Rule Context[] - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- created
At string - (String) The time the resource was created.
- created
By stringId - (String) IAM ID of the user or service which created the resource.
- crn string
- (String) The rule CRN.
- description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode string - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- etag string
- ETag identifier for cbr_rule.
- href string
- (String) The href link to the resource.
- last
Modified stringAt - (String) The last time the resource was modified.
- last
Modified stringBy Id - (String) IAM ID of the user or service which modified the resource.
- operations
Cbr
Rule Operations - The operations this rule applies to. Nested schema for operations:
- resources
Cbr
Rule Resource[] - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- timeouts
Cbr
Rule Timeouts - transaction
Id string - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation stringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- cbr_
rule_ strid - The unique identifier of the cbr_rule.
- contexts
Sequence[Cbr
Rule Context Args] - The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- created_
at str - (String) The time the resource was created.
- created_
by_ strid - (String) IAM ID of the user or service which created the resource.
- crn str
- (String) The rule CRN.
- description str
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement_
mode str - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- etag str
- ETag identifier for cbr_rule.
- href str
- (String) The href link to the resource.
- last_
modified_ strat - (String) The last time the resource was modified.
- last_
modified_ strby_ id - (String) IAM ID of the user or service which modified the resource.
- operations
Cbr
Rule Operations Args - The operations this rule applies to. Nested schema for operations:
- resources
Sequence[Cbr
Rule Resource Args] - The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- timeouts
Cbr
Rule Timeouts Args - transaction_
id str - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x_
correlation_ strid - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
- cbr
Rule StringId - The unique identifier of the cbr_rule.
- contexts List<Property Map>
- The contexts this rule applies to.
- Constraints: The maximum length is
1000
items. The minimum length is0
items. Nested schema for contexts:
- Constraints: The maximum length is
- created
At String - (String) The time the resource was created.
- created
By StringId - (String) IAM ID of the user or service which created the resource.
- crn String
- (String) The rule CRN.
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- enforcement
Mode String - The rule enforcement mode: *
enabled
- The restrictions are enforced and reported. This is the default. *disabled
- The restrictions are disabled. Nothing is enforced or reported. *report
- The restrictions are evaluated and reported, but not enforced.- Constraints: The default value is
enabled
. Allowable values are:enabled
,disabled
,report
.
- Constraints: The default value is
- etag String
- ETag identifier for cbr_rule.
- href String
- (String) The href link to the resource.
- last
Modified StringAt - (String) The last time the resource was modified.
- last
Modified StringBy Id - (String) IAM ID of the user or service which modified the resource.
- operations Property Map
- The operations this rule applies to. Nested schema for operations:
- resources List<Property Map>
- The resources this rule apply to.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested schema for resources:
- Constraints: The maximum length is
- timeouts Property Map
- transaction
Id String - The
Transaction-Id
header behaves as theX-Correlation-Id
header. It is supported for backward compatibility with other IBM platform services that support theTransaction-Id
header only. If bothX-Correlation-Id
andTransaction-Id
are provided,X-Correlation-Id
has the precedence overTransaction-Id
. - x
Correlation StringId - The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests and retries of those requests. If a value of this headers is not supplied in a request, the service generates a random (version 4) UUID.
Supporting Types
CbrRuleContext, CbrRuleContextArgs
- Attributes
List<Cbr
Rule Context Attribute> - The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- Attributes
[]Cbr
Rule Context Attribute - The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- attributes
List<Cbr
Rule Context Attribute> - The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- attributes
Cbr
Rule Context Attribute[] - The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- attributes
Sequence[Cbr
Rule Context Attribute] - The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- attributes List<Property Map>
- The attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
CbrRuleContextAttribute, CbrRuleContextAttributeArgs
- Name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- Name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- name String
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- value String
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- name str
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- value str
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- name String
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- value String
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
CbrRuleOperations, CbrRuleOperationsArgs
- Api
Types List<CbrRule Operations Api Type> - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
- Api
Types []CbrRule Operations Api Type - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
- api
Types List<CbrRule Operations Api Type> - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
- api
Types CbrRule Operations Api Type[] - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
- api_
types Sequence[CbrRule Operations Api Type] - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
- api
Types List<Property Map> - The API types this rule applies to.
- Constraints: The maximum length is
100
items. The minimum length is1
item. Nested schema for api_types:
- Constraints: The maximum length is
CbrRuleOperationsApiType, CbrRuleOperationsApiTypeArgs
- Api
Type stringId - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Display
Name string
- Api
Type stringId - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- Description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- Display
Name string
- api
Type StringId - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- display
Name String
- api
Type stringId - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- description string
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- display
Name string
- api_
type_ strid - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- description str
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- display_
name str
- api
Type StringId - Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\-:]+$/
.
- Constraints: The maximum length is
- description String
- The description of the rule.
- Constraints: The maximum length is
300
characters. The minimum length is0
characters. The value must match regular expression/^[\x20-\xFE]*$/
.
- Constraints: The maximum length is
- display
Name String
CbrRuleResource, CbrRuleResourceArgs
- Attributes
List<Cbr
Rule Resource Attribute> - The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- List<Cbr
Rule Resource Tag> - The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
- Attributes
[]Cbr
Rule Resource Attribute - The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- []Cbr
Rule Resource Tag - The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
- attributes
List<Cbr
Rule Resource Attribute> - The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- List<Cbr
Rule Resource Tag> - The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
- attributes
Cbr
Rule Resource Attribute[] - The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- Cbr
Rule Resource Tag[] - The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
- attributes
Sequence[Cbr
Rule Resource Attribute] - The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- Sequence[Cbr
Rule Resource Tag] - The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
- attributes List<Property Map>
- The resource attributes.
- Constraints: The minimum length is
1
item. Nested schema for attributes:
- Constraints: The minimum length is
- List<Property Map>
- The optional resource tags.
- Constraints: The maximum length is
10
items. The minimum length is1
item. Nested schema for tags:
- Constraints: The maximum length is
CbrRuleResourceAttribute, CbrRuleResourceAttributeArgs
- Name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- Value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- Operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- Value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- Operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- value String
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- operator String
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name string
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- value string
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name str
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- value str
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- operator str
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The attribute name.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_]+$/
.
- Constraints: The maximum length is
- value String
- The attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[\S\s]+$/
.
- Constraints: The maximum length is
- operator String
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
CbrRuleResourceTag, CbrRuleResourceTagArgs
- Name string
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- Value string
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- Operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- Value string
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- Operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- value String
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- operator String
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name string
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- value string
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- operator string
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name str
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- value str
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- operator str
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The tag attribute name.
- Constraints: The maximum length is
128
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _.-]+$/
.
- Constraints: The maximum length is
- value String
- The tag attribute value.
- Constraints: The maximum length is
1000
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9 _*?.-]+$/
.
- Constraints: The maximum length is
- operator String
- The attribute operator.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
CbrRuleTimeouts, CbrRuleTimeoutsArgs
Import
You can import the ibm_cbr_rule
resource by using id
. The globally unique ID of the rule.
Syntax
```sh $ pulumi import ibm:index/cbrRule:CbrRule cbr_rule <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.