Organization

usage: snet organization [-h] COMMAND ...

Organization commands

COMMAND

Possible choices: metadata-init, print-metadata, add-group, update-group, list, list-org-names, list-my, list-services, info, create, update-metadata, change-owner, add-members, rem-members, delete

Sub-commands:

metadata-init

Initalize matadata for organization

snet organization metadata-init [-h] [--registry-at REGISTRY_AT]
                                [--metadata-file METADATA_FILE]
                                org_name org_id

Positional Arguments

org_name

Organization name

org_id

Unique organization Id

Named Arguments

--registry-at, --registry

Address of Registry contract, if not specified we read address from “networks”

--metadata-file

Service metadata json file (default organization_metadata.json)

Default: “organization_metadata.json”

add-group

Add group to organization

snet organization add-group [-h]
                            [--payment-expiration-threshold PAYMENT_EXPIRATION_THRESHOLD]
                            [--payment-channel-storage-type PAYMENT_CHANNEL_STORAGE_TYPE]
                            [--payment-channel-connection-timeout PAYMENT_CHANNEL_CONNECTION_TIMEOUT]
                            [--payment-channel-request-timeout PAYMENT_CHANNEL_REQUEST_TIMEOUT]
                            [--metadata-file METADATA_FILE]
                            [--registry-at REGISTRY_AT]
                            group_name payment_address
                            [endpoints [endpoints ...]]

Positional Arguments

group_name

Group Name

payment_address

Payment address

endpoints

Endpoints for the first group

Named Arguments

--payment-expiration-threshold

Payment Expiration threshold

Default: 100

--payment-channel-storage-type

Storage channel for payment

Default: “etcd”

--payment-channel-connection-timeout

Pyament channel connection timeout

Default: “100s”

--payment-channel-request-timeout

Payment channel request timeout

Default: “5s”

--metadata-file

Service metadata json file (default organization_metadata.json)

Default: “organization_metadata.json”

--registry-at, --registry

Address of Registry contract, if not specified we read address from “networks”

update-group

Update group of organization

snet organization update-group [-h] [--payment-address PAYMENT_ADDRESS]
                               [--endpoints [ENDPOINTS [ENDPOINTS ...]]]
                               [--payment-expiration-threshold PAYMENT_EXPIRATION_THRESHOLD]
                               [--payment-channel-storage-type PAYMENT_CHANNEL_STORAGE_TYPE]
                               [--payment-channel-connection-timeout PAYMENT_CHANNEL_CONNECTION_TIMEOUT]
                               [--payment-channel-request-timeout PAYMENT_CHANNEL_REQUEST_TIMEOUT]
                               [--metadata-file METADATA_FILE]
                               [--registry-at REGISTRY_AT]
                               group_id

Positional Arguments

group_id

Group Id

Named Arguments

--payment-address

Payment Address

--endpoints

Endpoints for the first group

--payment-expiration-threshold

Payment Expiration threshold

--payment-channel-storage-type

Payment Channel Storage Type

--payment-channel-connection-timeout

Payment Channel Connection timeout

--payment-channel-request-timeout

Payment channel Request timeout

--metadata-file

Service metadata json file (default organization_metadata.json)

Default: “organization_metadata.json”

--registry-at, --registry

Address of Registry contract, if not specified we read address from “networks”

list

List of Organizations Ids

snet organization list [-h] [--registry-at REGISTRY_ADDRESS]
                       [--wallet-index WALLET_INDEX]

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

optional call arguments

--wallet-index

Wallet index of account to use for calling (defaults to session.identity.default_wallet_index)

list-org-names

List Organizations Names and Ids

snet organization list-org-names [-h] [--registry-at REGISTRY_ADDRESS]
                                 [--wallet-index WALLET_INDEX]

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

optional call arguments

--wallet-index

Wallet index of account to use for calling (defaults to session.identity.default_wallet_index)

list-my

Print organization which has the current identity as the owner or as a member

snet organization list-my [-h] [--registry-at REGISTRY_ADDRESS]
                          [--wallet-index WALLET_INDEX]

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

optional call arguments

--wallet-index

Wallet index of account to use for calling (defaults to session.identity.default_wallet_index)

