Absent Member.. maxpund Absent Member..
Absent Member..
474 views

OO-CSA : error in get list catalog

Hi, I´m trying to get CSA list catalog with CSA admin user. When I loguin to CSA Portal, in Catalog section, shows me a lot of Catalog.

But, When I execute a flow in OO and I try to getting list catalog with the same user, only shows me one catalog: Global Shares Catalog.

I used this API to get list catalog:

https://<HOSTCSA>/csa/rest/catalog?userIdentifier=90d96588360da0c701360da0f1d600a1&scope=subtree&detail=basic

 

The userIdentifier was taking by admin user.

The output xml is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<CatalogList>

<count>1</count>

<limit>0</limit>

<catalog>

<id>90d9650a36988e5d0136988f03ab000f</id>

<objectId>90d9650a36988e5d0136988f03ab000f</objectId>

<createdOn>2014-09-16T20:51:26.077Z</createdOn><isCriticalSystemObject>true</isCriticalSystemObject><description>Global Shared Catalog</description><iconUrl>/csa/images/library/briefcase-consumer_default_img-60.png</iconUrl><name>Global Shared Catalog</name><displayName>Global Shared Catalog</displayName><state><id>90d96588360da0c701360da0ef470038</id><objectId>90d96588360da0c701360da0ef470038</objectId><createdOn>2014-09-16T20:51:25.092Z</createdOn><isCriticalSystemObject>true</isCriticalSystemObject><description>Active</description><iconUrl>/csa/images/categories/artifact_state/active.png</iconUrl><name>ACTIVE</name><displayName>Active</displayName><disabled>false</disabled><categoryType><id>90d96588360da0c701360da0ef420037</id><objectId>90d96588360da0c701360da0ef420037</objectId><isCriticalSystemObject>true</isCriticalSystemObject><description>Artifact State</description><name>ARTIFACT_STATE</name><displayName>Artifact State</displayName><extensible>false</extensible></categoryType></state><artifactType><id>90d96588360da0c701360da0eed2001d</id><objectId>90d96588360da0c701360da0eed2001d</objectId><createdOn>2014-09-16T20:51:25.092Z</createdOn><isCriticalSystemObject>true</isCriticalSystemObject><description>Catalog</description><iconUrl>/csa/images/categories/artifact_type/catalog.png</iconUrl><name>CATALOG</name><displayName>Catalog</displayName><disabled>false</disabled><categoryType><id>90d96588360da0c701360da0eeb40017</id><objectId>90d96588360da0c701360da0eeb40017</objectId><isCriticalSystemObject>true</isCriticalSystemObject><description>Artifact Type</description><name>ARTIFACT_TYPE</name><displayName>Artifact Type</displayName><extensible>false</extensible></categoryType></artifactType><disabled>false</disabled></catalog>

</CatalogList>

What is the way to get all catalog list of CSA Portal with admin user?

Regards,

Maxi

Labels (3)
0 Likes
1 Reply
scuda20 Super Contributor.
Super Contributor.

Re: OO-CSA : error in get list catalog

If I understand your issue correctly you have to get the userID of the consumer and then grab the catalog. See below a guide I put together for my engineers. If you drop this into notepad++ look at line 25 where you use the CSA_CONSUMER ID to get the other catalog vs the ooInboundUser ID.

 

USE FIREFOX RESTClient {need to install}
click on Authentication -> Basic Authentication enter csaTransportUser for both user and password (unless you changed the password....you did change the password RIGHT!)
Click on Headers add Custom Header = Content-Type: application/xml and click save to favorite
when performing GET, click on the Response Body (Highlight) to grab the data, click in data, CTL-A, CTL-C
Obviously change the IP's below to yours
When you paste into Notepad++, you will need to delete the extra stuff at the bottom and the top, if you have issues we can do a
lync share session and I will show you on my system.

######################################################
first find the organization name/id {use the csatransport user ID found from OO-GUI on any run first step}
https://172.16.14.15:8444/csa/rest/organization/?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451&scope=base&detail=basic
CSA-PROVIDER 90d96588360da0c701360da0f15b009e
CSA_CONSUMER BFA0DB53DA404B90E04059106D1A24B5

######################################################
next get the consumer ID {should be the same as the ORG ID but only for the default org/accounts}
https://172.16.14.15:8444/csa/rest/login/CSA_CONSUMER/consumer
consumer <id>BFA0DB53DA414B90E04059106D1A24B5</id>

######################################################
next get the catalog ID {use the csatransport user ID found from OO-GUI on any run first step}
https://172.16.14.15:8444/csa/rest/catalog?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451&scope=base&detail=basic
Global Shared Catalog (GSC) <id>90d9650a36988e5d0136988f03ab000f</id>

For catalogs for consumer or other users you need to use the userid of that user
https://172.16.14.15:8444/csa/rest/catalog?userIdentifier=BFA0DB53DA404B90E04059106D1A24B5&scope=base&detail=basic (**** NOTE CSA_CONSUMER userID not the ooInboundUser userID)
Global Shared Catalog (GSC) <id>90d9650a36988e5d0136988f03ab000f</id>
CORTEXv5 <id>ff808181550c21100155356617134ec4</id>

######################################################
next get the offerings {these are the subscriptions *** NOTE we use the csa consumer id here not the csaTransportUser id and use the GSC id from above and put below after /catalog/ using the uid of csa consumer}
https://172.16.14.15:8444/csa/rest/catalog/90d9650a36988e5d0136988f03ab000f/offering?userIdentifier=BFA0DB53DA414B90E04059106D1A24B5

