Bir Object FC Access Point yapılandırmasını değiştirir.
Kullanım notları
Varsayılan olarak bir Alibaba Cloud hesabı, Object FC Access Point yapılandırmasını değiştirme iznine sahiptir. Bu işlemi bir RAM kullanıcısı olarak veya Security Token Service (STS) kimlik bilgilerini kullanarak yapmak için oss:PutAccessPointConfigForObjectProcess iznine sahip olmanız gerekir.
İstek sözdizimi
PUT /?accessPointConfigForObjectProcess HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
x-oss-access-point-for-object-process-name: fc-ap-01
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<PutAccessPointConfigForObjectProcessConfiguration>
<ObjectProcessConfiguration>
<AllowedFeatures>
<AllowedFeature>GetObject-Range</AllowedFeature>
</AllowedFeatures>
<TransformationConfigurations>
<TransformationConfiguration>
<Actions>
<Action>GetObject</Action>
</Actions>
<ContentTransformation>
<FunctionCompute>
<FunctionAssumeRoleArn>string</FunctionAssumeRoleArn>
<FunctionArn>string</FunctionArn>
</FunctionCompute>
</ContentTransformation>
</TransformationConfiguration>
</TransformationConfigurations>
</ObjectProcessConfiguration>
<PublicAccessBlockConfiguration>
<BlockPublicAccess>true</BlockPublicAccess>
</PublicAccessBlockConfiguration>
</PutAccessPointConfigForObjectProcessConfiguration>
İstek üstbilgileri
|
Öğe |
Tür |
Gerekli |
Örnek |
Açıklama |
|
x-oss-access-point-for-object-process-name |
Dize |
Evet |
fc-ap-01 |
Object FC Access Point adıdır. Adın aşağıdaki gereksinimleri karşılaması gerekir:
|
Host ve Date gibi ortak istek üstbilgileri hakkında daha fazla bilgi için bkz. Ortak yanıt üstbilgileri.
İstek öğeleri
|
Öğe |
Tür |
Gerekli |
Örnek |
Açıklama |
|
PutAccessPointConfigForObjectProcessConfiguration |
Konteyner |
Evet |
Uygulanamaz |
Object FC Access Point yapılandırmasını depolayan konteynerdir. Üst düğümler: yok Alt düğümler: AccessPointName ve ObjectProcessConfiguration |
|
ObjectProcessConfiguration |
Konteyner |
Hayır |
Uygulanamaz |
Object FC Access Point işleme yapılandırmasını depolayan konteynerdir. Üst düğümler: PutAccessPointConfigForObjectProcessConfiguration Alt düğümler: AllowedFeature ve TransformationConfigurations |
|
AllowedFeatures |
Konteyner |
Hayır |
Uygulanamaz |
İzin verilen özellikleri depolayan konteynerdir. Üst düğümler: ObjectProcessConfiguration Alt düğümler: AllowedFeature |
|
AllowedFeature |
Dize |
Hayır |
GetObject-Range |
Function Compute'ün Range GetObject isteklerini desteklediğini belirtir. Üst düğümler: AllowedFeatures Alt düğümler: yok |
|
TransformationConfigurations |
Konteyner |
Hayır |
Uygulanamaz |
Dönüşüm yapılandırmalarını depolayan konteynerdir. Üst düğümler: ObjectProcessConfiguration Alt düğümler: TransformationConfiguration |
|
TransformationConfiguration |
Konteyner |
Hayır |
Uygulanamaz |
Tek bir dönüşüm yapılandırmasını depolayan konteynerdir. Üst düğümler: TransformationConfigurations Alt düğümler: Actions ve ContentTransformation |
|
Actions |
Konteyner |
Hayır |
Uygulanamaz |
İşlemleri depolayan konteynerdir. Üst düğümler: TransformationConfiguration Alt düğümler: Action |
|
Action |
Dize |
Hayır |
GetObject |
İşlenecek OSS API işlemidir. Yalnızca GetObject desteklenir. Üst düğümler: Actions Alt düğümler: yok |
|
ContentTransformation |
Konteyner |
Hayır |
Uygulanamaz |
İçerik dönüştürme ayrıntılarını depolayan konteynerdir. Üst düğümler: TransformationConfiguration Alt düğümler: FunctionCompute |
|
FunctionCompute |
Konteyner |
Hayır |
Uygulanamaz |
Function Compute yapılandırmasını depolayan konteynerdir. Üst düğümler: ContentTransformation Alt düğümler: FunctionAssumeRoleArn ve FunctionArn |
|
FunctionAssumeRoleArn |
Dize |
Hayır |
acs:ram::111933544165****:role/aliyunossobjectfcforossdefaultrole |
OSS'in Function Compute kaynaklarınıza erişmek için üstlendiği RAM rolünün ARN değeridir. Varsayılan: Üst düğümler: FunctionCompute Alt düğümler: yok |
|
FunctionArn |
Dize |
Hayır |
acs:oss:cn-qingdao:111933544165****:services/oss-fc.LATEST/functions/oss-fc-02 |
Object FC Access Point ile ilişkilendirilecek işlevin ARN değeridir. Ayrıntılar için bkz. İşlev ARN'sini alma. Üst düğümler: FunctionCompute Alt düğümler: yok |
|
PublicAccessBlockConfiguration |
Konteyner |
Evet |
Uygulanamaz |
Block Public Access yapılandırmasını depolayan konteynerdir. Üst düğümler: PutAccessPointConfigForObjectProcessConfiguration Alt düğümler: BlockPublicAccess |
|
BlockPublicAccess |
Boolean |
Hayır |
true |
Object FC Access Point için Block Public Access özelliğinin etkinleştirilip etkinleştirilmeyeceğini belirtir.
Üst düğümler: PublicAccessBlockConfiguration Alt düğümler: yok |
Yanıt üstbilgileri
Bu işlem yalnızca ortak yanıt üstbilgilerini döndürür. Daha fazla bilgi için bkz. Ortak yanıt üstbilgileri.
Örnekler
-
Örnek istek
PUT /?accessPointConfigForObjectProcess HTTP/1.1 Date: GMT Date Content-Length: 750 Content-Type: application/xml Host: oss-example.oss-cn-qingdao.aliyuncs.com x-oss-access-point-for-object-process-name: fc-ap-01 Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,AdditionalHeaders=content-length,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e <?xml version="1.0" encoding="UTF-8"?> <PutAccessPointConfigForObjectProcessConfiguration> <ObjectProcessConfiguration> <AllowedFeatures> <AllowedFeature>GetObject-Range</AllowedFeature> </AllowedFeatures> <TransformationConfigurations> <TransformationConfiguration> <Actions> <Action>GetObject</Action> </Actions> <ContentTransformation> <FunctionCompute> <FunctionAssumeRoleArn>acs:ram::111933544165****:role/aliyunossobjectfcforossdefaultrole</FunctionAssumeRoleArn> <FunctionArn>acs:oss:cn-qingdao:111933544165****:services/oss-fc.LATEST/functions/oss-fc-02</FunctionArn> </FunctionCompute> </ContentTransformation> </TransformationConfiguration> </TransformationConfigurations> </ObjectProcessConfiguration> <PublicAccessBlockConfiguration> <BlockPublicAccess>true</BlockPublicAccess> </PublicAccessBlockConfiguration> </PutAccessPointConfigForObjectProcessConfiguration> -
Örnek yanıt
HTTP/1.1 200 OK x-oss-request-id: 5C1B138A109F4E405B2D**** Date: Mon, 30 Oct 2023 03:15:40 GMT