Bir Object FC Access Point oluşturur.
Kullanım notları
Varsayılan olarak, bir Alibaba Cloud hesabı Object FC Access Point oluşturma iznine sahiptir. Bir RAM kullanıcısı veya Security Token Service (STS) kullanarak erişim noktası oluşturmak için
oss:CreateAccessPointForObjectProcessiznine sahip olmanız gerekir.Bir Alibaba Cloud hesabı için en fazla 1.000 Object FC Access Point oluşturabilirsiniz.
Bir paket için en fazla 100 Object FC Access Point oluşturabilirsiniz.
İstek sözdizimi
PUT /?accessPointForObjectProcess HTTP/1.1
Date: GMT Date
Content-Length: 785
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"?>
<CreateAccessPointForObjectProcessConfiguration>
<AccessPointName>ap-01</AccessPointName>
<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>
</CreateAccessPointForObjectProcessConfiguration>
İstek üst bilgileri
|
Üst Bilgi |
Tür |
Gerekli |
Örnek |
Açıklama |
|
x-oss-access-point-for-object-process-name |
Dize |
Evet |
fc-ap-01 |
Object FC Access Point adı. Adın aşağıdaki gereksinimleri karşılaması gerekir:
|
Host ve Date gibi ortak istek üst bilgileri hakkında daha fazla bilgi için bkz. Ortak HTTP üst bilgileri.
İstek öğeleri
|
Öğe |
Tür |
Gerekli |
Örnek |
Açıklama |
|
CreateAccessPointForObjectProcessConfiguration |
Konteyner |
Evet |
Yok |
Object FC Access Point hakkındaki bilgileri depolayan konteyner. Üst düğümler: yok Alt düğümler: AccessPointName ve ObjectProcessConfiguration |
|
AccessPointName |
Dize |
Evet |
ap-01 |
Object FC Access Point adı. Daha fazla bilgi için bkz. Object FC Access Point Oluşturma. |
|
ObjectProcessConfiguration |
Konteyner |
Hayır |
Yok |
Object FC Access Point ile ilgili işleme bilgilerini depolayan konteyner. Üst düğümler: CreateAccessPointForObjectProcessConfiguration Alt düğümler: AllowedFeature ve TransformationConfigurations |
|
AllowedFeatures |
Konteyner |
Hayır |
Yok |
İzin verilen özellikleri depolayan konteyner. Üst düğümler: ObjectProcessConfiguration Alt düğümler: AllowedFeature |
|
AllowedFeature |
Dize |
Hayır |
GetObject-Range |
Function Compute hizmetinin Range GetObject isteklerini desteklediğini belirtir. Üst düğümler: AllowedFeatures Alt düğümler: yok |
|
TransformationConfigurations |
Konteyner |
Hayır |
Yok |
Dönüşüm yapılandırmalarını depolayan konteyner. Üst düğümler: ObjectProcessConfiguration Alt düğümler: TransformationConfiguration |
|
TransformationConfiguration |
Konteyner |
Hayır |
Yok |
Dönüşüm yapılandırmalarını depolayan konteyner. Üst düğümler: TransformationConfigurations Alt düğümler: Actions ve ContentTransformation |
|
Actions |
Konteyner |
Hayır |
Yok |
İşlemleri depolayan konteyner. Üst düğümler: TransformationConfiguration Alt düğümler: Action |
|
Action |
Dize |
Hayır |
GetObject |
OSS API işlemi. Yalnızca GetObject desteklenir. Üst düğümler: Actions Alt düğümler: yok |
|
ContentTransformation |
Konteyner |
Hayır |
Yok |
Dönüşüm yapılandırmalarının içeriğini depolayan konteyner. Üst düğümler: TransformationConfiguration Alt düğümler: FunctionCompute |
|
FunctionCompute |
Konteyner |
Hayır |
Yok |
Function Compute bilgilerini depolayan konteyner. Üst düğümler: ContentTransformation Alt düğümler: FunctionAssumeRoleArn ve FunctionArn |
|
FunctionAssumeRoleArn |
Dize |
Hayır |
acs:ram::111933544165****:role/aliyunfcdefaultrole |
Function Compute hizmetinin diğer cloud hizmetlerindeki kaynaklarınıza erişmek için kullandığı rolün Alibaba Cloud Resource Name (ARN) değeri. Varsayılan rol Üst düğümler: FunctionCompute Alt düğümler: yok |
|
FunctionArn |
Dize |
Hayır |
acs:fc:cn-qingdao:111933544165****:services/test-oss-fc.LATEST/functions/fc-01 |
İşlevin ARN değeri. Daha fazla bilgi için bkz. İşlev ARN değeri alma. |
Yanıt üst bilgileri
Bu işlem yalnızca ortak yanıt üst bilgilerini döndürür. Daha fazla bilgi için bkz. Ortak HTTP üst bilgileri.
Yanıt öğeleri
|
|
|
|
|
|
|
|
|
Object FC Access Point hakkındaki bilgileri depolayan konteyner. Alt düğümler: AccessPointForObjectProcessArn ve Alias |
|
|
|
|
|
|
|
|
|
|
Örnekler
-
Örnek istek
PUT /?accessPointForObjectProcess HTTP/1.1 Date: Mon, 30 Oct 2023 03:15:40 GMT Content-Length: 785 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"?> <CreateAccessPointForObjectProcessConfiguration> <AccessPointName>ap-01</AccessPointName> <ObjectProcessConfiguration> <AllowedFeatures> <AllowedFeature>GetObject-Range</AllowedFeature> </AllowedFeatures> <TransformationConfigurations> <TransformationConfiguration> <Actions> <Action>GetObject</Action> </Actions> <ContentTransformation> <FunctionCompute> <FunctionAssumeRoleArn>acs:ram::111933544165****:role/aliyunfcdefaultrole</FunctionAssumeRoleArn> <FunctionArn>acs:fc:cn-qingdao:111933544165****:services/test-oss-fc.LATEST/functions/fc-01</FunctionArn> </FunctionCompute> </ContentTransformation> </TransformationConfiguration> </TransformationConfigurations> </ObjectProcessConfiguration> </CreateAccessPointForObjectProcessConfiguration> -
Örnek yanıt
HTTP/1.1 200 OK x-oss-request-id: 5C1B138A109F4E405B2D**** Date: Mon, 30 Oct 2023 03:15:40 GMT <?xml version="1.0" encoding="UTF-8"?> <CreateAccessPointForObjectProcessResult> <AccessPointForObjectProcessArn>acs:oss:cn-qingdao:119335441657143:accesspointforobjectprocess/fc-ap-01</AccessPointForObjectProcessArn> <AccessPointForObjectProcessAlias>fc-ap-01-3b00521f653d2b3223680ec39dbbe2****-opapalias</AccessPointForObjectProcessAlias> </CreateAccessPointForObjectProcessResult>