Skip to main content

vserver object-store-server bucket cors-rule show

Contributors
Suggest changes

Show the Cross-Origin rule

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver object-store-server bucket cors-rule show command displays information about the cross-origin resource sharing (CORS) rules for the specified object store server bucket.

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

| [-instance ] }

If you specify the -instance parameter, the command displays detailed information about all fields.

[-vserver <Vserver Name>] - Vserver Name

If you specify this parameter, the command displays information on the object store server bucket CORS rules for the specified Vserver.

[-bucket <TextNoCase>] - Object Store Server Bucket Name

If you specify this parameter, the command displays information on the object store server bucket CORS rules for the specified object store server bucket.

[-index <integer>] - Cross-Origin Access Rule Index

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified index.

[-rule-id <text>] - Cross-Origin Access Rule ID

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified rule ID.

[-allowed-origins <text>,…​] - List of the Origins Allowed for Cross-Origin Requests

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified allowed origins.

[-allowed-methods <text>,…​] - List of HTTP Request Methods Allowed in Cross-Origin Requests

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified allowed methods.

[-allowed-headers <text>,…​] - List of the Headers Allowed in Cross-Origin Requests

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified allowed headers.

[-expose-headers <text>,…​] - Headers that Servers Allow Clients to Access

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified exposed headers.

[-max-age-in-seconds <integer>] - How Long ( in Seconds ) the Results of a Cross-Origin Pre-Flight Request Can Be Cached?

If you specify this parameter, the command displays information on the object store server bucket CORS rules that match the specified value for this parameter.

Examples

The following example displays information on object store server bucket CORS rules for vserver vs1 and bucket bucket1:

cluster1::> vserver object-store-server bucket cors-rule show -vserver vs1 -bucket bb1
Vserver  Bucket    Rule-Index      Origin            Methods
-------- --------- --------------- ----------------- ---------------
vs1      bb1       1               hello.com         POST
vs1      bb1       2               *                 POST
vs1      bb1       5               example.com       POST, DELETE
2 entries were displayed.

The following example displays detailed information of the object store server bucket CORS rule associated with Vserver vs1 and bucket bucket1:

cluster1::> vserver object-store-server bucket cors-rule show -vserver vs1 -bucket bb1 -index 5
 ---------------------------------------------------------
                                        Vserver: vs1
                Object Store Server Bucket Name: bb1
                 Cross-Origin Access Rule Index: 5
            Cross-Origin Access Allowed Origins: example.com
            Cross-Origin Access Allowed Methods: POST, DELETE
            Cross-Origin Access Allowed Headers: x-amz-request-id
            Cross-Origin Access Rule Identifier: rule1
            Cross-Origin Access Exposed Headers: x-purpose
 Time a browser can cache Cross-Origin Response: 2000