Writeinternalservererror

internalservererror  时间:2021-04-12  阅读:()
CHAPTER4-1CiscoCloudObjectStorageRelease2.
1.
1APIGuide4SwiftAPIThischapterdescribesthesubsetoftheOpenStackSwiftAPIthatisimplementedforCOS.
TheSwiftAPIusestheStorageFQDNthatisassignedtotheCOScluster.
NoteTheCOSclusterisassignedanAuthenticationFQDN(usedwiththeSwauthAPI)andaStorageFQDN(usedwiththeSwiftAPI).
CurrentlytheAuthenticationFQDNandtheStorageFQDNmustbethesame,forexample,auth01.
cos.
acme.
com.
ListingContainersToretrievealistofexistingstoragecontainers,usethefollowingHTTPGETrequest:NoteTomakethisrequest,youmustbeanaccountadminorareselleradmin.
GET/v1/[=[&=]]HTTP/1.
1ThenamesofthecontainersinthelistaresortedbasedonabinarycomparisonoftheUTF-8encodedcontainernames.
RequiredRequestHeaderX-Auth-Token:OptionalQueryParametersThefollowingparameterscanbeusedinthequery:limit—Specifiesthemaximumnumberofresultstoberetrieved.
marker—RetrievescontainernameswhosecharactershaveagreaterUnicodealphabeticalvaluethanthoseofthespecifiedstring.
end_marker—RetrievescontainernameswhosecharactershavealowerUnicodealphabeticalvaluethanthoseofthespecifiedstring.
prefix—Retrievescontainernamesbeginningwiththespecifiedcharacters.
4-2CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIListingObjectsdelimiter—Retrievescontainernamesthatdonothavethespecifiedcharacter,exceptintheprefix,ifany.
format—Specifieseitherjsonorxmlastheformatoftheserializedresponse.
ListingObjectsTolisttheobjectsinthestoragecontainer,usethefollowingHTTPGETrequest:NoteTomakethisrequest,youmustbeanaccountadministratororCOSreseller-administrator.
Or,ifaread-ACLhasbeenspecifiedforacontainer,eitheryoumusthavebeenassignedarolelistedintheACL,or'*'mustbelistedasarole,permittinganonymousaccess.
GET/v1//[=[&=]]HTTP/1.
1ThenamesoftheobjectsinthelistaresortedbasedonabinarycomparisonoftheUTF-8encodedobjectnames.
OptionalQueryParametersThefollowingparameterscanbeusedinthequery:limit—Specifiesthemaximumnumberofresultstoberetrieved.
marker—RetrievesobjectnameswhosecharactershaveagreaterUnicodealphabeticalvaluethanthoseofthespecifiedstring.
end_marker—RetrievesobjectnameswhosecharactershavealowerUnicodealphabeticalvaluethanthoseofthespecifiedstring.
prefix—Retrievesobjectnamesbeginningwiththespecifiedcharacters.
delimiter—Retrievesobjectnamesthatdonothavethespecifiedcharacter,exceptintheprefix,ifany.
path—Retrievesnamesofobjectsnestedinthespecifiedpath.
format—Specifieseitherjsonorxmlastheformatoftheserializedresponse.
NoteIfaresponseformatisnotspecifiedasaqueryparameter,alistofobjectnamesisreturnedintheresponsebody,onenameperline.
ResponseStatusCodesTheresponsestatuscodeisoneofthefollowing:4-3CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPICreatingaContainer2xx—indicatesasuccessfulexecutionoftherequest.
204(NoContent)—indicatesthateitherthecontainerisempty,ornoneoftheobjectsinthecontainermatchthequeryparametersspecifiedintherequest.
CreatingaContainerTocreateastoragecontainer,usethefollowingHTTPPUTrequest:NoteTomakethisrequest,youmustbeanaccountadmin,aCOSreselleradminorthesuperadmin.
PUT/v1//HTTP/1.
1Thenameofthecontainermustadheretothefollowingrestrictions:Thenamecannotincludetheforwardslash(/)characterortheencodedforwardslashcharacter(%2For%2f).
Thenameshouldnotexceed256byteswhenitisencodedinURL.
RequiredRequestHeaderX-Auth-Token:OptionalRequestHeadersX-Container-Read:X-Container-Write:AssigningCustomAttributesToassigncustomattributestoastoragecontainer,includeadditionalHTTPheadersintheHTTPPUTrequestshownabove.
Theadditionalheadersshouldbeofthefollowingform:X-Container-Meta-:ResponseStatusCodesTheresponsestatuscodeisoneofthefollowing:201(Created)—Thecontainerwascreated.
202(Accepted)—Thecontaineralreadyexists.
400(BadRequest)—Invalidcontainername.
401(Unauthorized)—Theusertokenismissingorinvalid.
403(Forbidden)—Theuserdoesnothavepermissiontocreatethecontainer.
404(NotFound)—ThestorageURLreferencesanon-existentaccount.
4-4CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingaContainerDeletingaContainerTopermanentlyremoveastoragecontainer,usethefollowingHTTPDELETErequest:NoteTomakethisrequest,youmustbeanaccountadmin,areselleradmin,orthesuperadmin.
DELETE/v1//HTTP/1.
NoteOnlyemptystoragecontainerscanbedeleted.
RequiredRequestHeaderX-Auth-Token:ResponseStatusCodesTheresponsestatuscodeisoneofthefollowing:204(NoContent)—Thecontainerwasdeleted.
400(BadRequest)—Invalidcontainername.
401(Unauthorized)—Theusertokenismissingorinvalid.
403(Forbidden)—Theuserdoesnothavepermissiontodeletethecontainer.
404(NotFound)—ThestorageURLreferencesanon-existentaccount.
409(Conflict)—Thecontainerisnotempty.
RetrievinganObjectToretrievethedataofanobject,usethefollowingHTTPGETrequest:NoteTomakethisrequest,youmustbeanaccountadminorCOSreseller-admin;orifaread-ACLhasbeenspecifiedforthecontainer,eitheryouareassignedarolelistedintheACL,or*isspecifiedasarole,permittinganonymousaccess.
GET/v1///HTTP/1.
1NoteYoumayretrievedatafromanobjectwhileitisbeingcreated.
Ifyoudo,theresponsewillhavetheX-Object-Is-Dynamic:yesheader.
RequiredRequestHeaderX-Auth-Token:4-5CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIRetrievinganObjectNoteIfthecontainerread-ACLpermitsanonymousaccess,thisheaderisnotrequired.
OptionalRequestHeadersX-Follow-Redirect:true–Iftherequesthasthisheader,theCOSnodemayrespondwitha307(TemporaryRedirect)codeandincludeaLocationresponseheaderhavingtheURLatwhichtheclientshouldretrytherequest.
–Iftherequestdoesnothavethisheader,orthevalueoftheheaderisnottrue,theCOSnodereceivingtherequestwillrespondwiththerequestedobject.
NoteTheX-Follow-RedirectrequestheaderisaCOSextension.
X-Transfer-Rate:–Thisheaderspecifiesatransferrateindecimalbitspersecond.
–Validrangeofvaluesforthisheaderis400000to50000000,thatis,400Kbpsto50Mbps.
–Iftheheaderisnotincluded,dataistransferredatthebest-effortratethatdoesnotdelayothertransferswhichwererequestedalongwithanX-Transfer-Rateheader.
–Atransferrateof0isvalidandindicatesabest-efforttransferofdata.
NoteTheX-Transfer-RaterequestheaderisaCOSextension.
X-Transfer-Delay:–Thisheaderspecifiesasigneddelayinmilliseconds.
–Ifthedelayispositive,COSwaitsforthetimeintervalspecifiedbeforestartingthetransferofobjectdataattherequestedtransferrate.
Thepositivedelaycanhaveamaximumvalueof30seconds.
–AnegativedelayindicatesthattheclientwantstouseanelasticitybufferandintendstotransmitdatafromthepartiallyfullbufferthatreceivesdatafromCOSattherequestedtransferrate.
Inthiscase,COSstartstransferringthedataassoonastheretrieverequestisreceived,andattemptstosenddataataratehigherthantherequestedrate.
COS,inessence,triestomatchtheamountofdatathatwouldhavebeensenttotheclientifthedatatransferhadbeeninitiated"delay"secondsbeforethereceiptoftherequest.
Thenegativedelaycanhavemaximummagnitudeoffourseconds.
NoteTheX-Transfer-DelayrequestheaderisaCOSextension.
Range:bytes=–Torequestthetransferofspecificportionsoftheobjectdata,inaccordancewiththespecificationsinsection14.
35ofRFC2616,includethisheader.
–Onlybyte-rangesaresupported.
–Multiplebyterangesaresupported.
4-6CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIRetrievinganObject–Iftherangedidnotincludetheentireobject,aresponsestatuscodeof206(PartialContent)isreturnedbyCOS.
–ThePartialContentresponsetoarequestformultiplenon-overlappingrangesofdatacontainsmultiplepartsinthemessagebody.
If-Match:ETag–TheobjectdataisretrievedonlyiftheclientspecifiedETagvaluematchestheETagofthecontent.
Else,412(PreconditionFailed)isreturned.
If-None-Match:ETag–304(NotModified)isreturnediftheclientspecifiedETagvaluematchestheETagofthecontent,indicatingtotheclientthattheobjectcachedbyithasnotbeenmodifiedsince.
If-Modified-Since:time–304(NotModified)isreturnediftheclientspecifiedtimeisequaltoorlaterthanthelastmodifiedtimeoftheobject.
If-Unmodified-Since:time–Theobjectdataisretrievedonlyiftheclientspecifiedtimeisequaltoorlaterthanthelastmodifiedtimeoftheobject.
Else,412(PreconditionFailed)isreturned.
ResponseStatusCodesAresponsestatuscodeof2xxindicatessuccessfulcompletionoftherequest.
ResponseHeadersTheresponsewillincludeoneofthefollowingheaders:LastModified—Atime-stampofwhentheobjectwascreatedormodified.
ETag—ThehexadecimalrepresentationoftheMD5hashoftheobjectdata.
Content-Type—Thecontenttypeassociatedwiththeobjectwhenitwascreated.
Content-Length—Thenumberofbytesintheobject.
X-Object-Goid—TheglobalobjectidentifierassignedbyCOSwhentheobjectwascreated.
NoteTheX-Object-GoidresponseheaderisaCOSextension.
X-Object-Meta-*—Customobjectattributesoftheobject.
X-Object-Is-Dynamic:yes—Theobjectbeingretrievedisbeingextended.
Thisoccurswhenyouretrieveobjectdatawhileobjectcreationisinprogress.
Sucharetrievalofthedataisusefulwhenalargeobjectisbeingcreatedandyouwanttoaccessthedatathathasbeenstored,evenasmoredataisbeingappendedtotheobject.
ThisresponseheaderisaCOSextension.
NoteTheX-Object-Is-DynamicresponseheaderisaCOSextension.
4-7CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPICreatingorUpdatingAnObjectCreatingorUpdatingAnObjectTocreateorupdateanobject,thatis,towriteoroverwriteanobject'scontentandmetadata,usethefollowingHTTPPUTrequest:PUT/v1///HTTP/1.
1RequiredRequestHeadersX-Auth-Token:NoteThisheadermaybeexcludedifthecontainerwriteACLpermitsanonymousaccess.
Content-Type–Ifthisheaderisnotincluded,thesystemwillattempttoguessthetypeofthecontentbasedontheobject'sname/metadata.
Ifthesystemisunsuccessful,theContent-Typeissettothedefaultapplication/octet-streamvalue.
Content-Length/Transfer-Encoding:chunked–EitheravalidContent-Lengthheader,statingthesizeoftheobject,oraTransfer-Encoding:chunkedheader,indicatingthatthedatalengthisencodedin-lineatthestartofeachchunkoftheobjectdatasentintherequest,mustbeincluded.
OptionalRequestHeadersETag–TherequestmayincludethisheaderwiththevaluesettothehexadecimalrepresentationoftheMD5hashoftheobjectdata.
–IftheETagvaluedoesnotmatchMD5hashcomputedbyCOS,a422(UnprocessableEntity)responsestatuscodeisreturned.
X-Object-Meta-:–Includethisheadertosetcustomattributesforanobject.
X-Follow-Redirect:true–Ifthisheaderisincluded,theCOSnodemayrespondwithastatuscodeof307(TemporaryRedirect)andincludeaLocationresponseheaderindicatingtheURLtowhichtheclientshouldaddresstherequest.
–Ifthisheaderisabsent,orthevalueoftheheaderisnottrue,theCOSnodereceivingtherequestwillperformthenecessaryoperation.
NoteTheX-Follow-RedirectrequestheaderisaCOSextension.
Expect:100-Continue–Itisrecommendedthatyouincludethisheaderintheinitialrequestandomitobjectcontentfromthebodyoftherequest.
4-8CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletinganObject–ThereceivingCOSnodewillrespondwitheithera100(Continue)statuscode,a307(TemporaryRedirect)statuscode,oranerrorstatuscode.
–Ifthe100(Continue)statuscodeisreceived,repeattherequestalongwiththeobjectcontentinthebody.
ResponseStatusCodesTheresponsewillincludeoneofthefollowingheaders:2xx—IndicatesthesuccessfulcompletionoftheHTTPPUTrequest.
5xx—IndicatesfailureoftheHTTPPUTrequest.
ResponseHeadersTheresponsewillincludeoneofthefollowingheaders:LastModified—Atime-stampofwhentheobjectwascreatedorupdated.
ETag—AhexadecimalrepresentationoftheMD5hashoftheobjectdata.
DeletinganObjectTopermanentlyremoveanobject,usethefollowingHTTPDELETErequest:NoteTomakethisrequest,oneofthefollowingmustbetrue:YouareanaccountadminoraCOSreselleradmin.
Ifawrite-ACLhasbeenspecifiedforthecontainer,eitheryouareassignedarolelistedintheACL,ortherole*isincludedintheACL,permittinganonymousaccess.
DELETE/v1///HTTP/1.
1Deletinganobjectremovesboththeobjectdataandmetadata.
Anysubsequentoperationsattemptedontheobjectwillreturna404(NotFound)responsestatuscode.
4-9CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPICreatingorUpdatingContainerMetadataRequiredRequestHeaderNoteIfthecontainerwrite-ACLpermitsanonymousaccess,thisheaderisnotrequired.
X-Auth-Token:ResponseStatusCode204(NoContent)—Indicatestheobjecthasbeendeleted.
CreatingorUpdatingContainerMetadataTocreateorupdatecustomcontainerattributes,usethefollowingHTTPPOSTrequest:NoteTomakethisrequest,youmustbeanaccountadminoraCOSreselleradmin.
POST/v1//HTTP/1.
1TheattributesarespecifiedinHTTPheadersincludedintheHTTPPOSTrequest.
Iftheattributeexists,itsvaluewillbeoverwritten.
Else,anewattributeiscreated.
RequiredRequestHeaderX-Auth-Token:X-Container-Meta-:ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerError4-10CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIRetrievingContainerMetadataRetrievingContainerMetadataToretrieveacontainer'smetadatatolearnitsstatus,usethefollowingHTTPHEADrequest:NoteTomakethisrequest,youmustbeanaccountadminoraCOSreselleradmin.
Or,ifaread-ACLhasbeenspecifiedforthecontainer,youmustbeassignedarolelistedintheACL.
Or,the'*'rolemustbeincludedintheACL,permittinganonymousaccess.
HEAD/v1//HTTP/1.
1Thisrequestcanbeusedagainstacontainertodeterminethenumberofobjects,andthetotalbytesizeofallobjectsstoredinthecontainer.
RequiredRequestHeaderNoteIfthecontainerread-ACLpermitsanonymousaccess,thisheaderisnotrequired.
X-Auth-Token:ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:2xx(Success)—TheHEADoperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerErrorResponseHeadersX-Container-Object-Count–Thevalueofthisheaderisthenumberofobjectsinthecontainer.
X-Container-Bytes-Used–Thevalueofthisheaderisthetotalbytesizeofalltheobjectsinthecontainer.
X-Container-Meta-:–Thisheaderreturnsthecustomattributesofthecontainer.
4-11CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingContainerMetadataDeletingContainerMetadataTodeletecustomcontainerattributes,usethefollowingHTTPPOSTrequest:NoteTomakethisrequest,youmustbeanaccountadminorareselleradmin.
POST/v1//HTTP/1.
1RequiredRequestHeadersX-Auth-Token:X-Container-Meta-–Anemptyheaderofthistypewithouttheattributevaluecanbeusedtodeletethecustomattributenamedintheheader.
X-Remove-Container-Meta-:–Alternatively,aheaderofthistypecanbeusedtodeletethecustomattributenamedintheheader.
–Thearbitraryattributevalueisignoredbythesystem.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5XX—InternalServerErrorCreatingorUpdatingObjectMetadataTocreateorupdatecustomobjectattributes,usethefollowingHTTPPOSTrequest:NoteTomakethisrequest,youmustbeanaccountadminoraCOSreselleradmin.
Or,ifawrite-ACLhasbeenspecifiedforthecontainer,youmustbeassignedarolelistedintheACL.
Or,the'*'rolemustbeincludedintheACL,permittinganonymousaccess.
POST/v1///HTTP/1.
14-12CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIRetrievingObjectMetadataAssigningcustomattributestoobjectsenablesyoutobettercategorizetheobjects.
RequiredRequestHeaderX-Auth-Token:NoteIfthecontainerwrite-ACLpermitsanonymousaccess,thisheaderisnotrequired.
X-Object-Meta-:–Iftheattributeexists,itsvalueisupdatedtothatspecifiedintheheader.
Else,theattributeiscreated.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5XX—InternalServerErrorRetrievingObjectMetadataToretrieveanobject'smetadata,includingitscustomattributes,usethefollowingHTTPHEADrequest:NoteTomakethisrequest,youmustbeanaccountadminoraCOSreselleradmin.
Or,ifaread-ACLhasbeenspecifiedforthecontainer,youmustbeassignedarolelistedintheACL,andtheReferrerheaderintherequestmustmatchtheACLreferrerpattern.
Or,the'*'rolemustbeincludedintheACL,permittinganonymousaccess.
HEAD/v1///HTTP/1.
RequiredRequestHeaderNoteIfthecontainerread-ACLpermitsanonymousaccess,thisheaderisnotrequired.
X-Auth-Token:ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:4-13CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingObjectMetadata2xx(Success)—TheHEADoperationsucceeded400(BadRequest)—TheHEADoperationisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerErrorResponseHeadersLastModified—atime-stampofwhentheobjectwascreatedormodified.
ETag—thehexadecimalrepresentationoftheMD5hashoftheobjectdata.
Content-Type—thecontenttypeassociatedwiththeobjectwhenitwascreated.
Content-Length—thenumberofbytesintheobject.
X-Object-Meta-:—customobjectattributes,ifany.
DeletingObjectMetadataTodeletecustomobjectattributes,usethefollowingHTTPPOSTrequest:NoteTomakethisrequest,youmustbeanaccountadminoraCOSreselleradmin.
Or,ifawrite-ACLhasbeenspecifiedforthecontainer,youmustbeassignedarolelistedintheACL.
Or,the'*'rolemustbeincludedintheACL,permittinganonymousaccess.
POST/v1/HTTP/1.
1RequiredRequestHeadersX-Auth-Token:X-Object-Meta-:–Anemptyheaderofthistypewithouttheattributevaluecanbeusedtodeletethecustomattributenamedintheheader.
X-Remove-Object-Meta-:–Alternatively,aheaderofthistypecanbeusedtodeletethecustomattributenamedintheheader.
–Thearbitraryvalueisignoredbythesystem.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded4-14CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPICreatingorUpdatingAccountMetadata400(BadRequest)—ThePOSToperationisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerErrorCreatingorUpdatingAccountMetadataTocreateorupdatecustomaccountattributes,usethefollowingHTTPPOSTrequest:NoteToperformthisoperation,youmustbeanaccountadministratororaCOSreselleradmin.
POST/v1/HTTP/1.
1RequiredRequestHeadersX-Auth-Token:X-Account-Meta-:–Iftheattributeexists,itsvalueisupdatedtothatspecifiedintheheader.
Else,theattributeiscreated.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSToperationisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccount5xx—InternalServerErrorRetrievingAccountMetadataToretrieveaccountmetadatatochecktheaccountstatistics,usethefollowingHTTPHEADrequest:NoteToperformtheoperation,youmustbeanaccountadministratororaCOSreselleradmin.
HEAD/v1/HTTP/1.
14-15CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingAccountMetadataRequiredRequestHeadersX-Auth-Token:ResponseStatusCodesTheresponsestatuscodeisoneofthefollowing:2xx(Success)—TheHEADoperationsucceeded400(BadRequest)—TheHEADoperationisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccount5xx—InternalServerErrorResponseHeadersX-Account-Container-Count:–Thevalueoftheheaderisthenumberofcontainersintheaccount.
X-Account-Object-Count:–Thevalueoftheheaderisthenumberofobjectsintheaccount.
X-Account-Bytes-Used:–ThevalueoftheheaderisthetotalnumberofbytesinCOSforthespecifiedaccount.
X-Account-Meta-:–Theheaderreturnscustomaccountattributesandtheirvalues.
DeletingAccountMetadataTodeletecustomaccountattributes,usethefollowingHTTPPOSTrequest:NoteToperformtheoperation,youmustbeanaccountadministratororaCOSreselleradmin.
POST/v1/HTTP/1.
1RequiredRequestHeadersX-Auth-Token:X-Account-Meta-:–Anemptyheaderofthistypewithouttheattributevaluecanbeusedtodeletethecustomattributenamedintheheader.
X-Remove-Account-Meta-:–Alternatively,aheaderofthistypecanbeusedtodeletethecustomattributenamedintheheader.
4-16CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIAccessControlLists(ACLs)–Thearbitraryvalueisignoredbythesystem.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSToperationisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccount5xx—InternalServerErrorAccessControlLists(ACLs)Bydefault,toaccessastorageobject,arequestermustbeanaccountadministratoroftheaccountcontainingtheobject.
Anadministratorcanmodifytheaccesspolicyforacontaineranditsstorageobjectsbyusingcontaineraccesscontrollists(ACLs).
Theadministratorcanspecifythereadandwriteaccesscontrollistsaspartofthecontainermetadata.
WhenanACLisdeleted,thedefaultaccesspolicyisrestored.
AnACLhasthefollowingform:[item[,item.
.
.
]]AnACLitemcanbeoneofthefollowing:–Alltheusersofspecifiedaccountaregrantedaccesstoobjectsinthecontainer.
:–Usersidentifiedbythecombinationofthespecifiedaccountandusernamesaregrantedaccesstoobjectsinthecontainer.
*–Anasteriskpermitsanonymousaccess.
ThisoptionisaCOSextension.
CreatingorUpdatingACLsTocreateorupdateanACL,usethefollowingHTTPPOSTrequest:NoteToperformtheoperation,youmustbeanaccountadministratororaCOSreselleradmin.
POST/v1//HTTP/1.
14-17CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingACLsRequiredRequestHeadersX-Auth-Token:X-Container-Read:–SpecifythereadACLasthevalueofthisheader.
X-Container-Write:–SpecifythewriteACLasthevalueofthisheader.
ResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerErrorDeletingACLsTodeleteanACL,usethefollowingHTTPPOSTrequest:NoteToperformtheoperation,youmustbeanaccountadministratororaCOSreselleradmin.
POST/v1//HTTP/1.
1RequiredRequestHeadersX-Auth-Token:X-Container-Read:–SpecifyanemptylistasthevalueofthisheadertodeletethereadACL.
X-Remove-Container-Read:–Alternatively,aheaderofthistypecanbeusedtodeletethereadACL.
–Thearbitraryvalueisignoredbythesystem.
X-Container-Write:–SpecifyanemptylistasthevalueofthisheadertodeletethewriteACL.
X-Remove-Container-Write:–Alternatively,aheaderofthistypecanbeusedtodeletethewriteACL.
–Thearbitraryvalueisignoredbythesystem.
4-18CiscoCloudObjectStorageRelease2.
1.
1APIGuideChapter4SwiftAPIDeletingACLsResponseStatusCodeTheresponsestatuscodeisoneofthefollowing:204(NoContent)—ThePOSToperationsucceeded400(BadRequest)—ThePOSTrequestisnotvalid401(Unauthorized)—Theusertokenismissingorinvalid403(Forbidden)—Theuserdoesnothavepermissiontomodifythecontainerattributes404(NotFound)—ThestorageURLreferencesanon-existentaccountorcontainer5xx—InternalServerError

