Command Central Developer Reference : Using the Command Line Interface : Repository Commands : sagcc update repository products
sagcc update repository products
Updates product repository details, such as user credentials, location, and description.
For mirror repositories, the command adds the new products specified in the artifacts argument to the mirror repository, but does not remove existing products or product versions.
Syntax
*Command Central syntax:
*Using arguments for all types of repositories:
sagcc update repository products repo_name [username=username]      
[password=password] [location=image_filename | URL]       
[description="description"] [options]
*Using arguments for master and image repositories:
sagcc update repository products {master | image} repo_name 
[username=username]  [password=password
[location=image_filename | URL]       
[description="description"] [options]
*Using arguments for mirror repositories:
sagcc update repository products mirror repo_name 
[sourceRepos=repo_name1,repo_name2...repo_nameN
[artifacts=productId1,productId2...,productIdN
[platforms=OS_Id1,OS_Id2...OS_IdN
[username=username]  [password=password
[description="description"] [options]
*Using arguments and input file for mirror repositories:
sagcc update repository products mirror --input | i filename.xml 
[sourceRepos=repo_name1,repo_name2...repo_nameN
[artifacts=productId1,productId2...,productIdN
[platforms=OS_Id1,OS_Id2...OS_IdN] [options]
*Not supported by Platform Manager.
Arguments and Options
Argument or Option
Description
repo_name
Required. The name of the repository that you want to update.
--input | i filename.xml
Required. An XML file that contains repository data, such as repository name, description, and location.
[username=username]
Optional. A valid user name for the product repository.
[password=password]
Optional. A valid password to the product repository.
[location=image_file | URL]
Optional. The name of the image file or valid URL to the new location of the image file referenced by the repository.

sourceRepos=repo_name1, repo_name2...repo_nameN

Required only for a mirror repository. A list of the source repositories from which to update the mirror repository.

[artifacts= productId1,productId2..., productIdN]
Optional. A list of IDs of the products from the source repositories that you want to update in the mirror repository.

[platforms= OS_Id1,OS_Id2...OS_IdN]
Optional. A list of the IDs of the operating systems of the products included in the mirror repository.
If you do not specify a list of operating system IDs or you omit this parameter, Command Central uses the default platform of the Platform Manager to which the mirror repository is added.
[description="description"]
Optional. The new description of the repository.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Example When Executing on Command Central
*To change the location of the file “image.zip”referenced by the repository with name “repo1”:
sagcc update repository products repo1 location=file:///vmtest/image.zip
*To update the local mirror repository with name “webMethods-9.9_EUR_Local” with the five new products listed in the artifacts argument for three different platforms:
sagcc update repository products mirror webMethods-9.9_EUR_Local 
platforms=LNXAMD64,W64,OSX artifacts=DatabaseComponentConfigurator,
integrationServer,NUMRealmServer,TES,MwsProgramFiles
*To update the local mirror repository with name “webMethods-9.9_US_Local” with all artifacts from the source repositories associated with this mirror repository, after creating or modifying the repository:
sagcc update repository products mirror webMethods-9.9_US_Local” artifacts=all
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback