Hello
I have 2 questions which I didn't found any where. I hope here I can get some help.
Q1) I want to restrict some region replicas so for that swift service have an option to set 'X-Storage-Policy' in header. Below is the curl command for doing that. (Reference: ) I didn't found such option in objectStoreV1() service.
curl -v -X PUT -H 'X-Auth-Token: '
-H 'X-Storage-Policy: gold' http://127.0.0.1:8080/v1/AUTH_test/myCont0
Q2) I would like to create public container (by default its generating private container) for that I have append metadata 'X-Container-Read' => '.r:"', 'X-Container-Write' => '.r:"'after creating container which is not working. Below is my class function
public function create_container($name) {
$o_container = self::$service->createContainer(array('name' => $name));
$o_container->resetMetadata(array('X-Storage-Policy' => 'global-repl-onl','X-Container-Read' => '.r:*"', 'X-Container-Write' => '.r:*"' ));
if(is_object($o_container)) {
if($o_container->name == $name)
return true;
else
return false;
} else
return false;
}
Can you help me with above 2 my question. It will be great help
Thank you
Hello
I have 2 questions which I didn't found any where. I hope here I can get some help.
Q1) I want to restrict some region replicas so for that swift service have an option to set 'X-Storage-Policy' in header. Below is the curl command for doing that. (Reference: ) I didn't found such option in objectStoreV1() service.
curl -v -X PUT -H 'X-Auth-Token: '
-H 'X-Storage-Policy: gold' http://127.0.0.1:8080/v1/AUTH_test/myCont0
Q2) I would like to create public container (by default its generating private container) for that I have append metadata 'X-Container-Read' => '.r:"', 'X-Container-Write' => '.r:"'after creating container which is not working. Below is my class function
Can you help me with above 2 my question. It will be great help
Thank you