检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
In this example, if the vpcId of an ECS does not match the specified VPC ID, NonCompliant is returned. Otherwise, Compliant is returned. ''' def evaluate_compliance(resource, parameter): if resource.get("provider") != "ecs" or resource.get("type") !
For example, to query cloud servers (ecs.cloudservers), you need to set provider to ecs, and type to cloudservers. Calling Method For details, see Calling APIs.
For example, you can query an ECS with a specified OS version. You can only use advanced queries to query, view, or export cloud resources. If you need to modify or delete resources, go to related service consoles.
059b5c937100d3e40ff0c00a7675a0a0/all-resources/summary Example Responses Status code: 200 Operation succeeded. [ { "provider" : "obs", "types" : [ { "type" : "buckets", "regions" : [ { "region_id" : "regionid1", "count" : 5 } ] } ] }, { "provider" : "ecs
Example Requests Querying resource overview recorded by the resource recorder in the current account GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/tracked-resources/summary Example Responses Status code: 200 Successful Operation [ { "provider" : "ecs", "types"
Responses Status code: 200 Operation succeeded. { "value" : [ { "domain_id" : "059b5c937100d3e40ff0c00a7675a0a0", "region_id" : "regionid1", "resource_id" : "010d95bd-87cd-4f22-ac00-db7fba7d927e", "resource_name" : "ecs-cc-image-test1", "resource_provider" : "ecs
e74e043fab784a45ad88f5ef6a4bcffc:organizationPolicyAssignment:o-doxbpkzqsdd51ti1k27w2y8fitakrknp/d02b7fa9d5a74e638c1402d0868f71fd", "organization_policy_assignment_id" : "d02b7fa9d5a74e638c1402d0868f71fd", "organization_policy_assignment_name" : "allowed-images-by-id", "description" : "The ECS
Responses Status code: 200 Operation succeeded. { "value" : [ { "domain_id" : "059b5c937100d3e40ff0c00a7675a0a0", "region_id" : "regionid1", "resource_id" : "010d95bd-87cd-4f22-ac00-db7fba7d927e", "resource_name" : "ecs-cc-image-test1", "resource_provider" : "ecs
Responses Status code: 200 Operation succeeded. { "value" : [ { "domain_id" : "059b5c937100d3e40ff0c00a7675a0a0", "region_id" : "regionid1", "resource_id" : "010d95bd-87cd-4f22-ac00-db7fba7d927e", "resource_name" : "ecs-cc-image-test1", "resource_provider" : "ecs
e74e043fab784a45ad88f5ef6a4bcffc:organizationPolicyAssignment:o-doxbpkzqsdd51ti1k27w2y8fitakrknp/d02b7fa9d5a74e638c1402d0868f71fd", "organization_policy_assignment_id" : "d02b7fa9d5a74e638c1402d0868f71fd", "organization_policy_assignment_name" : "allowed-images-by-id", "description" : "The ECS
"comparator" : "notContainsKey", "pattern" : "systemEncrypted" }, { "value" : "${resource().properties.metadata.systemEncrypted}", "comparator" : "equals", "pattern" : "0" } ] } ] }, "keywords" : [ "evs", "ecs
https://{endpoint}/v1/resource-manager/domains/059b5c937100d3e40ff0c00a7675a0a0/all-resources/00337e93-82d1-40ca-911f-07cff94587cc Example Responses Status code: 200 Operation succeeded. { "id" : "00337e93-82d1-40ca-911f-07cff94587cc", "name" : "dev_machine", "provider" : "ecs
", "from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112", "to_resource_id" : "ff13d70d-17e5-4ec8-945a-c874e0db99d3" } ], "resource" : { "id" : "6af96128-d58d-426c-91e0-b38144c0f112", "name" : "david-test-cce-49831-bh9ax", "provider" : "ecs
DCS Memcached Instances Support SSL Rule Details Table 1 Rule details Parameter Description Name dcs-memcached-enable-ssl Identifier dcs-memcached-enable-ssl Description If a DCS Memcached instance can be accessed through public networks but does not support SSL, this instance is
DCS Memcached Instances Are in a Specified VPC Rule Details Table 1 Rule details Parameter Description Rule Name dcs-memcached-in-vpc Identifier dcs-memcached-in-vpc Description If a DCS Memcached instance is not in the specified VPC, this instance is noncompliant. Tag dcs Trigger
DCS Redis Instances Support SSL Rule Details Table 1 Rule details Parameter Description Rule Name dcs-redis-enable-ssl Identifier dcs-redis-enable-ssl Description If a DCS Redis instance can be accessed over public networks but does not support SSL, this instance is noncompliant.
DCS Redis Instances Are in the Specified VPC Rule Details Table 1 Rule details Parameter Description Rule Name dcs-redis-in-vpc Identifier dcs-redis-in-vpc Description If a DCS Redis instance is not in the specified VPC, this instance is noncompliant. Tag dcs Trigger Type Configuration
DCS Memcached Instances Do Not Have EIPs Attached Rule Details Table 1 Rule details Parameter Description Rule Name dcs-memcached-no-public-ip Identifier dcs-memcached-no-public-ip Description If a DCS Memcached instance has an EIP attached, this instance is noncompliant. Tag dcs
DCS Redis Instances Do Not Have EIPs Attached Rule Details Table 1 Rule details Parameter Description Rule Name dcs-redis-no-public-ip Identifier dcs-redis-no-public-ip Description If a DCS Redis instance has an EIP attached, this instance is noncompliant. Tag dcs Trigger Type Configuration