Skip to content

feat(as): [116173103] add version number #2786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/2786.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
datasource/tencentcloud_as_scaling_configs: add `version_number`.
```
6 changes: 6 additions & 0 deletions tencentcloud/services/as/data_source_tc_as_scaling_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func DataSourceTencentCloudAsScalingConfigs() *schema.Resource {
Computed: true,
Description: "Policy of cloud disk type.",
},
"version_number": {
Type: schema.TypeInt,
Computed: true,
Description: "Version Number.",
},
},
},
},
Expand Down Expand Up @@ -216,6 +221,7 @@ func dataSourceTencentCloudAsScalingConfigRead(d *schema.ResourceData, meta inte
"status": *config.LaunchConfigurationStatus,
"create_time": *config.CreatedTime,
"disk_type_policy": *config.DiskTypePolicy,
"version_number": *config.VersionNumber,
}
if config.SystemDisk.DiskType != nil {
mapping["system_disk_type"] = *config.SystemDisk.DiskType
Expand Down
1 change: 1 addition & 0 deletions website/docs/d/as_scaling_configs.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ In addition to all arguments above, the following attributes are exported:
* `system_disk_size` - System disk size of the scaling configuration in GB.
* `system_disk_type` - System disk category of the scaling configuration.
* `user_data` - Base64-encoded User Data text.
* `version_number` - Version Number.


Loading