鲸云10美元,香港BGPRM 1核 1G 10Mbps峰值带宽 1TB流量,江西CN2-NAT 1核 512MB内存 100M带宽 ,

WHloud Official Notice(鲸云官方通知)(鲸落 梦之终章)]WHloud RouMu Cloud Hosting若木产品线云主机-香港节点上新预售本次线路均为电信CN2 GIA+移动联通BGP,此机型为正常常规机,建站推荐。本次预售定为国庆后开通,据销售状况决定,照以往经验或有咕咕的可能性,但是大多等待时间不长。均赠送2个快照 2个备份,1个默认ipv4官方网站:https:/...

SunthyCloud阿里云国际版分销商注册教程,即可PayPal信用卡分销商服务器

阿里云国际版注册认证教程-免绑卡-免实名买服务器安全、便宜、可靠、良心,支持人民币充值,提供代理折扣简介SunthyCloud成立于2015年,是阿里云国际版正规战略级渠道商,也是阿里云国际版最大的分销商,专业为全球企业客户提供阿里云国际版开户注册、认证、充值等服务,通过SunthyCloud开通阿里云国际版只需要一个邮箱,不需要PayPal信用卡就可以帮你开通、充值、新购、续费阿里云国际版,服务...

云步云72.5元/月起云服务器,香港安畅/葵湾/将军澳/沙田/大浦CN2机房,2核2G5M

