Skip to content

Commit

Permalink
MscOpenSubscription: Improves the invoking MscOpenSubscription api me…
Browse files Browse the repository at this point in the history
…thod and supports refreshing credential automatically
  • Loading branch information
xiaozhu36 committed Nov 8, 2024
1 parent e41fbc5 commit e94f5d1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ description: |-
Provide a data source to send the verification message to the user.
---

# alicloud\_msc\_sub\_contact\_verification\_message
# alicloud_msc_sub_contact_verification_message


-> **NOTE:** Available in v1.156.0+.
-> **NOTE:** Available since v1.156.0.

## Example Usage

Expand Down
32 changes: 16 additions & 16 deletions website/docs/d/msc_sub_contacts.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ description: |-
Provides a list of Message Center Contacts to the user.
---

# alicloud\_msc\_sub\_contacts
# alicloud_msc_sub_contacts

This data source provides the Message Center Contacts of the current Alibaba Cloud user.

-> **NOTE:** Available in v1.132.0+.
-> **NOTE:** Available since v1.132.0.

## Example Usage

Expand Down Expand Up @@ -39,22 +39,22 @@ The following arguments are supported:
* `name_regex` - (Optional, ForceNew) A regex string to filter results by Contact name.
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).

## Argument Reference
## Attributes Reference

The following attributes are exported in addition to the arguments listed above:

* `names` - A list of Contact names.
* `contacts` - A list of Msc Sub Contacts. Each element contains the following attributes:
* `account_uid` - UID.
* `contact_id` - The first ID of the resource.
* `contact_name` - The User's Contact Name. **Note:** The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
* `email` - The User's Contact Email Address.
* `id` - The ID of the Contact.
* `is_account` - Indicates Whether the BGP Group Is the Account Itself.
* `is_obsolete` - Whether They Have Expired Or Not.
* `is_verified_email` - Email Validation for.
* `is_verified_mobile` - If the Phone Verification.
* `last_email_verification_time_stamp` - Last Verification Email Transmission Time.
* `last_mobile_verification_time_stamp` - The Pieces of Authentication SMS Sending Time.
* `mobile` - The User's Telephone.
* `position` - The User's Position. Valid values: `CEO`, `Technical Director`, `Maintenance Director`, `Project Director`,`Finance Director` and `Other`.
* `account_uid` - UID.
* `contact_id` - The first ID of the resource.
* `contact_name` - The User's Contact Name. **Note:** The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
* `email` - The User's Contact Email Address.
* `id` - The ID of the Contact.
* `is_account` - Indicates Whether the BGP Group Is the Account Itself.
* `is_obsolete` - Whether They Have Expired Or Not.
* `is_verified_email` - Email Validation for.
* `is_verified_mobile` - If the Phone Verification.
* `last_email_verification_time_stamp` - Last Verification Email Transmission Time.
* `last_mobile_verification_time_stamp` - The Pieces of Authentication SMS Sending Time.
* `mobile` - The User's Telephone.
* `position` - The User's Position. Valid values: `CEO`, `Technical Director`, `Maintenance Director`, `Project Director`,`Finance Director` and `Other`.
30 changes: 15 additions & 15 deletions website/docs/d/msc_sub_subscriptions.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ description: |-
Provides a list of Message Center Subscriptions to the user.
---

# alicloud\_msc\_sub\_subscriptions
# alicloud_msc_sub_subscriptions

This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.

-> **NOTE:** Available in v1.135.0+.
-> **NOTE:** Available since v1.135.0.

## Example Usage

Expand All @@ -31,20 +31,20 @@ The following arguments are supported:

* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).

## Argument Reference
## Attributes Reference

The following attributes are exported in addition to the arguments listed above:

* `subscriptions` - A list of Msc Sub Subscriptions. Each element contains the following attributes:
* `channel` - The channel the Subscription.
* `contact_ids` - The ids of subscribed contacts.
* `description` - The description of the Subscription.
* `email_status` - The status of email subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `id` - The ID of the Subscription.
* `item_id` - The ID of the Subscription.
* `item_name` - The name of the Subscription.
* `pmsg_status` - The status of pmsg subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `sms_status` - The status of sms subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `tts_status` - The status of tts subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `webhook_ids` - The ids of subscribed webhooks.
* `webhook_status` - The status of webhook subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `channel` - The channel the Subscription.
* `contact_ids` - The ids of subscribed contacts.
* `description` - The description of the Subscription.
* `email_status` - The status of email subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `id` - The ID of the Subscription.
* `item_id` - The ID of the Subscription.
* `item_name` - The name of the Subscription.
* `pmsg_status` - The status of pmsg subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `sms_status` - The status of sms subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `tts_status` - The status of tts subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
* `webhook_ids` - The ids of subscribed webhooks.
* `webhook_status` - The status of webhook subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed.
12 changes: 6 additions & 6 deletions website/docs/d/msc_sub_webhooks.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ description: |-
Provides a list of Msc Sub Webhooks to the user.
---

# alicloud\_msc\_sub\_webhooks
# alicloud_msc_sub_webhooks

This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.

-> **NOTE:** Available in v1.141.0+.
-> **NOTE:** Available since v1.141.0.

## Example Usage

Expand Down Expand Up @@ -48,7 +48,7 @@ The following attributes are exported in addition to the arguments listed above:

* `names` - A list of Webhook names.
* `webhooks` - A list of Msc Sub Webhooks. Each element contains the following attributes:
* `id` - The ID of the Webhook.
* `server_url` - The serverUrl of the Subscription.
* `webhook_id` - The first ID of the resource.
* `webhook_name` - The name of the Webhook. **Note:** The name must be `2` to `12` characters in length, and can contain uppercase and lowercase letters.
* `id` - The ID of the Webhook.
* `server_url` - The serverUrl of the Subscription.
* `webhook_id` - The first ID of the resource.
* `webhook_name` - The name of the Webhook. **Note:** The name must be `2` to `12` characters in length, and can contain uppercase and lowercase letters.

0 comments on commit e94f5d1

Please sign in to comment.