list-services

List Organization’s services

snet organization list-services [-h] [--registry-at REGISTRY_ADDRESS]
                                [--wallet-index WALLET_INDEX]
                                ORG_ID

Positional Arguments

ORG_ID

Id of the Organization

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

optional call arguments

--wallet-index

Wallet index of account to use for calling (defaults to session.identity.default_wallet_index)

info

Organization’s Information

snet organization info [-h] [--registry-at REGISTRY_ADDRESS]
                       [--wallet-index WALLET_INDEX]
                       ORG_ID

Positional Arguments

ORG_ID

Id of the Organization

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

optional call arguments

--wallet-index

Wallet index of account to use for calling (defaults to session.identity.default_wallet_index)

create

Create an Organization

snet organization create [-h] [--metadata-file METADATA_FILE]
                         [--members ORG_MEMBERS] [--gas-price GAS_PRICE]
                         [--wallet-index WALLET_INDEX] [--yes]
                         [--quiet | --verbose]
                         [--registry-at REGISTRY_ADDRESS]
                         ORG_ID

Positional Arguments

ORG_ID

Unique Organization Id

Named Arguments

--metadata-file

Service metadata json file (default organization_metadata.json)

Default: “organization_metadata.json”

--members

List of members to be added to the organization

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

update-metadata

Create an Organization

snet organization update-metadata [-h] [--metadata-file METADATA_FILE]
                                  [--members ORG_MEMBERS]
                                  [--gas-price GAS_PRICE]
                                  [--wallet-index WALLET_INDEX] [--yes]
                                  [--quiet | --verbose]
                                  [--registry-at REGISTRY_ADDRESS]
                                  ORG_ID

Positional Arguments

ORG_ID

Unique Organization Id

Named Arguments

--metadata-file

Service metadata json file (default organization_metadata.json)

Default: “organization_metadata.json”

--members

List of members to be added to the organization

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

change-owner

Change Organization’s owner

snet organization change-owner [-h] [--gas-price GAS_PRICE]
                               [--wallet-index WALLET_INDEX] [--yes]
                               [--quiet | --verbose]
                               [--registry-at REGISTRY_ADDRESS]
                               ORG_ID OWNER_ADDRESS

Positional Arguments

ORG_ID

Id of the Organization

OWNER_ADDRESS

Address of the new Organization’s owner

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

add-members

Add members to Organization

snet organization add-members [-h] [--gas-price GAS_PRICE]
                              [--wallet-index WALLET_INDEX] [--yes]
                              [--quiet | --verbose]
                              [--registry-at REGISTRY_ADDRESS]
                              ORG_ID ORG_MEMBERS

Positional Arguments

ORG_ID

Id of the Organization

ORG_MEMBERS[]

List of members to be added to the organization

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

rem-members

Remove members from Organization

snet organization rem-members [-h] [--gas-price GAS_PRICE]
                              [--wallet-index WALLET_INDEX] [--yes]
                              [--quiet | --verbose]
                              [--registry-at REGISTRY_ADDRESS]
                              ORG_ID ORG_MEMBERS

Positional Arguments

ORG_ID

Id of the Organization

ORG_MEMBERS[]

List of members to be removed from the organization

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)

delete

Delete an Organization

snet organization delete [-h] [--gas-price GAS_PRICE]
                         [--wallet-index WALLET_INDEX] [--yes]
                         [--quiet | --verbose]
                         [--registry-at REGISTRY_ADDRESS]
                         ORG_ID

Positional Arguments

ORG_ID

Id of the Organization

transaction arguments

--gas-price

Ethereum gas price in Wei or time based gas price strategy (‘fast’ ~1min, ‘medium’ ~5min or ‘slow’ ~60min) (defaults to session.default_gas_price)

--wallet-index

Wallet index of account to use for signing (defaults to session.identity.default_wallet_index)

--yes, -y

Skip interactive confirmation of transaction payload

Default: False

--quiet, -q

Quiet transaction printing

Default: False

--verbose, -v

Verbose transaction printing

Default: False

contract identity arguments

--registry-at

registry contract address (defaults to session.current_registry_at)