云步云怎么样?云步云是创建于2021年的品牌,主要从事出售香港vps、美国VPS、日本VPS、香港独立服务器、香港站群服务器等,机房有香港、美国、日本东京等机房,目前在售VPS线路有CN2+BGP、CN2 GIA,香港的线路也是CN2直连大陆,该公司旗下产品均采用KVM虚拟化架构。目前,云步云提供香港安畅、沙田、大浦、葵湾、将军澳、新世界等CN2机房云服务器,2核2G5M仅72.5元/月起。点击进...

internalservererror为你推荐
typicallyappleinternalservererrorinternal server error怎么解决cisco2960cisco 2960 和3560企业信息查询系统查企业信息哪个的软件好?字节跳动回应TikTok易主一部电影讲一个小伙子去继承遗产结果是一批雪橇狗男主吹口哨声明不是雪地狂奔degradeiosduplicate500正大天地网正大光明是什么数字12306.com12306身份信息待核验要多久?审核要多久三五互联南京最专业的网站建设公司是哪家?双尚网络做的好不好? 给分求答案
域名主机 vps教程 韩国空间 http500内部服务器错误 lamp配置 绍兴电信 个人免费邮箱 supercache 免备案cdn加速 网站防护 512内存 超低价 挂马检测工具 戴尔主机 lighttpdwindows 企业私有云存储 qq登陆空间 web服务器硬件配置 dhcp服务器是什么 更多