Cette rubrique décrit les commandes liées aux services dans l'interface CLI de Function Compute (fcli).
Prérequis
Exécutez fcli shell dans le répertoire contenant le fichier exécutable pour passer en mode interactif.
Créer un service (mks)
-d stringou--description string: description du service.-p stringou--log-project string: projet de journal associé au service.-l stringou--log-store string: Logstore associé au service.-r stringou--role string: rôle attribué au service.
>>> mks myService //Creates a service without any advanced settings.
>>> mks myService -d 'my description' -p my-log-project -l my-log-store -r acs:ram::myID:role/myRoleName //Creates a service, in which the description is my description, the log project is my-log-project, the Logstore is my-log-store, and the role is myRoleName.
Mettre à jour un service (ups)
Les paramètres de cette commande sont identiques à ceux de la commande mks.
-d stringou--description string: description du service.-p stringou--log-project string: projet de journal associé au service.-l stringou--log-store string: Logstore associé au service.-r stringou--role string: rôle attribué au service.
>>> ups myService -d 'my description' -p my-log-project -l my-log-store -r acs:ram::myID:role/myRoleName //Updates the service, in which the description is my description, the log project is my-log-project, the Logstore is my-log-store, and the role is myRoleName.