Sha256: 9f8241048c226971ab7c329ae6f18e7548076801aac003a786268d0ef9d1d107

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

# ShareCreate

Adds a specific resource share to a group and optionally allows the setting of permissions for that resource. As an example, you might use this to grant permissions to use an image or snapshot to a specific group.

```text
knife ionoscloud share create (options)
```

## Available options:

### Required options:

* group\_id
* resource\_id
* ionoscloud\_username
* ionoscloud\_password

```text
    group_id: --group-id GROUP_ID, -G GROUP_ID
        iD of the group. (required)

    resource_id: --resource-id RESOURCE_ID, -R RESOURCE_ID
        the ID of the resource. (required)

    edit_privilege: --edit, -e
        the group has permission to edit privileges on this resource.

    share_privilege: --share, -s
        the group has permission to share this resource.

    ionoscloud_username: --username USERNAME, -u USERNAME
        your Ionoscloud username (required)

    ionoscloud_password: --password PASSWORD, -p PASSWORD
        your Ionoscloud password (required)

    extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
        path to the additional config file

```
## Example

```text
knife ionoscloud share create --group-id GROUP_ID --resource-id RESOURCE_ID --edit --share --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife-ionoscloud-6.0.0.beta.2 docs/subcommands/share_create.md
knife-ionoscloud-6.0.0.beta.1 docs/subcommands/share_create.md
knife-ionoscloud-5.1.1 docs/subcommands/share_create.md