Bluemix API connect configuration - ibm-cloud

WE have our REST services deployed using bluemix container groups. Can some one tell me how to configure access to these APIs through Bluemix API Connect? I Created product, catalog. Also imported my swagger in catalog. I can see the APIs listed. but not able to access them. Can someone guide?

Since you've already created a product, I'll assume that you've already added your API(s) to that product. If not, do that now.
Once you've done that, look for the Stage menu (the little "Cloud with an up arrow" icon) in the upper-right-hand corner of the product detail page. From the corresponding menu, select the catalog you want to stage the product to.
After that completes successfully, navigate to the API Connect dashboard and click on the catalog to which you just staged the product. At this point, you should see the product and its status will be listed as "Staged."
Click the overflow menu (three dots) on the right-hand side of the product row and select "Publish" from the resulting menu. You can likely accept any default visibility settings. Once that operation completes, the API will now be accessible via the catalog's gateway URL + API base path. (You can find this in the Catalog settings -> Endpoint panel.)
For more information on publishing APIs, see this documentation: https://console.bluemix.net/docs/services/apiconnect/apic_006.html#apic_010
Or if you want to use the CLI: https://www.ibm.com/support/knowledgecenter/en/SSFS6T/com.ibm.apic.toolkit.doc/capim-toolkit-cli-publish-apis.html#concept_nll_3ry_xv__publish_apis

on Bluemix to call your api , you need to "publish" your product to a portal. First of all prepare your Portal:
Go to Dashboard -- > Your Catalog -- > Settings -- > Enable Portal and select Portal-Delegated-User-Registry.
After some time , you will be accessing your portal . Subscribe new user through that portal. Portal GUI is very helpful. You will be able to learn by yourself how to call your API.
Good luck!

Related

Google Cloud Storage static site hosting: Bucket names must be at least 3 characters in length, got 1: 'c'

I created a basic website for a school project and I am trying to host it somewhere so that my teacher can access it. I came across a tutorial that allows you to host a static website on Google Compute Cloud Storage for free. https://web.archive.org/web/20211023134543/https://cloud.google.com/storage/docs/hosting-static-website-http
Steps from the tutorial that I followed (as requested by the comments):
In the Google Cloud Console, on the project selector page, select Google Cloud project.
Make sure that billing is enabled for your Cloud project.
Have a domain that you own or manage.
Verify that you own or manage the domain that you will be using.
Make sure you are verifying the top-level domain
Create a CNAME record (school.mydomain.com) that points to
c.storage.googleapis.com..
In the Google Cloud Console, go to the Cloud Storage Browser page.
Click Create bucket to open the bucket creation form.
Enter your bucket information and click Continue to complete each
step:
The Name of your bucket, which matches the hostname associated
with your CNAME record.
Select the Location type and Location of your bucket. For
example, Region and us-east1.
Select Standard Storage for the Storage class.
Select Uniform for Access control.
Click Create.
In the list of buckets, click on the name of the bucket that you
created.
Click the Upload files button in the Objects tab.
In the file dialog upload the html, js, xml, and css files that
make up the website
Select the Permissions tab near the top of the page.
Click the + Add button.
The Add principals dialog box appears.
In the New principals field, enter allUsers.
In the Select a role drop down, select the Cloud Storage sub-menu,
and click the Storage Object Viewer option.
Click Save.
Click Allow public access.
In the Google Cloud Console, go to the Cloud Storage Browser page.
In the list of buckets, find the bucket you created.
Click the Bucket overflow menu (...) associated with the bucket
and select Edit website configuration.
In the website configuration dialog, specify the main page.
Click Save.
Verify that content is served from the bucket by requesting the
domain name in a browser. You can do this with a path to an object
or with just the domain name, if you set the MainPageSuffix
property.
For example, if you have an object named test.html stored in a
bucket named www.example.com, check that it's accessible by going
to www.example.com/test.html in your browser.
Everything completed without error messages until step 25
I followed this tutorial and everything is accessible using direct links but, it doesn't work with domain forwarding. I set up a CNAME entry for school.mydomain.com and forwarded that to c.storage.googleapis.com. and I named the bucket school.mydomain.com as the tutorial states, but I keep getting an error and I am not sure why. I verified to google that I own the domain and the subdomain I am trying to use.
<Error>
<Code>InvalidBucketName</Code>
<Message>The specified bucket is not valid.</Message>
<Details>Bucket names must be at least 3 characters in length, got 1: 'c'</Details>
</Error>
After getting the error after following the tutorial I tried recreating the CNAME record with path forwarding on and off as well as both temporary and permanant redirects. The domain is managed by Google Domains on a seperate Google account. I tried using their domain forwarding wizard and just creating a standard CNAME rule.
Going to school.mydomain.com.storage.googleapis.com works. But if I forward to this, it doesnt follow the forwarding rules set for the bucket, namely the main page is at /5500/index.html.
I am totally new to this and I have no idea what to try next. I was able to turn in my assignment by providing a direct link to the file in the bucket, but I would like to get domain forwarding to work for any future projects.

