The ecTopology data type describes the ecTopologies resource.
ecTopology data type properties
The following table describes the properties included in the ecTopology data type.
Example
Here's an XML example of the ecTopology data type; the properties shown are those that are returned in response to a verbose GET request:
<ecTopology>
<description>Erasure coding topology for the US, Europe, Canada, and
Africa-North divisions.</description>
<erasureCodedObjects>3289</erasureCodedObjects>
<erasureCodingDelay>10</erasureCodingDelay>
<fullCopy>false</fullCopy>
<hcpSystems>
<name>hcp-an.example.com</name>
<name>hcp-ca.example.com</name>
<name>hcp-eu.example.com</name>
<name>hcp-us.example.com</name>
</hcpSystems>
<id>faa9b2e5-a8b0-4211-ac83-6a25dff50800</id>
<minimumObjectSize>4096</minimumObjectSize>
<name>ex-corp-4</name>
<protectionStatus>HEALTHY</protectionStatus>
<readStatus>HEALTHY</readStatus>
<replicationLinks>
<replicationLink>
<hcpSystems>
<name>hcp-ca.example.com</name>
<name>hcp-eu.example.com</name>
</hcpSystems>
<name>eu-ca</name>
<pausedTenantsCount>0</pausedTenantsCount>
<state>HEALTHY</state>
<uuid>7ae4101c-6e29-426e-ae71-9a7a529f019d</uuid>
</replicationLink>
<replicationLink>
<hcpSystems>
<name>hcp-eu.example.com</name>
<name>hcp-us.example.com</name>
</hcpSystems>
<name>us-eu</name>
<pausedTenantsCount>0</pausedTenantsCount>
<state>HEALTHY</state>
<uuid>32871da5-2355-458a-90f5-1717aa684d6f</uuid>
</replicationLink>
<replicationLink>
<hcpSystems>
<name>hcp-an.example.com</name>
<name>hcp-us.example.com</name>
</hcpSystems>
<name>us-an</name>
<pausedTenantsCount>0</pausedTenantsCount>
<state>HEALTHY</state>
<uuid>c8c875ad-dbfe-437d-abd3-862a6c719894</uuid>
</replicationLink>
<replicationLink>
<hcpSystems>
<name>hcp-an.example.com</name>
<name>hcp-ca.example.com</name>
</hcpSystems>
<name>ca-an</name>
<pausedTenantsCount>0</pausedTenantsCount>
<state>HEALTHY</state>
<uuid>a1f21e03-fb46-48cc-967e-b0cedf80bb20</uuid>
</replicationLink>
</replicationLinks>
<restorePeriod>5</restorePeriod>
<state>ACTIVE</state>
<tenants>
<name>research-dev</name>
<name>sales-mktg</name>
<name>exec</name>
<name>finance</name>
</tenants>
<type>RING</type>
</ecTopology>
Query parameter for retiring an erasure coding topology
You use the retire query parameter to retire an erasure coding topology. You use this parameter on a POST request against the topology resource. You cannot include a request body with this request.
Here's a sample POST request that retires the erasure coding topology named ex-corp-3.
curl -k -d "<ecTopology/>"
-H "Authorization: HCP bGdyZWVu:35dc4c4aa08fe0deab7e292e00eb8e97"
"https://admin.hcp-us.example.com:9090/mapi/services/erasureCoding/
ecTopologies/ex-corp-3?retire"
Query parameter for forcing the deletion of an erasure coding topology
You can delete an erasure coding topology only while either of these is true:
- At least one system in the topology is available, the total number of erasure-coded objects and erasure-coded parts of multipart objects on each available system is zero, and the state of the topology is retired. These are the normal conditions for deleting a topology.
- No more than one system in the topology is unavailable, the total number of erasure-coded objects and erasure-coded parts of multipart objects on each available system is zero, and the state of the topology is retiring. To delete the topology under these conditions, you need to include the force=true query parameter on the DELETE request.
Here's a sample DELETE request that deletes the erasure coding topology named ex-corp-3 while the topology meets the second set of conditions listed above:
curl -k -X DELETE
-H "Authorization: HCP bGdyZWVu:35dc4c4aa08fe0deab7e292e00eb8e97"
"https://admin.hcp-us.example.com:9090/mapi/services/erasureCoding/
ecTopologies/ex-corp-3?force=true"