displayName TEST-3 Name TEST-3_be9e50ea-dc24-4ad1-919d-d4479051112a id 2c908f8f4f3c2624014f428e55aa4087
displayName testt Name testt_c23335f4-33c7-44b9-b32f-741a38de7bcd id 2c908f8f4f3c2624014f45d488944bb5
displayName SCALE_DEMO-1 NAME SCALE_DEMO-1_906a28ce-f156-4e06-9790-63a4de9591cf id 2c908f8f4f3c2624014f45ec10884ca1
displayName SCALE_DEMO-Fast NAME SCALE_DEMO-Fast_608c12a5-951e-42e4-a593-01b19644a020 id 2c908f8f4f3c2624014f462ca6c50703
displayName SCALE_DEMO-Options NAME SCALE_DEMO-Options_2103921e-8590-40e5-8810-f7de589ad4eb id 2c908f8f4f3c2624014f4771b4c9092e
displayName R-1536VM_Deploy_Scale NAME R-1536VM_Deploy_Scale_23571301-afa9-4532-ac64-ff88a2adf79c id 2c908f8f4f3c2624014f85256a5b4a9c
#####################################################
optional get offering detail {using GSC id below, with the offering id from above and csa consumer id }
https://172.16.14.15:8444/csa/rest/catalog/90d9650a36988e5d0136988f03ab000f/offering/2c908f8f4f3c2624014f85256a5b4a9c?userIdentifier=BFA0DB53DA414B90E04059106D1A24B5


##########################################################
GET OFFERING DETAILS
https://172.16.14.15:8444/csa/rest/catalog/90d9650a36988e5d0136988f03ab000f/offering/2c908f8f4f3c2624014f85256a5b4a9c?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451


**********************

https://172.16.14.15:8444/csa/rest/organization/?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451&scope=base&detail=basic
CORTEXv4 2c908e8f4d4417c2014d670f03f001c0
NEC 2c908e8f4d71c2b8014e0740b775502d
CSA-PROVIDER 90d96588360da0c701360da0f15b009e
CSA_CONSUMER BFA0DB53DA404B90E04059106D1A24B5

https://172.16.14.15:8444/csa/rest/login/CSA_CONSUMER/consumer
consumer <id>BFA0DB53DA414B90E04059106D1A24B5</id>

https://172.16.14.15:8444/csa/rest/catalog?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451&scope=base&detail=basic
Global Shared Catalog <id>90d9650a36988e5d0136988f03ab000f</id>


https://172.16.14.15:8444/csa/rest/user/myinstance?userIdentifier=BFA0DB53DA414B90E04059106D1A24B5&requestor=consumer {user id of consumer to see consumer}
this gives the service instance {subscriptions}
name = CSRA <id>2c908e8f4d2064b5014d2563b4aa0c6b</id>
<serviceInstanceState>
<id>90d96588360da0c701360da0f0110064</id>
<objectId>90d96588360da0c701360da0f0110064</objectId>
<createdOn>2015-05-04T14:25:34.061-04:00</createdOn>
<isCriticalSystemObject>true</isCriticalSystemObject>
<description>In Progress</description>
<iconUrl>/csa/images/categories/service_instance_state/in_progress.png</iconUrl>
<name>IN_PROGRESS</name>
<displayName>In Progress</displayName>
<disabled>false</disabled>
<categoryType>
<id>90d96588360da0c701360da0f00d0063</id>
<objectId>90d96588360da0c701360da0f00d0063</objectId>
<isCriticalSystemObject>true</isCriticalSystemObject>
<description>Service Instance State</description>
<name>SERVICE_INSTANCE_STATE</name>
<displayName>Service Instance State</displayName>
<extensible>false</extensible>
</categoryType>
</serviceInstanceState>

https://172.16.14.15:8444/csa/rest/user/mysubscription?userIdentifier=BFA0DB53DA414B90E04059106D1A24B5&requestor=consumer
<ServiceSubscription>
<id>2c908e8f4d2064b5014d2563aa490c53</id>
<objectId>2c908e8f4d2064b5014d2563aa490c53</objectId>
<createdOn>2015-05-05T14:43:18.217-04:00</createdOn>
<updatedOn>2015-05-05T14:43:18.656-04:00</updatedOn>
<isCriticalSystemObject>false</isCriticalSystemObject>
<description>CSRA-2</description>
<iconUrl>/csa/images/library/compliance.png</iconUrl>
<name>CSRA-2 (1.0.0)</name>
<displayName>CSRA-2 (1.0.0)</displayName>
<subscriptionStatus>
<id>90d96588360da0c701360da0f4fb00fa</id>
<objectId>90d96588360da0c701360da0f4fb00fa</objectId>
<createdOn>2015-05-04T14:25:34.061-04:00</createdOn>
<isCriticalSystemObject>true</isCriticalSystemObject>
<description>Pending</description>
<iconUrl>/csa/images/categories/subscription_status/pending.png</iconUrl>
<name>PENDING</name>
<displayName>Pending</displayName>
<disabled>false</disabled>
<categoryType>
<id>90d96588360da0c701360da0f4f700f9</id>
<objectId>90d96588360da0c701360da0f4f700f9</objectId>
<isCriticalSystemObject>true</isCriticalSystemObject>
<description>Subscription Status</description>
<name>SUBSCRIPTION_STATUS</name>
<displayName>Subscription Status</displayName>
<extensible>false</extensible>
</categoryType>
</subscriptionStatus>


https://172.16.14.15:8444/csa/rest/user/myrequest?userIdentifier=BFA0DB53DA414B90E04059106D1A24B5&requestor=consumer

provider
https://172.16.14.15:8444/csa/rest/resourceProider?userIdentifier=6BC7CE65B5F74D08AA29C8FC40616451&accesspointUrl=http://admin:8082/

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.