ApiProduct class
Creates an API product in an organization. You create API products after you have proxied backend services using API proxies. An API product is a collection of API resources combined with quota settings and metadata that you can use to deliver customized and productized API bundles to your developer community. This metadata can include: - Scope - Environments - API proxies - Extensible profile API products enable you repackage APIs on the fly, without having to do any additional coding or configuration. Apigee recommends that you start with a simple API product including only required elements. You then provision credentials to apps to enable them to start testing your APIs. After you have authentication and authorization working against a simple API product, you can iterate to create finer-grained API products, defining different sets of API resources for each API product. WARNING: - If you don't specify an API proxy in the request body, any app associated with the product can make calls to any API in your entire organization. - If you don't specify an environment in the request body, the product allows access to all environments. For more information, see What is an API product?
Constructors
- ApiProduct(String name, {ApiProductArgs? args, CustomResourceOptions? options})
-
Creates a new ApiProduct.
nameThe Pulumi resource name.argsArguments used to configure this ApiProduct. The set of arguments for ApiProduct.optionsResource options controlling this resource's behavior.
Properties
-
apiResources
↔ Output<
List< String> > -
Comma-separated list of API resources to be bundled in the API product. By default, the resource paths are mapped from the
proxy.pathsuffixvariable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if theapiResourceselement is defined to be/forecastrssand the base path defined for the API proxy is/weather, then only requests to/weather/forecastrssare permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard: -/**: Indicates that all sub-URIs are included. -/*: Indicates that only URIs one level down are included. By default, / supports the same resources as /** as well as the base path defined by the API proxy. For example, if the base path of the API proxy is/v1/weatherapikey, then the API product supports requests to/v1/weatherapikeyand to any sub-URIs, such as/v1/weatherapikey/forecastrss,/v1/weatherapikey/region/CA, and so on. For more information, see Managing API products.latefinal -
approvalType
↔ Output<
String> -
Flag that specifies how API keys are approved to access the APIs defined by the API product. If set to
manual, the consumer key is generated and returned in "pending" state. In this case, the API keys won't work until they have been explicitly approved. If set toauto, the consumer key is generated and returned in "approved" state and can be used immediately. Note: Typically,autois used to provide access to free or trial API products that provide limited quota or capabilities.latefinal -
attributes
↔ Output<
List< Map< >String, dynamic> > -
Array of attributes that may be used to extend the default API product profile with customer-specific metadata. You can specify a maximum of 18 attributes. Use this property to specify the access level of the API product as either
public,private, orinternal. Only products markedpublicare available to developers in the Apigee developer portal. For example, you can set a product tointernalwhile it is in development and then change access topublicwhen it is ready to release on the portal. API products marked asprivatedo not appear on the portal, but can be accessed by external developers.latefinal -
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createdAt
↔ Output<
String> -
Response only. Creation time of this environment as milliseconds since epoch.
latefinal
-
description
↔ Output<
String> -
Description of the API product. Include key information about the API product that is not captured by other fields.
latefinal
-
displayName
↔ Output<
String> -
Name displayed in the UI or developer portal to developers registering for API access.
latefinal
-
environments
↔ Output<
List< String> > -
Comma-separated list of environment names to which the API product is bound. Requests to environments that are not listed are rejected. By specifying one or more environments, you can bind the resources listed in the API product to a specific environment, preventing developers from accessing those resources through API proxies deployed in another environment. This setting is used, for example, to prevent resources associated with API proxies in
prodfrom being accessed by API proxies deployed intest.latefinal -
graphqlOperationGroup
↔ Output<
GoogleCloudApigeeV1GraphQLOperationGroupResponse> -
Configuration used to group Apigee proxies or remote services with graphQL operation name, graphQL operation type and quotas. This grouping allows us to precisely set quota for a particular combination of graphQL name and operation type for a particular proxy request. If graphQL name is not set, this would imply quota will be applied on all graphQL requests matching the operation type.
latefinal
-
grpcOperationGroup
↔ Output<
GoogleCloudApigeeV1GrpcOperationGroupResponse> -
Optional. Configuration used to group Apigee proxies with gRPC services and method names. This grouping allows us to set quota for a particular proxy with the gRPC service name and method. If a method name is not set, this implies quota and authorization are applied to all gRPC methods implemented by that proxy for that particular gRPC service.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
lastModifiedAt
↔ Output<
String> -
Response only. Modified time of this environment as milliseconds since epoch.
latefinal
-
name
↔ Output<
String> -
Internal name of the API product. Characters you can use in the name are restricted to:
A-Z0-9._\-$ %. Note: The internal name cannot be edited when updating the API product.latefinal -
operationGroup
↔ Output<
GoogleCloudApigeeV1OperationGroupResponse> -
Configuration used to group Apigee proxies or remote services with resources, method types, and quotas. The resource refers to the resource URI (excluding the base path). With this grouping, the API product creator is able to fine-tune and give precise control over which REST methods have access to specific resources and how many calls can be made (using the
quotasetting). Note: Theapi_resourcessetting cannot be specified for both the API product and operation group; otherwise the call will fail.latefinal -
organizationId
↔ Output<
String> -
latefinal
-
proxies
↔ Output<
List< String> > -
Comma-separated list of API proxy names to which this API product is bound. By specifying API proxies, you can associate resources in the API product with specific API proxies, preventing developers from accessing those resources through other API proxies. Apigee rejects requests to API proxies that are not listed. Note: The API proxy names must already exist in the specified environment as they will be validated upon creation.
latefinal
-
quota
↔ Output<
String> -
Number of request messages permitted per app by this API product for the specified
quotaIntervalandquotaTimeUnit. For example, aquotaof 50, for aquotaIntervalof 12 and aquotaTimeUnitof hours means 50 requests are allowed every 12 hours.latefinal -
quotaCounterScope
↔ Output<
String> -
Scope of the quota decides how the quota counter gets applied and evaluate for quota violation. If the Scope is set as PROXY, then all the operations defined for the APIproduct that are associated with the same proxy will share the same quota counter set at the APIproduct level, making it a global counter at a proxy level. If the Scope is set as OPERATION, then each operations get the counter set at the API product dedicated, making it a local counter. Note that, the QuotaCounterScope applies only when an operation does not have dedicated quota set for itself.
latefinal
-
quotaInterval
↔ Output<
String> -
Time interval over which the number of request messages is calculated.
latefinal
-
quotaTimeUnit
↔ Output<
String> -
Time unit defined for the
quotaInterval. Valid values includeminute,hour,day, ormonth.latefinal -
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
↔ Output<
List< String> > -
Comma-separated list of OAuth scopes that are validated at runtime. Apigee validates that the scopes in any access token presented match the scopes defined in the OAuth policy associated with the API product.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited