Content Service call to get a link to a binary resource
A specific Content Service call can return you a public URL pointing to a binary resource.
- Content Service call for the default variant of a binary resource
-
If your binary resource is a default variant (which is true if there is only one variant), navigate to the following URL to get a link to your binary resource:
CONTENTSERVICEURI/cd/api/binary/NSID/PUBID/BINIDwhere:- CONTENTSERVICEURI is the base URL of the Content Service
- NSID is your namespace identifier (a number)
- PUBID is your publication identifier (a number)
- BINID is the identifier of your binary resource (a number)
For example:https://contentservice.myorg.com:8081/cd/api/binary/1/232/453466 - Content Service call for the default variant of a binary resource
-
If your binary resource is a non-default variant, navigate to the following URL to get a link to your binary resource:
CONTENTSERVICEURI/cd/api/binary/NSID/PUBID/BINID/VARIDwhere:- CONTENTSERVICEURI is the base URL of the Content Service
- NSID is your namespace identifier (a number)
- PUBID is your publication identifier (a number)
- BINID is the identifier of your binary resource (a number)
- VARID is the (URL-encoded) identifier of your variant
For example:https://contentservice.myorg.com:8081/cd/api/binary/2/383/8181334/VzMlYGXkP%3D%3DIn this example, the variant ID is
VzMlYGXkP==, encoded asVzMlYGXkP%3D%3D.