Skip to main content
Settings/User Management APIs

ShareResource

ShareResource

PUT/zstack/v1/accounts/resources/actions

Operation ID

ShareResource

Since

0.6

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • resourceUuids
    ListRequired

    The resource UUID list.

  • accountUuids
    List

    Optional. The account UUID list.

  • toPublic
    boolean

    Optional. Specifies whether to share the resource globally.Note: If toPublic is false, accountUuids cannot be empty.

  • systemTags
    List

    Optional. The system tags.

  • userTags
    List

    Optional. The user tags.

Responses

200 OK
200 OK

On success, this API returns an empty JSON object {}.