When creating a device-based access level in Google Access Context Manager, Device Policy attributes not an option via console

I am attempting to follow this tutorial. My end goal is to apply device-based access levels on Identity-Aware Proxy (IAP)-secured resources, specifically App Engine. However, as the documentation states:
In the New Access Level pane, in the Conditions section, click Add attribute and then click Device Policy.
I do not see any Device Policy attribute. See screen shot below...
I believe I have properly enabled Endpoint Verification here. In Google Admin via Devices
-> Mobile and endpoints I can see device info being collected.
My Google Admin account to Google Workspace Enterprise Plus and we have Cloud Identity Premium for GCP.
Any ideas why I am unable to see the Device Policy attributes when creating a new Access Level???
Application and VM protection with device attributes needs to purchase additional paid functions BeyondCorp Enterprise

Where is the Netsuite Webservices Postman Collection?

In Netsuite's REST web services help documentation, there's a reference to a Postman collection:
https://netsuite.custhelp.com/app/answers/detail/a_id/86958/kw/postman
You can download the REST web services Postman environment template and collection of sample requests from the SuiteTalk tools download page at https://[accountID].app.netsuite.com/app/external/integration/integrationDownloadPage.nl. To access the page, you must substitute your account ID in the URL.
Note To access the Postman environment template and collection, the REST Web Services feature must be enabled, and you must have the REST web services permission assigned to your role. For more information, see REST Web Services Prerequisites and Setup.
However, when I go to the download page (with the correct account ID and REST web services permission), there's only a download available for "NetSuiteDataLoader.zip", which does not contain the postman collection.
Figured this out, a few pages deep in the documentation.
REST web services need to be enabled on the account first.
https://netsuite.custhelp.com/app/answers/detail/a_id/87117
Setup > Company > Enable Features (Setup Tasks)
Click "Suite Cloud" tab
Scroll to "SuiteTalk (Web Services)" section.
Tick "REST WEB SERVICES (BETA)" and accept the T&Cs.
You also need to be a user with REST Web Services and SuiteAnalytics Workbook permissions.
Administrator already has these, but if you need to add them:
Go to Setup > Users/Roles > User Management > Manage Users.
Locate the role you want to modify. Click the corresponding Edit or Customize link.
On the Permissions subtab, click Setup.
In the Permission list, select REST Web Services.
In the Level list, select Full.
Click Add.
On the Permissions subtab, click Reports.
In the Permission list, select SuiteAnalytics Workbook.
In the Level list, select Full.
Click Add.
Click Save.
Once all that is done, when you go to https://[accountID].app.netsuite.com/app/external/integration/integrationDownloadPage.nl
you will see a link to NetSuiteRestApiSampleRequests.zip - which contains the postman collection.
If it still doesn't work try to put a tick on WEB SERVICES ONLY ROLE
Setup > Users\Roles > Manage Users >
Find the current role that you want to give access to and Save.
After entering ID of your account on that current role - you will see another folder with NetSuite REST API Sample Requests name.

Can not change actions-on-google project from dialogflow fulfillment to smarthome fulfillment

I create dialogflow agent (with exited cloud project) and it automatic create action on google .
Now i want to use action on google with smarthome fulfillment but i can not change action on google project or delete it ( is say must delete all my cloud project)
pleaze help me how to change to use smarthome fulfillment without delete my cloud project (i currently use firebase message, google map api)
Thank u
Unfortunately you'll need to create a new project. In the onboarding page, make sure you select the Smart Home option.
The nice thing is that you won't necessarily have to recreate all your original project code, as in the Actions console you can just point to your endpoints even if hosted on another project.
(source: google.com)

Unable to add slack to bluemix project

I've finally got the beta services added to my bluemix project.
But it's not very clear how the integration with slack should be configured.
I have an account, team, and channel already. The link in the instructions points to OAuth authentication. Your options are to register an app (but for that you need to know things like the secret, redirecting URI, etc). That can't be right...
Are there any more details available on how to configure Slack for a bluemix project?
If you look at the linked documentation here: https://api.slack.com/web#authentication
There are 2 ways to authenticate with Slack. The first is to use a generated full-access token and the second is to register the application and use OAuth 2 with Slack.
Currently, the Bluemix project beta supports the first method of authentication only. If you are logged into your Slack team(s) and go to the link above, you should see the option to generate tokens for each of the Slack teams you are a part of. That is the token you will need to enter when configuring the Slack integration on the integrations page for your Bluemix project. The other field that you must fill in is the Slack channel that you want to post events to, which you already seem to have.
Screenshot:
Screenshot indicating location of the token you must copy