Importing and Exporting Assets
SecMaster allows you to import assets outside the cloud. After the import, the security status of the assets can be displayed. You can also export asset information.
This section describes how to import and export assets.
Limitations and Constraints
Only .xlsx files no larger than 20 MB can be imported.
Importing Assets
- Log in to the management console.
- Click in the upper left corner of the page and choose .
- In the navigation pane, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
Figure 1 Management
- In the navigation pane on the left, choose Resource Manager > Resource Manager.
Figure 2 Resource Manager
- On the Resource Manager page, click a tab corresponding to the type of the resources you want to import.
- In the upper left corner of the asset list, click Import.
- In the Import dialog box, click Download Template. Then, fill information about the resource to be imported in the template.
- For details about how to enter the information, see Asset Import Template Parameters.
- The file must be in the .xlsx format.
- After the template is filled, click Select File in the Import dialog box and select the Excel file you want to import.
- Click OK.
Asset Import Template Parameters
You can use a template to import assets in batches. For details about the parameters in the asset import template, view the following tables:
Do not modify the table heads when you use the template.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
id |
String |
Yes |
Asset ID, which contains 2 to 36 characters. |
name |
String |
Yes |
Asset name, which contains 2 to 512 characters. |
protected_status |
String |
No |
Whether HSS is enabled
|
description |
String |
No |
ECS description |
status |
String |
No |
ECS status The value can be any of the following: ACTIVE, BUILD, ERROR, HARD_REBOOT, MIGRATING, REBOOT, REBUILD, RESIZE, REVERT_RESIZE, SHUTOFF, VERIFY_RESIZE, DELETED. |
host_id |
String |
No |
ID of the server where the ECS is deployed. |
host_name |
String |
No |
Name of the server where the ECS is deployed. |
host_status |
String |
No |
Status of the server where the ECS is deployed. The value can be any of the following:
|
version |
String |
No |
IP address version
|
addr |
String |
No |
IP address |
type |
String |
No |
IP address type fixed: private IP address floating: floating IP address |
mac_addr |
String |
No |
MAC address |
port_id |
String |
No |
ID of the port bound to the IP address |
vpc_id |
String |
No |
ID of the VPC to which the ECS belongs |
image_type |
String |
No |
Image class. The following classes are supported:
|
image_name |
String |
No |
Image name of the ECS |
os_type |
String |
No |
OS type. The value can be Linux or Windows. |
os_bit |
String |
No |
OS architecture, 32 bit or 64 bit. |
resource_spec_code |
String |
No |
Resource specifications of the ECS |
vendor_type |
String |
Yes |
Environment supplier |
domain_id |
String |
Yes |
ID of the tenant to which the asset belongs. |
region_id |
String |
Yes |
Asset region. |
project_id |
String |
Yes |
ID of the project to which the asset belongs. |
ep_id |
String |
No |
ID of the enterprise project to which the asset belongs. |
ep_name |
String |
No |
Name of the enterprise project to which the asset belongs. |
vendor_name |
String |
Yes |
Asset probes or asset providers |
idc_id |
String |
Yes |
ID of the on-premises equipment room |
idc_name |
String |
Yes |
Name of the on-premises equipment room |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
value |
String |
Yes |
Website name |
domain_name |
String |
Yes |
Domain name |
name_server |
String |
No |
DNS servers. Use commas (,) to separate IP addresses, for example, 192.168.25.106,192.168.25.124. |
protected_status |
String |
No |
Whether WAF is enabled.
If this parameter left blank, the default value CLOSE will be used. |
idc_id |
String |
Yes |
ID of the on-premises data center |
idc_name |
String |
Yes |
Name of the on-premises data center |
vendor_name |
String |
Yes |
Asset provider |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
id |
String |
Yes |
Instance ID |
name |
String |
Yes |
Instance name |
status |
String |
Yes |
Instance status. The value can be any of the following:
|
private_ips |
String |
Yes |
Private IP addresses. Use commas (,) to separate IP addresses, for example, 192.168.25.106,192.168.25.124. |
port |
Integer |
Yes |
Database port number
|
enable_ssl |
Boolean |
Yes |
Whether SSL is enabled
|
type |
String |
Yes |
Instance type. The value can be any of the following:
|
region |
String |
Yes |
Region to which the asset belongs |
db_user_name |
String |
Yes |
Default username |
vpc_id |
String |
Yes |
VPC ID |
subnet_id |
String |
Yes |
Network ID of the subnet |
cpu |
String |
Yes |
Number of CPUs. |
mem |
String |
Yes |
Memory size in GB |
vendor_type |
String |
Yes |
Environment supplier |
domain_id |
String |
Yes |
ID of the tenant to which the asset belongs. |
region_id |
String |
Yes |
Asset region. |
project_id |
String |
Yes |
ID of the project to which the asset belongs. |
ep_id |
String |
No |
ID of the enterprise project to which the asset belongs. |
ep_name |
String |
No |
Name of the enterprise project to which the asset belongs. |
vendor_name |
String |
Yes |
Asset probes or asset providers |
idc_id |
String |
Yes |
ID of the on-premises equipment room |
idc_name |
String |
Yes |
Name of the on-premises equipment room |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
id |
String |
Yes |
VPC ID |
name |
String |
Yes |
VPC name |
protected_status |
String |
No |
Security status. The value can be OPEN (protection enabled) or CLOSE (protection disabled). |
description |
String |
No |
Description about the VPC |
cidr |
String |
Yes |
Range of available subnets in the VPC |
status |
String |
Yes |
VPC status. The options are as follows:
|
vendor_type |
String |
Yes |
Provider type |
domain_id |
String |
Yes |
ID of the tenant to which the asset belongs. |
region_id |
String |
Yes |
ID of the asset region. |
project_id |
String |
Yes |
ID of the project to which the asset belongs. |
ep_id |
String |
No |
ID of the enterprise project to which the asset belongs. |
ep_name |
String |
No |
Name of the enterprise project to which the asset belongs. |
vendor_name |
String |
Yes |
Asset probes or asset providers |
idc_id |
String |
Yes |
ID of the on-premises equipment room |
idc_name |
String |
Yes |
Name of the on-premises equipment room |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
id |
String |
Yes |
Unique ID |
alias |
String |
No |
EIP Name |
description |
String |
No |
Description about the EIP |
protected_status |
String |
No |
Anti-DDoS or CFW status. The value can be OPEN (the function is enabled) or CLOSE (the function is disabled). |
project_id |
String |
Yes |
Project ID |
ip_version |
Integer |
Yes |
IP address version The options are as follows:
|
public_ip_address |
String |
Yes |
IP Address |
publicip_pool_name |
String |
Yes |
Network type of an EIP, including public EIP pool (for example, 5_bgp or 5_sbgp) and dedicated EIP pool. |
status |
String |
Yes |
EIP status. The options are as follows:
|
associate_instance_type |
String |
Yes |
Type of the instance to which the EIP address is bound. The options are as follows:
|
associate_instance_id |
String |
Yes |
ID of the instance to which the EIP address is bound |
create_time |
String |
Yes |
UTC time when a resource is created ISO8601 format: YYYY-MM-DDTHH:mm:ss.ms+timezone |
vendor_type |
String |
Yes |
Provider type |
domain_id |
String |
Yes |
ID of the tenant to which the asset belongs. |
region_id |
String |
Yes |
ID of the asset region. |
project_id |
String |
Yes |
ID of the project to which the asset belongs. |
ep_id |
String |
No |
ID of the enterprise project to which the asset belongs. |
ep_name |
String |
No |
Name of the enterprise project to which the asset belongs. |
vendor_name |
String |
Yes |
Asset probes or asset providers |
idc_id |
String |
Yes |
ID of the on-premises equipment room |
idc_name |
String |
Yes |
Name of the on-premises equipment room |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
value |
String |
Yes |
Asset value |
version |
String |
Yes |
Asset Type
|
relative_value |
String |
No |
Opposite value. For example, if the IP address is an IPv4 address, the value is ipv6. |
network_public |
Boolean |
Yes |
External network or internal network |
network_partition |
String |
No |
Network partition: OM/PSZ/DMZ |
network_partition |
String |
No |
Network plane code |
network_vxlan_id |
String |
No |
Virtual network ID |
remark |
String |
No |
Asset remarks |
name |
String |
No |
Asset name. The default value is the asset value. |
latitude |
Float |
No |
Latitude |
longitude |
Float |
No |
Longitude |
city_code |
String |
Yes |
City code. Set this parameter based on the standard city code. |
country_code |
String |
Yes |
Country code. Set this parameter based on the international standard country code. |
server_room |
String |
Yes |
Equipment room |
server_rack |
String |
Yes |
Cabinet |
mac_addr |
String |
No |
MAC address |
important |
String |
Yes |
Severity
|
idc_id |
String |
Yes |
ID of the on-premises data center |
idc_name |
String |
Yes |
Name of the on-premises data center |
vendor_name |
String |
Yes |
Asset provider |
department_name |
String |
No |
Name of the department to which the asset belongs |
business_name |
String |
No |
Name of the service system |
business_owner |
String |
No |
Owner of the service system |
governance_user_type |
String |
No |
Type of the asset governance owner |
governance_user_name |
String |
No |
Name of the asset governance owner |
Exporting Assets
- Log in to the management console.
- Click in the upper left corner of the page and choose .
- In the navigation pane, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
Figure 3 Management
- In the navigation pane on the left, choose Resource Manager > Resource Manager.
Figure 4 Resource Manager
- On the asset management page, click the corresponding asset tab.
- On the asset page, select the assets to be exported and click in the upper right corner of the list.
- In the Export dialog box, set asset parameters.
Table 7 Exporting assets Parameter
Description
Format
By default, the asset list is exported into an Excel.
Columns
Select the parameters to be exported.
- Click OK.
The system automatically downloads the Excel to your local PC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot