ibm.CisWebhook
Explore with Pulumi AI
Provides a IBM CIS Webhook. This resource is associated with an IBM Cloud Internet Services (CIS) instance and a CIS Domain resource. It allows to create, update, delete webhook of a CIS instance. For more information, see IBM Cloud Internet Services.
Create CisWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisWebhook(name: string, args: CisWebhookArgs, opts?: CustomResourceOptions);
@overload
def CisWebhook(resource_name: str,
args: CisWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
cis_id: Optional[str] = None,
cis_webhook_id: Optional[str] = None,
name: Optional[str] = None,
secret: Optional[str] = None,
url: Optional[str] = None)
func NewCisWebhook(ctx *Context, name string, args CisWebhookArgs, opts ...ResourceOption) (*CisWebhook, error)
public CisWebhook(string name, CisWebhookArgs args, CustomResourceOptions? opts = null)
public CisWebhook(String name, CisWebhookArgs args)
public CisWebhook(String name, CisWebhookArgs args, CustomResourceOptions options)
type: ibm:CisWebhook
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 CisWebhookArgs
- 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 CisWebhookArgs
- 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 CisWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisWebhookArgs
- 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 cisWebhookResource = new Ibm.CisWebhook("cisWebhookResource", new()
{
CisId = "string",
CisWebhookId = "string",
Name = "string",
Secret = "string",
Url = "string",
});
example, err := ibm.NewCisWebhook(ctx, "cisWebhookResource", &ibm.CisWebhookArgs{
CisId: pulumi.String("string"),
CisWebhookId: pulumi.String("string"),
Name: pulumi.String("string"),
Secret: pulumi.String("string"),
Url: pulumi.String("string"),
})
var cisWebhookResource = new CisWebhook("cisWebhookResource", CisWebhookArgs.builder()
.cisId("string")
.cisWebhookId("string")
.name("string")
.secret("string")
.url("string")
.build());
cis_webhook_resource = ibm.CisWebhook("cisWebhookResource",
cis_id="string",
cis_webhook_id="string",
name="string",
secret="string",
url="string")
const cisWebhookResource = new ibm.CisWebhook("cisWebhookResource", {
cisId: "string",
cisWebhookId: "string",
name: "string",
secret: "string",
url: "string",
});
type: ibm:CisWebhook
properties:
cisId: string
cisWebhookId: string
name: string
secret: string
url: string
CisWebhook 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 CisWebhook resource accepts the following input properties:
- Cis
Id string - The ID of the CIS service instance.
- Cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - Name string
- Name of the Webhook.
- Secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- Url string
- Webhook Url.
- Cis
Id string - The ID of the CIS service instance.
- Cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - Name string
- Name of the Webhook.
- Secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- Url string
- Webhook Url.
- cis
Id String - The ID of the CIS service instance.
- cis
Webhook StringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name String
- Name of the Webhook.
- secret String
- This is Sensitive and optional secret or API key needed to use the webhook.
- url String
- Webhook Url.
- cis
Id string - The ID of the CIS service instance.
- cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name string
- Name of the Webhook.
- secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- url string
- Webhook Url.
- cis_
id str - The ID of the CIS service instance.
- cis_
webhook_ strid - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name str
- Name of the Webhook.
- secret str
- This is Sensitive and optional secret or API key needed to use the webhook.
- url str
- Webhook Url.
- cis
Id String - The ID of the CIS service instance.
- cis
Webhook StringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name String
- Name of the Webhook.
- secret String
- This is Sensitive and optional secret or API key needed to use the webhook.
- url String
- Webhook Url.
Outputs
All input properties are implicitly available as output properties. Additionally, the CisWebhook resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- Webhook Type
- webhook_
id str - (String) Unique identifier for the Webhook.
Look up Existing CisWebhook Resource
Get an existing CisWebhook 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?: CisWebhookState, opts?: CustomResourceOptions): CisWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cis_id: Optional[str] = None,
cis_webhook_id: Optional[str] = None,
name: Optional[str] = None,
secret: Optional[str] = None,
type: Optional[str] = None,
url: Optional[str] = None,
webhook_id: Optional[str] = None) -> CisWebhook
func GetCisWebhook(ctx *Context, name string, id IDInput, state *CisWebhookState, opts ...ResourceOption) (*CisWebhook, error)
public static CisWebhook Get(string name, Input<string> id, CisWebhookState? state, CustomResourceOptions? opts = null)
public static CisWebhook get(String name, Output<String> id, CisWebhookState state, CustomResourceOptions options)
resources: _: type: ibm:CisWebhook 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 CIS service instance.
- Cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - Name string
- Name of the Webhook.
- Secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- Type string
- Webhook Type
- Url string
- Webhook Url.
- Webhook
Id string - (String) Unique identifier for the Webhook.
- Cis
Id string - The ID of the CIS service instance.
- Cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - Name string
- Name of the Webhook.
- Secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- Type string
- Webhook Type
- Url string
- Webhook Url.
- Webhook
Id string - (String) Unique identifier for the Webhook.
- cis
Id String - The ID of the CIS service instance.
- cis
Webhook StringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name String
- Name of the Webhook.
- secret String
- This is Sensitive and optional secret or API key needed to use the webhook.
- type String
- Webhook Type
- url String
- Webhook Url.
- webhook
Id String - (String) Unique identifier for the Webhook.
- cis
Id string - The ID of the CIS service instance.
- cis
Webhook stringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name string
- Name of the Webhook.
- secret string
- This is Sensitive and optional secret or API key needed to use the webhook.
- type string
- Webhook Type
- url string
- Webhook Url.
- webhook
Id string - (String) Unique identifier for the Webhook.
- cis_
id str - The ID of the CIS service instance.
- cis_
webhook_ strid - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name str
- Name of the Webhook.
- secret str
- This is Sensitive and optional secret or API key needed to use the webhook.
- type str
- Webhook Type
- url str
- Webhook Url.
- webhook_
id str - (String) Unique identifier for the Webhook.
- cis
Id String - The ID of the CIS service instance.
- cis
Webhook StringId - (String) The ID of webhook resource. It is a combination of <
webhook-id
>:<crn
> attributes concatenated with ":". - name String
- Name of the Webhook.
- secret String
- This is Sensitive and optional secret or API key needed to use the webhook.
- type String
- Webhook Type
- url String
- Webhook Url.
- webhook
Id String - (String) Unique identifier for the Webhook.
Import
The ibm_cis_webhook
resource can be imported using the id
. The ID is formed from the Webhook ID
and the CRN
(Cloud Resource Name) concatentated usinga :
character.
The CRN will be located on the Overview page of the Internet Services instance under the Domain heading of the UI, or via using the ibmcloud cis
CLI commands.
CRN is a 120 digit character string of the form:
crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
Webhook ID is a 32 digit character string of the form:
d72c91492cc24d8286fb713d406abe91
.
Syntax
$ pulumi import ibm:index/cisWebhook:CisWebhook myorg <webhook_id>:<crn>
Example
$ pulumi import ibm:index/cisWebhook:CisWebhook myorg
crn:v1:bluemix:public:internet-svcs-ci:global:a/01652b251c3ae2787110a995d8db0135:9054ad06-3485-421a-9300-fe3fb4b79e1d::
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.